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_ |