Respond to CR.

pull/1/head
Matthew Chen 6 years ago
parent 18f07d12b5
commit 35b6f6cf12

@ -340,8 +340,13 @@ private class ImageEditorOperation: NSObject {
@objc @objc
public protocol ImageEditorModelDelegate: class { public protocol ImageEditorModelDelegate: class {
// Used for large changes to the model, when the entire
// model should be reloaded.
func imageEditorModelDidChange(before: ImageEditorContents, func imageEditorModelDidChange(before: ImageEditorContents,
after: ImageEditorContents) after: ImageEditorContents)
// Used for small narrow changes to the model, usually
// to a single item.
func imageEditorModelDidChange(changedItemIds: [String]) func imageEditorModelDidChange(changedItemIds: [String])
} }

@ -4,7 +4,6 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
// TODO: We'll eventually want to promote these into an OWSMath.h header.
CG_INLINE CGFloat CGFloatClamp(CGFloat value, CGFloat minValue, CGFloat maxValue) CG_INLINE CGFloat CGFloatClamp(CGFloat value, CGFloat minValue, CGFloat maxValue)
{ {
return MAX(minValue, MIN(maxValue, value)); return MAX(minValue, MIN(maxValue, value));

Loading…
Cancel
Save