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

Unified Diff: ios/shared/chrome/browser/ui/commands/command_dispatcher.h

Issue 2785153002: Add protocol APIs to CommandDispatcher. (Closed)
Patch Set: Created 3 years, 9 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/shared/chrome/browser/ui/commands/command_dispatcher.h
diff --git a/ios/shared/chrome/browser/ui/commands/command_dispatcher.h b/ios/shared/chrome/browser/ui/commands/command_dispatcher.h
index eaf784fb1221b1aff2e247be769e0ba09973fe7a..f264d35254a3ed16ceb28a6bccbdd980fe762f1b 100644
--- a/ios/shared/chrome/browser/ui/commands/command_dispatcher.h
+++ b/ios/shared/chrome/browser/ui/commands/command_dispatcher.h
@@ -16,9 +16,19 @@
// |selector|.
- (void)startDispatchingToTarget:(id)target forSelector:(SEL)selector;
+// Registers the given |target| to receive forwarded messages for the methods of
+// the given |protocol|. Only required instance methods are registered. The
+// other definitions in the protocol are ignored.
+- (void)startDispatchingToTarget:(id)target forProtocol:(Protocol*)protocol;
+
// Removes forwarding registration for the given |selector|.
- (void)stopDispatchingForSelector:(SEL)selector;
+// Removes forwarding registration for the given |selector|. Only dispatching to
+// required instance methods is removed. The other definitions in the protocol
+// are ignored.
+- (void)stopDispatchingForProtocol:(Protocol*)protocol;
+
// Removes all forwarding registrations for the given |target|.
- (void)stopDispatchingToTarget:(id)target;

Powered by Google App Engine
This is Rietveld 408576698