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