| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // int - the handle of the window in which the view appears | 250 // int - the handle of the window in which the view appears |
| 251 // int - the ID of the view, as specified in chrome/browser/view_ids.h | 251 // int - the ID of the view, as specified in chrome/browser/view_ids.h |
| 252 // bool - whether the bounds should be returned in the screen coordinates | 252 // bool - whether the bounds should be returned in the screen coordinates |
| 253 // (if true) or in the browser coordinates (if false). | 253 // (if true) or in the browser coordinates (if false). |
| 254 // Response: | 254 // Response: |
| 255 // bool - true if the view was found | 255 // bool - true if the view was found |
| 256 // gfx::Rect - the bounds of the view, in window coordinates | 256 // gfx::Rect - the bounds of the view, in window coordinates |
| 257 IPC_SYNC_MESSAGE_ROUTED3_2(AutomationMsg_WindowViewBounds, int, int, | 257 IPC_SYNC_MESSAGE_ROUTED3_2(AutomationMsg_WindowViewBounds, int, int, |
| 258 bool, bool, gfx::Rect) | 258 bool, bool, gfx::Rect) |
| 259 | 259 |
| 260 // This message sets the bounds of the window. |
| 261 // Request: |
| 262 // int - the handle of the window to resize |
| 263 // gfx::Rect - the bounds of the window |
| 264 // Response: |
| 265 // bool - true if the resize was successful |
| 266 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_SetWindowBounds, int, gfx::Rect, |
| 267 bool) |
| 268 |
| 260 #if defined(OS_WIN) | 269 #if defined(OS_WIN) |
| 261 // TODO(port): Port these messages. | 270 // TODO(port): Port these messages. |
| 262 // | 271 // |
| 263 // This message requests that a drag be performed in window coordinate space | 272 // This message requests that a drag be performed in window coordinate space |
| 264 // Request: | 273 // Request: |
| 265 // int - the handle of the window that's the context for this drag | 274 // int - the handle of the window that's the context for this drag |
| 266 // std::vector<POINT> - the path of the drag in window coordinate space; | 275 // std::vector<POINT> - the path of the drag in window coordinate space; |
| 267 // it should have at least 2 points (start and end) | 276 // it should have at least 2 points (start and end) |
| 268 // int - the flags which identify the mouse button(s) for the drag, as | 277 // int - the flags which identify the mouse button(s) for the drag, as |
| 269 // defined in chrome/views/event.h | 278 // defined in chrome/views/event.h |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 int /* the x coordinate for displaying the menu */, | 938 int /* the x coordinate for displaying the menu */, |
| 930 int /* the y coordinate for displaying the menu */, | 939 int /* the y coordinate for displaying the menu */, |
| 931 int /* align flags */) | 940 int /* align flags */) |
| 932 | 941 |
| 933 IPC_MESSAGE_ROUTED2(AutomationMsg_ForwardContextMenuCommandToChrome, | 942 IPC_MESSAGE_ROUTED2(AutomationMsg_ForwardContextMenuCommandToChrome, |
| 934 int /* tab_handle */, | 943 int /* tab_handle */, |
| 935 int /* selected_command */) | 944 int /* selected_command */) |
| 936 #endif // OS_WIN | 945 #endif // OS_WIN |
| 937 | 946 |
| 938 IPC_END_MESSAGES(Automation) | 947 IPC_END_MESSAGES(Automation) |
| OLD | NEW |