| Index: ios/web/public/web_state/context_menu_params.h
|
| diff --git a/ios/web/public/web_state/context_menu_params.h b/ios/web/public/web_state/context_menu_params.h
|
| index 925fa30032caf5e38d19d3314f3d04ad6abc152b..d1bf918ff2f1cd1798056225778ff37fea3123e3 100644
|
| --- a/ios/web/public/web_state/context_menu_params.h
|
| +++ b/ios/web/public/web_state/context_menu_params.h
|
| @@ -20,6 +20,15 @@ struct ContextMenuParams {
|
| ContextMenuParams(const ContextMenuParams& other);
|
| ~ContextMenuParams();
|
|
|
| + // Convenience constructor that creates a ContextMenuParams from a
|
| + // NSDictionary representing an HTML element.
|
| + // The fields "href", "src", "title", "referrerPolicy" and "innerText" will
|
| + // be used (if present) to generate the ContextMenuParams.
|
| + // All these fields must be NSString*.
|
| + // This constructor does not set fields relative to the touch event (view and
|
| + // location).
|
| + ContextMenuParams(const NSDictionary* element);
|
| +
|
| // The title of the menu.
|
| base::scoped_nsobject<NSString> menu_title;
|
|
|
|
|