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 <map> |
8 #include <string> | 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
12 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
13 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
14 #include "content/public/common/menu_item.h" | 15 #include "content/public/common/menu_item.h" |
15 #include "content/public/common/page_state.h" | 16 #include "content/public/common/page_state.h" |
16 #include "content/public/common/ssl_status.h" | 17 #include "content/public/common/ssl_status.h" |
17 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 18 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 std::string frame_charset; | 145 std::string frame_charset; |
145 | 146 |
146 // The referrer policy of the frame on which the menu is invoked. | 147 // The referrer policy of the frame on which the menu is invoked. |
147 blink::WebReferrerPolicy referrer_policy; | 148 blink::WebReferrerPolicy referrer_policy; |
148 | 149 |
149 CustomContextMenuContext custom_context; | 150 CustomContextMenuContext custom_context; |
150 std::vector<MenuItem> custom_items; | 151 std::vector<MenuItem> custom_items; |
151 | 152 |
152 ui::MenuSourceType source_type; | 153 ui::MenuSourceType source_type; |
153 | 154 |
| 155 // Extra properties for the context menu. |
| 156 std::map<std::string, std::string> properties; |
| 157 |
154 #if defined(OS_ANDROID) | 158 #if defined(OS_ANDROID) |
155 // Points representing the coordinates in the document space of the start and | 159 // Points representing the coordinates in the document space of the start and |
156 // end of the selection, if there is one. | 160 // end of the selection, if there is one. |
157 gfx::Point selection_start; | 161 gfx::Point selection_start; |
158 gfx::Point selection_end; | 162 gfx::Point selection_end; |
159 #endif | 163 #endif |
160 }; | 164 }; |
161 | 165 |
162 } // namespace content | 166 } // namespace content |
163 | 167 |
164 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ | 168 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ |
OLD | NEW |