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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/public/common/menu_item.h" | 14 #include "content/public/common/menu_item.h" |
15 #include "content/public/common/page_state.h" | 15 #include "content/public/common/page_state.h" |
16 #include "content/public/common/ssl_status.h" | 16 #include "content/public/common/ssl_status.h" |
17 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 17 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
18 #include "third_party/WebKit/public/web/WebContextMenuData.h" | 18 #include "third_party/WebKit/public/web/WebContextMenuData.h" |
19 #include "ui/base/ui_base_types.h" | 19 #include "ui/base/ui_base_types.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 | 21 |
22 #if defined(OS_ANDROID) | 22 #if defined(OS_ANDROID) |
23 #include "ui/gfx/point.h" | 23 #include "ui/gfx/geometry/point.h" |
24 #endif | 24 #endif |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 | 27 |
28 struct CONTENT_EXPORT CustomContextMenuContext { | 28 struct CONTENT_EXPORT CustomContextMenuContext { |
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; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Points representing the coordinates in the document space of the start and | 149 // Points representing the coordinates in the document space of the start and |
150 // end of the selection, if there is one. | 150 // end of the selection, if there is one. |
151 gfx::Point selection_start; | 151 gfx::Point selection_start; |
152 gfx::Point selection_end; | 152 gfx::Point selection_end; |
153 #endif | 153 #endif |
154 }; | 154 }; |
155 | 155 |
156 } // namespace content | 156 } // namespace content |
157 | 157 |
158 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ | 158 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ |
OLD | NEW |