OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_GLUE_CONTEXT_MENU_H_ | 5 #ifndef WEBKIT_GLUE_CONTEXT_MENU_H_ |
6 #define WEBKIT_GLUE_CONTEXT_MENU_H_ | 6 #define WEBKIT_GLUE_CONTEXT_MENU_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
13 #include "webkit/glue/webkit_glue_export.h" | 13 #include "webkit/glue/webkit_glue_export.h" |
14 #include "webkit/glue/webmenuitem.h" | 14 #include "webkit/glue/webmenuitem.h" |
15 | 15 |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h" |
17 | 18 |
18 namespace webkit_glue { | 19 namespace webkit_glue { |
19 | 20 |
20 struct CustomContextMenuContext { | 21 struct CustomContextMenuContext { |
21 bool is_pepper_menu; | 22 bool is_pepper_menu; |
22 int request_id; | 23 int request_id; |
23 // The routing ID of the render widget on which the context menu is shown. | 24 // The routing ID of the render widget on which the context menu is shown. |
24 // It could also be |kCurrentRenderWidget|, which means the render widget that | 25 // It could also be |kCurrentRenderWidget|, which means the render widget that |
25 // the corresponding ViewHostMsg_ContextMenu is sent to. | 26 // the corresponding ViewHostMsg_ContextMenu is sent to. |
26 int32 render_widget_id; | 27 int32 render_widget_id; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // These flags indicate to the browser whether the renderer believes it is | 120 // These flags indicate to the browser whether the renderer believes it is |
120 // able to perform the corresponding action. | 121 // able to perform the corresponding action. |
121 int edit_flags; | 122 int edit_flags; |
122 | 123 |
123 // The security info for the resource we are showing the menu on. | 124 // The security info for the resource we are showing the menu on. |
124 std::string security_info; | 125 std::string security_info; |
125 | 126 |
126 // The character encoding of the frame on which the menu is invoked. | 127 // The character encoding of the frame on which the menu is invoked. |
127 std::string frame_charset; | 128 std::string frame_charset; |
128 | 129 |
| 130 // The referrer policy of the frame on which the menu is invoked. |
| 131 WebKit::WebReferrerPolicy referrer_policy; |
| 132 |
129 webkit_glue::CustomContextMenuContext custom_context; | 133 webkit_glue::CustomContextMenuContext custom_context; |
130 std::vector<WebMenuItem> custom_items; | 134 std::vector<WebMenuItem> custom_items; |
131 | 135 |
132 ContextMenuParams(); | 136 ContextMenuParams(); |
133 ContextMenuParams(const WebKit::WebContextMenuData& data); | 137 ContextMenuParams(const WebKit::WebContextMenuData& data); |
134 ~ContextMenuParams(); | 138 ~ContextMenuParams(); |
135 }; | 139 }; |
136 | 140 |
137 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ | 141 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ |
OLD | NEW |