| Index: ios/web/web_state/context_menu_params_utils.h
|
| diff --git a/ios/web/web_state/context_menu_params_utils.h b/ios/web/web_state/context_menu_params_utils.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f3f2276222b2cb6c3496063ad8d76da772879a42
|
| --- /dev/null
|
| +++ b/ios/web/web_state/context_menu_params_utils.h
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_WEB_WEB_STATE_CONTEXT_MENU_PARAMS_UTILS_H_
|
| +#define IOS_WEB_WEB_STATE_CONTEXT_MENU_PARAMS_UTILS_H_
|
| +
|
| +#import <UIKit/UIKit.h>
|
| +
|
| +#import "ios/web/public/web_state/context_menu_params.h"
|
| +
|
| +namespace web {
|
| +// 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 ContextMenuParamsFromElementDictionary(NSDictionary* element);
|
| +} // namespace web
|
| +
|
| +#endif // IOS_WEB_WEB_STATE_CONTEXT_MENU_PARAMS_UTILS_H_
|
|
|