| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/public/common/menu_item.h" | 17 #include "content/public/common/menu_item.h" |
| 18 #include "content/public/common/page_state.h" | 18 #include "content/public/common/page_state.h" |
| 19 #include "content/public/common/ssl_status.h" | |
| 20 #include "third_party/WebKit/public/platform/WebCString.h" | 19 #include "third_party/WebKit/public/platform/WebCString.h" |
| 21 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 20 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
| 22 #include "third_party/WebKit/public/web/WebContextMenuData.h" | 21 #include "third_party/WebKit/public/web/WebContextMenuData.h" |
| 23 #include "ui/base/ui_base_types.h" | 22 #include "ui/base/ui_base_types.h" |
| 24 #include "url/gurl.h" | 23 #include "url/gurl.h" |
| 25 | 24 |
| 26 #if defined(OS_ANDROID) | 25 #if defined(OS_ANDROID) |
| 27 #include "ui/gfx/geometry/point.h" | 26 #include "ui/gfx/geometry/point.h" |
| 28 #endif | 27 #endif |
| 29 | 28 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 138 |
| 140 // Writing direction menu items. | 139 // Writing direction menu items. |
| 141 int writing_direction_default; | 140 int writing_direction_default; |
| 142 int writing_direction_left_to_right; | 141 int writing_direction_left_to_right; |
| 143 int writing_direction_right_to_left; | 142 int writing_direction_right_to_left; |
| 144 | 143 |
| 145 // These flags indicate to the browser whether the renderer believes it is | 144 // These flags indicate to the browser whether the renderer believes it is |
| 146 // able to perform the corresponding action. | 145 // able to perform the corresponding action. |
| 147 int edit_flags; | 146 int edit_flags; |
| 148 | 147 |
| 149 // The security info for the resource we are showing the menu on. | |
| 150 SSLStatus security_info; | |
| 151 | |
| 152 // The character encoding of the frame on which the menu is invoked. | 148 // The character encoding of the frame on which the menu is invoked. |
| 153 std::string frame_charset; | 149 std::string frame_charset; |
| 154 | 150 |
| 155 // The referrer policy of the frame on which the menu is invoked. | 151 // The referrer policy of the frame on which the menu is invoked. |
| 156 blink::WebReferrerPolicy referrer_policy; | 152 blink::WebReferrerPolicy referrer_policy; |
| 157 | 153 |
| 158 CustomContextMenuContext custom_context; | 154 CustomContextMenuContext custom_context; |
| 159 std::vector<MenuItem> custom_items; | 155 std::vector<MenuItem> custom_items; |
| 160 | 156 |
| 161 ui::MenuSourceType source_type; | 157 ui::MenuSourceType source_type; |
| 162 | 158 |
| 163 // Extra properties for the context menu. | 159 // Extra properties for the context menu. |
| 164 std::map<std::string, std::string> properties; | 160 std::map<std::string, std::string> properties; |
| 165 | 161 |
| 166 #if defined(OS_ANDROID) | 162 #if defined(OS_ANDROID) |
| 167 // Points representing the coordinates in the document space of the start and | 163 // Points representing the coordinates in the document space of the start and |
| 168 // end of the selection, if there is one. | 164 // end of the selection, if there is one. |
| 169 gfx::Point selection_start; | 165 gfx::Point selection_start; |
| 170 gfx::Point selection_end; | 166 gfx::Point selection_end; |
| 171 #endif | 167 #endif |
| 172 | 168 |
| 173 // If this node is an input field, the type of that field. | 169 // If this node is an input field, the type of that field. |
| 174 blink::WebContextMenuData::InputFieldType input_field_type; | 170 blink::WebContextMenuData::InputFieldType input_field_type; |
| 175 }; | 171 }; |
| 176 | 172 |
| 177 } // namespace content | 173 } // namespace content |
| 178 | 174 |
| 179 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ | 175 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ |
| OLD | NEW |