OLD | NEW |
---|---|
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 Loading... | |
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 GURL link_followed; | |
darin (slow to review)
2014/07/22 17:34:39
Please add some documentation here to explain the
| |
39 }; | 41 }; |
40 | 42 |
41 // FIXME(beng): This would be more useful in the future and more efficient | 43 // 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 | 44 // if the parameters here weren't so literally mapped to what |
43 // they contain for the ContextMenu task. It might be better | 45 // they contain for the ContextMenu task. It might be better |
44 // to make the string fields more generic so that this object | 46 // to make the string fields more generic so that this object |
45 // could be used for more contextual actions. | 47 // could be used for more contextual actions. |
46 struct CONTENT_EXPORT ContextMenuParams { | 48 struct CONTENT_EXPORT ContextMenuParams { |
47 ContextMenuParams(); | 49 ContextMenuParams(); |
48 ~ContextMenuParams(); | 50 ~ContextMenuParams(); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 // Points representing the coordinates in the document space of the start and | 151 // Points representing the coordinates in the document space of the start and |
150 // end of the selection, if there is one. | 152 // end of the selection, if there is one. |
151 gfx::Point selection_start; | 153 gfx::Point selection_start; |
152 gfx::Point selection_end; | 154 gfx::Point selection_end; |
153 #endif | 155 #endif |
154 }; | 156 }; |
155 | 157 |
156 } // namespace content | 158 } // namespace content |
157 | 159 |
158 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ | 160 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ |
OLD | NEW |