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 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/gfx/point.h" | |
15 #include "base/gfx/rect.h" | 16 #include "base/gfx/rect.h" |
16 #include "base/string16.h" | 17 #include "base/string16.h" |
17 #include "chrome/common/navigation_types.h" | 18 #include "chrome/common/navigation_types.h" |
18 #include "chrome/test/automation/autocomplete_edit_proxy.h" | 19 #include "chrome/test/automation/autocomplete_edit_proxy.h" |
19 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
20 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
21 | 22 |
22 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous | 23 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous |
23 // messages), or one that's been assigned by the proxy (for calls | 24 // messages), or one that's been assigned by the proxy (for calls |
24 // which expect a response). The routing_id shouldn't be used for | 25 // which expect a response). The routing_id shouldn't be used for |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
382 | 383 |
383 // This message requests the AutocompleteEdit associated with the specified | 384 // This message requests the AutocompleteEdit associated with the specified |
384 // browser handle. | 385 // browser handle. |
385 // The return value contains a success flag and the handle of the omnibox. | 386 // The return value contains a success flag and the handle of the omnibox. |
386 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_AutocompleteEditForBrowser, | 387 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_AutocompleteEditForBrowser, |
387 int /* browser handle */, | 388 int /* browser handle */, |
388 bool /* success flag */, | 389 bool /* success flag */, |
389 int /* AutocompleteEdit handle */) | 390 int /* AutocompleteEdit handle */) |
390 | 391 |
391 #if defined(OS_WIN) | 392 #if defined(OS_WIN) |
392 // TODO(port): Port this message. | 393 // TODO(estade): This message is defined later on for Mac and Linux. This is |
394 // to avoid adding a new IPC in the middle for those platforms (see comment | |
395 // at top). The message is exactly the same, so they should be remerged when | |
396 // all messages in this file have been made cross-platform (at which point we | |
397 // will need to check in new reference builds). | |
393 // | 398 // |
394 // This message requests that a mouse click be performed in window coordinate | 399 // This message requests that a mouse click be performed in window coordinate |
395 // space. | 400 // space. |
396 // Request: | 401 // Request: |
397 // int - the handle of the window that's the context for this click | 402 // int - the handle of the window that's the context for this click |
398 // POINT - the point to click | 403 // gfx::Point - the point to click |
399 // int - the flags which identify the mouse button(s) for the click, as | 404 // int - the flags which identify the mouse button(s) for the click, as |
400 // defined in chrome/views/event.h | 405 // defined in chrome/views/event.h |
401 IPC_MESSAGE_ROUTED3(AutomationMsg_WindowClick, int, POINT, int) | 406 IPC_MESSAGE_ROUTED3(AutomationMsg_WindowClick, int, gfx::Point, int) |
402 #endif // defined(OS_WIN) | 407 #endif // defined(OS_WIN) |
403 | 408 |
404 // This message requests that a key press be performed. | 409 // This message requests that a key press be performed. |
405 // Request: | 410 // Request: |
406 // int - the handle of the window that's the context for this click | 411 // int - the handle of the window that's the context for this click |
407 // wchar_t - char of the key that was pressed. | 412 // wchar_t - char of the key that was pressed. |
408 // int - the flags which identify the modifiers (shift, ctrl, alt) | 413 // int - the flags which identify the modifiers (shift, ctrl, alt) |
409 // associated for, as defined in chrome/views/event.h | 414 // associated for, as defined in chrome/views/event.h |
410 IPC_MESSAGE_ROUTED3(AutomationMsg_WindowKeyPress, int, wchar_t, int) | 415 IPC_MESSAGE_ROUTED3(AutomationMsg_WindowKeyPress, int, wchar_t, int) |
411 | 416 |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
981 int /* tab handle */) | 986 int /* tab handle */) |
982 | 987 |
983 IPC_MESSAGE_ROUTED1(AutomationMsg_StopAsync, | 988 IPC_MESSAGE_ROUTED1(AutomationMsg_StopAsync, |
984 int /* tab handle */) | 989 int /* tab handle */) |
985 | 990 |
986 // Returns the number of times a filter was used to service an URL request. | 991 // Returns the number of times a filter was used to service an URL request. |
987 // See AutomationMsg_SetFilteredInet. | 992 // See AutomationMsg_SetFilteredInet. |
988 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_GetFilteredInetHitCount, | 993 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_GetFilteredInetHitCount, |
989 int /* hit_count */) | 994 int /* hit_count */) |
990 | 995 |
996 #if defined(OS_LINUX) || defined(OS_MACOSX) | |
tony
2009/08/13 21:15:20
Maybe add a short comment here to look above?
| |
997 IPC_MESSAGE_ROUTED3(AutomationMsg_WindowClick, int, gfx::Point, int) | |
998 #endif | |
999 | |
991 IPC_END_MESSAGES(Automation) | 1000 IPC_END_MESSAGES(Automation) |
OLD | NEW |