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..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. |
|
Eugene But (OOO till 7-30)
2017/01/13 18:23:42
Please document the meaning of BOOL result.
Olivier
2017/01/13 18:49:55
Is the last sentence not enough?
Eugene But (OOO till 7-30)
2017/01/13 19:00:32
Sorry, it is enough.
|
| +- (BOOL)nativeContent:(id)content |
| + handleContextMenu:(const web::ContextMenuParams&)params; |
| + |
| @end |
| #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ |