| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_WEB_WEB_STATE_CONTEXT_MENU_PARAMS_UTILS_H_ |
| 6 #define IOS_WEB_WEB_STATE_CONTEXT_MENU_PARAMS_UTILS_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #import "ios/web/public/web_state/context_menu_params.h" |
| 11 |
| 12 namespace web { |
| 13 // creates a ContextMenuParams from a NSDictionary representing an HTML element. |
| 14 // The fields "href", "src", "title", "referrerPolicy" and "innerText" will |
| 15 // be used (if present) to generate the ContextMenuParams. |
| 16 // All these fields must be NSString*. |
| 17 // This constructor does not set fields relative to the touch event (view and |
| 18 // location). |
| 19 ContextMenuParams ContextMenuParamsFromElementDictionary(NSDictionary* element); |
| 20 } // namespace web |
| 21 |
| 22 #endif // IOS_WEB_WEB_STATE_CONTEXT_MENU_PARAMS_UTILS_H_ |
| OLD | NEW |