| 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 // Multiply-included message file, no traditional include guard. | 5 // Multiply-included message file, no traditional include guard. |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "chrome/common/automation_constants.h" | 9 #include "chrome/common/automation_constants.h" |
| 10 #include "chrome/common/content_settings.h" | 10 #include "chrome/common/content_settings.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 // A stripped down version of ContextMenuParams in webkit/glue/context_menu.h. | 112 // A stripped down version of ContextMenuParams in webkit/glue/context_menu.h. |
| 113 struct MiniContextMenuParams { | 113 struct MiniContextMenuParams { |
| 114 MiniContextMenuParams(); | 114 MiniContextMenuParams(); |
| 115 MiniContextMenuParams(int screen_x, | 115 MiniContextMenuParams(int screen_x, |
| 116 int screen_y, | 116 int screen_y, |
| 117 const GURL& link_url, | 117 const GURL& link_url, |
| 118 const GURL& unfiltered_link_url, | 118 const GURL& unfiltered_link_url, |
| 119 const GURL& src_url, | 119 const GURL& src_url, |
| 120 const GURL& page_url, | 120 const GURL& page_url, |
| 121 const GURL& keyword_url, |
| 121 const GURL& frame_url); | 122 const GURL& frame_url); |
| 122 ~MiniContextMenuParams(); | 123 ~MiniContextMenuParams(); |
| 123 | 124 |
| 124 // The x coordinate for displaying the menu. | 125 // The x coordinate for displaying the menu. |
| 125 int screen_x; | 126 int screen_x; |
| 126 | 127 |
| 127 // The y coordinate for displaying the menu. | 128 // The y coordinate for displaying the menu. |
| 128 int screen_y; | 129 int screen_y; |
| 129 | 130 |
| 130 // This is the URL of the link that encloses the node the context menu was | 131 // This is the URL of the link that encloses the node the context menu was |
| 131 // invoked on. | 132 // invoked on. |
| 132 GURL link_url; | 133 GURL link_url; |
| 133 | 134 |
| 134 // The link URL to be used ONLY for "copy link address". We don't validate | 135 // The link URL to be used ONLY for "copy link address". We don't validate |
| 135 // this field in the frontend process. | 136 // this field in the frontend process. |
| 136 GURL unfiltered_link_url; | 137 GURL unfiltered_link_url; |
| 137 | 138 |
| 138 // This is the source URL for the element that the context menu was | 139 // This is the source URL for the element that the context menu was |
| 139 // invoked on. Example of elements with source URLs are img, audio, and | 140 // invoked on. Example of elements with source URLs are img, audio, and |
| 140 // video. | 141 // video. |
| 141 GURL src_url; | 142 GURL src_url; |
| 142 | 143 |
| 143 // This is the URL of the top level page that the context menu was invoked | 144 // This is the URL of the top level page that the context menu was invoked |
| 144 // on. | 145 // on. |
| 145 GURL page_url; | 146 GURL page_url; |
| 146 | 147 |
| 148 // This is the absolute keyword search URL including the %s search tag when |
| 149 // the "Add as search engine..." option is clicked (left empty if not used). |
| 150 GURL keyword_url; |
| 151 |
| 147 // This is the URL of the subframe that the context menu was invoked on. | 152 // This is the URL of the subframe that the context menu was invoked on. |
| 148 GURL frame_url; | 153 GURL frame_url; |
| 149 }; | 154 }; |
| 150 | 155 |
| 151 struct AttachExternalTabParams { | 156 struct AttachExternalTabParams { |
| 152 AttachExternalTabParams(); | 157 AttachExternalTabParams(); |
| 153 AttachExternalTabParams(uint64 cookie, | 158 AttachExternalTabParams(uint64 cookie, |
| 154 const GURL& url, | 159 const GURL& url, |
| 155 const gfx::Rect& dimensions, | 160 const gfx::Rect& dimensions, |
| 156 int disposition, | 161 int disposition, |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 }; | 363 }; |
| 359 | 364 |
| 360 } // namespace IPC | 365 } // namespace IPC |
| 361 | 366 |
| 362 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H__ | 367 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H__ |
| 363 | 368 |
| 364 // Keep this internal message file unchanged to preserve line numbering | 369 // Keep this internal message file unchanged to preserve line numbering |
| 365 // (and hence the dubious __LINE__-based message numberings) across versions. | 370 // (and hence the dubious __LINE__-based message numberings) across versions. |
| 366 #include "chrome/common/automation_messages_internal.h" | 371 #include "chrome/common/automation_messages_internal.h" |
| 367 | 372 |
| OLD | NEW |