Chromium Code Reviews| 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_ |