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

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

Issue 2627093003: Reuse context menu in StaticHTMLViewController (Closed)
Patch Set: feedback 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
« no previous file with comments | « ios/web/public/web_state/ui/crw_context_menu_delegate.h ('k') | ios/web/public/web_view_creation_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1bb1e3909c48408da4e2497bc3307f3092adcf45 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,12 @@
// Called when the content supplies a new title.
- (void)nativeContent:(id)content titleDidChange:(NSString*)title;
+// Called when the content triggers a context menu.
+// The client must return whether the context menu event was handled and the
+// system menu must be suppressed.
+- (BOOL)nativeContent:(id)content
+ handleContextMenu:(const web::ContextMenuParams&)params;
+
@end
#endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_
« no previous file with comments | « ios/web/public/web_state/ui/crw_context_menu_delegate.h ('k') | ios/web/public/web_view_creation_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698