Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1395)

Unified Diff: ios/web_view/test/observers/boolean_observer.h

Issue 2902403002: Add KVO compliant title property to CWVWebView. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/web_view/test/observers/boolean_observer.h
diff --git a/ios/web_view/test/observers/boolean_observer.h b/ios/web_view/test/observers/boolean_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..3823b21347f8c0b4be4934daa0d3022899c87ff8
--- /dev/null
+++ b/ios/web_view/test/observers/boolean_observer.h
@@ -0,0 +1,20 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_VIEW_TEST_OBSERVERS_BOOLEAN_OBSERVER_H_
+#define IOS_WEB_VIEW_TEST_OBSERVERS_BOOLEAN_OBSERVER_H_
+
+#import "ios/web_view/test/observers/observer.h"
+
+// A specialized Observer for listening to a boolean property of an object.
+@interface BooleanObserver : Observer
+
+// The last value of performing |keyPath| on |object| after being notified of a
+// KVO value change or null if a change has not been observed. If |lastValue| is
+// nonnull it will be a NSNumber wrapped BOOL.
+@property(nonatomic, nullable, readonly) NSNumber* lastValue;
+
+@end
+
+#endif // IOS_WEB_VIEW_TEST_OBSERVERS_BOOLEAN_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698