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

Unified Diff: ios/web/public/web_state/ui/crw_native_content.h

Issue 2627093003: Reuse context menu in StaticHTMLViewController (Closed)
Patch Set: cleaning Created 3 years, 11 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/public/web_state/ui/crw_native_content.h
diff --git a/ios/web/public/web_state/ui/crw_native_content.h b/ios/web/public/web_state/ui/crw_native_content.h
index b3f336fe157247ba0cd608d717c5d4ab072f9d40..be19b0443dbdf469f3da0ca9f717c1a49159d1cd 100644
--- a/ios/web/public/web_state/ui/crw_native_content.h
+++ b/ios/web/public/web_state/ui/crw_native_content.h
@@ -10,6 +10,10 @@
#import "ios/web/public/block_types.h"
#include "url/gurl.h"
+namespace web {
+struct ContextMenuParams;
+} // namespace web;
+
@protocol CRWNativeContentDelegate;
// Abstract methods needed for manipulating native content in the web content
@@ -101,6 +105,11 @@
// Called when the content supplies a new title.
- (void)nativeContent:(id)content titleDidChange:(NSString*)title;
+// Called when the content triggers a context menu.
+// Return if the context menu was handled.
Eugene But (OOO till 7-30) 2017/01/13 16:19:41 Did you mean "Returns NO if the context menu was h
Olivier 2017/01/13 18:08:58 Done.
+- (BOOL)nativeContent:(id)content
+ handleContextMenu:(const web::ContextMenuParams&)params;
+
@end
#endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_

Powered by Google App Engine
This is Rietveld 408576698