Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: ios/web/public/web_state/context_menu_params.h

Issue 2379653002: Add a inner text parameter to ContextMenuParams (Closed)
Patch Set: Rename inner_text to link_text Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ios/web/web_state/js/resources/core.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 #ifndef IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_ 4 #ifndef IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_
5 #define IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_ 5 #define IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_
6 6
7 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 20 matching lines...) Expand all
31 GURL src_url; 31 GURL src_url;
32 32
33 // The referrer policy to use when opening the link. 33 // The referrer policy to use when opening the link.
34 web::ReferrerPolicy referrer_policy; 34 web::ReferrerPolicy referrer_policy;
35 35
36 // The view in which to present the menu. 36 // The view in which to present the menu.
37 base::scoped_nsobject<UIView> view; 37 base::scoped_nsobject<UIView> view;
38 38
39 // The location in |view| to present the menu. 39 // The location in |view| to present the menu.
40 CGPoint location; 40 CGPoint location;
41
42 // The text associated with the link. It is either nil or nonempty (it can not
43 // be empty).
44 base::scoped_nsobject<NSString> link_text;
41 }; 45 };
42 46
43 } // namespace web 47 } // namespace web
44 48
45 #endif // IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_ 49 #endif // IOS_WEB_PUBLIC_WEB_STATE_CONTEXT_MENU_PARAMS_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/web_state/js/resources/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698