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

Unified Diff: ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.mm

Issue 942793002: [iOS] Upstream chrome commands (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.mm
diff --git a/ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.mm b/ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.mm
new file mode 100644
index 0000000000000000000000000000000000000000..b318911dc40e37161f20a719f8da72667ea6c1e0
--- /dev/null
+++ b/ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.mm
@@ -0,0 +1,24 @@
+// Copyright 2012 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.
+
+#import "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h"
+
+@implementation UIResponder (ChromeExecuteCommand)
+
+- (void)chromeExecuteCommand:(id)sender {
+ [[self nextResponder] chromeExecuteCommand:sender];
+}
+
+@end
+
+@implementation UIWindow (ChromeExecuteCommand)
+
+- (void)chromeExecuteCommand:(id)sender {
+ id delegate = [[UIApplication sharedApplication] delegate];
+
+ if ([delegate respondsToSelector:@selector(chromeExecuteCommand:)])
+ [delegate chromeExecuteCommand:sender];
+}
+
+@end
« no previous file with comments | « ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h ('k') | ios/chrome/browser/ui/commands/generic_chrome_command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698