OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Defines the IPC messages used by the automation interface. | 5 // Defines the IPC messages used by the automation interface. |
6 | 6 |
7 // This header is meant to be included in multiple passes, hence no traditional | 7 // This header is meant to be included in multiple passes, hence no traditional |
8 // header guard. | 8 // header guard. |
9 // See ipc_message_macros.h for explanation of the macros and passes. | 9 // See ipc_message_macros.h for explanation of the macros and passes. |
10 | 10 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // the given handle. The return value contains the number of constrained | 249 // the given handle. The return value contains the number of constrained |
250 // windows, or -1 if the request failed. | 250 // windows, or -1 if the request failed. |
251 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_ConstrainedWindowCount, | 251 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_ConstrainedWindowCount, |
252 int /* tab_handle */, | 252 int /* tab_handle */, |
253 int /* constrained_window_count */) | 253 int /* constrained_window_count */) |
254 | 254 |
255 // This message requests the bounds of the specified View element in | 255 // This message requests the bounds of the specified View element in |
256 // window coordinates. | 256 // window coordinates. |
257 // Request: | 257 // Request: |
258 // int - the handle of the window in which the view appears | 258 // int - the handle of the window in which the view appears |
259 // int - the ID of the view, as specified in chrome/browser/view_ids.h | 259 // int - the ID of the view, as specified in chrome/browser/ui/view_ids.h |
260 // bool - whether the bounds should be returned in the screen coordinates | 260 // bool - whether the bounds should be returned in the screen coordinates |
261 // (if true) or in the browser coordinates (if false). | 261 // (if true) or in the browser coordinates (if false). |
262 // Response: | 262 // Response: |
263 // bool - true if the view was found | 263 // bool - true if the view was found |
264 // gfx::Rect - the bounds of the view, in window coordinates | 264 // gfx::Rect - the bounds of the view, in window coordinates |
265 IPC_SYNC_MESSAGE_ROUTED3_2(AutomationMsg_WindowViewBounds, int, int, | 265 IPC_SYNC_MESSAGE_ROUTED3_2(AutomationMsg_WindowViewBounds, int, int, |
266 bool, bool, gfx::Rect) | 266 bool, bool, gfx::Rect) |
267 | 267 |
268 // This message sets the bounds of the window. | 268 // This message sets the bounds of the window. |
269 // Request: | 269 // Request: |
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1451 // view, and saves the image as a PNG in the given file location. | 1451 // view, and saves the image as a PNG in the given file location. |
1452 // Request: | 1452 // Request: |
1453 // -int: Tab handle | 1453 // -int: Tab handle |
1454 // -FilePath: Path to save the captured image to | 1454 // -FilePath: Path to save the captured image to |
1455 // Response: | 1455 // Response: |
1456 // -bool: Whether the method succeeded | 1456 // -bool: Whether the method succeeded |
1457 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_CaptureEntirePageAsPNG, int, | 1457 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_CaptureEntirePageAsPNG, int, |
1458 FilePath, bool) | 1458 FilePath, bool) |
1459 | 1459 |
1460 IPC_END_MESSAGES(Automation) | 1460 IPC_END_MESSAGES(Automation) |
OLD | NEW |