Index: ios/chrome/browser/ui/context_menu/context_menu_delegate.h |
diff --git a/ios/chrome/browser/ui/context_menu/context_menu_delegate.h b/ios/chrome/browser/ui/context_menu/context_menu_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f76646b62811a9f169bded48bd8baa77488d2e40 |
--- /dev/null |
+++ b/ios/chrome/browser/ui/context_menu/context_menu_delegate.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_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_ |
+#define IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_ |
+ |
+namespace web { |
+class WebState; |
+struct ContextMenuParams; |
+} |
+ |
+// A delegate that will display a context menu for |params|. User choice on this |
+// menu can trigger a navigation on |webState|. |
+@protocol ContextMenuDelegate<NSObject> |
+- (BOOL)webState:(web::WebState*)webState |
Eugene But (OOO till 7-30)
2017/01/13 07:16:26
First argument in Objective-C delegate method is a
Olivier
2017/01/13 10:20:25
Done.
I used the mode generic "native content" ins
|
+ handleContextMenu:(const web::ContextMenuParams&)params; |
+@end |
+ |
+#endif // IOS_CHROME_BROWSER_UI_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_ |