Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/common/automation_messages_internal.h

Issue 10836015: Convert more automation calls to the JSON interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // Defines the IPC messages used by the automation interface. 5 // Defines the IPC messages used by the automation interface.
6 6
7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous 7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous
8 // messages), or one that's been assigned by the proxy (for calls 8 // messages), or one that's been assigned by the proxy (for calls
9 // which expect a response). The routing_id shouldn't be used for 9 // which expect a response). The routing_id shouldn't be used for
10 // any other purpose in these message types. 10 // any other purpose in these message types.
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 // The return value contains a boolean, whether the command was dispatched 493 // The return value contains a boolean, whether the command was dispatched
494 // and successful executed. 494 // and successful executed.
495 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WindowExecuteCommand, 495 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WindowExecuteCommand,
496 int /* automation handle */, 496 int /* automation handle */,
497 int /* browser command */, 497 int /* browser command */,
498 bool /* success flag */) 498 bool /* success flag */)
499 499
500 500
501 // This message opens the Find window within a tab corresponding to the 501 // This message opens the Find window within a tab corresponding to the
502 // supplied tab handle. 502 // supplied tab handle.
503 IPC_MESSAGE_CONTROL1(AutomationMsg_OpenFindInPage, 503 IPC_MESSAGE_CONTROL1(AutomationMsg_DEPRECATED_OpenFindInPage,
504 int /* tab_handle */) 504 int /* tab_handle */)
505 505
506 // Posts a message from external host to chrome renderer. 506 // Posts a message from external host to chrome renderer.
507 IPC_MESSAGE_CONTROL4(AutomationMsg_HandleMessageFromExternalHost, 507 IPC_MESSAGE_CONTROL4(AutomationMsg_HandleMessageFromExternalHost,
508 int /* automation handle */, 508 int /* automation handle */,
509 std::string /* message */, 509 std::string /* message */,
510 std::string /* origin */, 510 std::string /* origin */,
511 std::string /* target */) 511 std::string /* target */)
512 512
513 // A message for an external host. 513 // A message for an external host.
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 856
857 // Generic pyauto pattern to help avoid future addition of 857 // Generic pyauto pattern to help avoid future addition of
858 // automation messages. 858 // automation messages.
859 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequestWithBrowserHandle, 859 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequestWithBrowserHandle,
860 int /* browser_handle */, 860 int /* browser_handle */,
861 std::string /* JSON request */, 861 std::string /* JSON request */,
862 std::string /* JSON response */, 862 std::string /* JSON response */,
863 bool /* success */) 863 bool /* success */)
864 864
865 // Resets to the default theme. 865 // Resets to the default theme.
866 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_ResetToDefaultTheme) 866 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_DEPRECIATED_ResetToDefaultTheme)
867 867
868 // This message requests the external tab identified by the tab handle 868 // This message requests the external tab identified by the tab handle
869 // passed in be closed. 869 // passed in be closed.
870 // Request: 870 // Request:
871 // Response: 871 // Response:
872 // None expected 872 // None expected
873 IPC_MESSAGE_ROUTED0(AutomationMsg_CloseExternalTab) 873 IPC_MESSAGE_ROUTED0(AutomationMsg_CloseExternalTab)
874 874
875 // This message requests that the external tab identified by the tab handle 875 // This message requests that the external tab identified by the tab handle
876 // runs unload handlers if any on the current page. 876 // runs unload handlers if any on the current page.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 1001
1002 // Sent when the automation mouse event has been processed. 1002 // Sent when the automation mouse event has been processed.
1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, 1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK,
1004 bool /* success */, 1004 bool /* success */,
1005 std::string /* error message */) 1005 std::string /* error message */)
1006 1006
1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. 1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE.
1008 // This is the section for renderer -> browser automation messages. If it is 1008 // This is the section for renderer -> browser automation messages. If it is
1009 // an automation <-> browser message, put it above this section. The "no line 1009 // an automation <-> browser message, put it above this section. The "no line
1010 // number change" applies only to the automation <-> browser messages. 1010 // number change" applies only to the automation <-> browser messages.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698