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

Side by Side Diff: content/public/common/context_menu_params.h

Issue 384243004: Make <a ping> work for context menus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address darin's comments Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/context_menu_params_builder.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 4
5 #ifndef CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 static const int32 kCurrentRenderWidget; 29 static const int32 kCurrentRenderWidget;
30 30
31 CustomContextMenuContext(); 31 CustomContextMenuContext();
32 32
33 bool is_pepper_menu; 33 bool is_pepper_menu;
34 int request_id; 34 int request_id;
35 // The routing ID of the render widget on which the context menu is shown. 35 // The routing ID of the render widget on which the context menu is shown.
36 // It could also be |kCurrentRenderWidget|, which means the render widget that 36 // It could also be |kCurrentRenderWidget|, which means the render widget that
37 // the corresponding ViewHostMsg_ContextMenu is sent to. 37 // the corresponding ViewHostMsg_ContextMenu is sent to.
38 int32 render_widget_id; 38 int32 render_widget_id;
39
40 // If the context menu was created for a link, and we navigated to that url,
41 // this will contain the url that was navigated. This field may not be set
42 // if, for example, we are transitioning to an incognito window, since we
43 // want to sever any connection to the old renderer.
44 GURL link_followed;
39 }; 45 };
40 46
41 // FIXME(beng): This would be more useful in the future and more efficient 47 // FIXME(beng): This would be more useful in the future and more efficient
42 // if the parameters here weren't so literally mapped to what 48 // if the parameters here weren't so literally mapped to what
43 // they contain for the ContextMenu task. It might be better 49 // they contain for the ContextMenu task. It might be better
44 // to make the string fields more generic so that this object 50 // to make the string fields more generic so that this object
45 // could be used for more contextual actions. 51 // could be used for more contextual actions.
46 struct CONTENT_EXPORT ContextMenuParams { 52 struct CONTENT_EXPORT ContextMenuParams {
47 ContextMenuParams(); 53 ContextMenuParams();
48 ~ContextMenuParams(); 54 ~ContextMenuParams();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // Points representing the coordinates in the document space of the start and 155 // Points representing the coordinates in the document space of the start and
150 // end of the selection, if there is one. 156 // end of the selection, if there is one.
151 gfx::Point selection_start; 157 gfx::Point selection_start;
152 gfx::Point selection_end; 158 gfx::Point selection_end;
153 #endif 159 #endif
154 }; 160 };
155 161
156 } // namespace content 162 } // namespace content
157 163
158 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 164 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/context_menu_params_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698