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

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

Issue 10534163: First pass at refactoring pyautolib in preparation for removing proxy dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 // code can be removed if that limitation is fixed. 943 // code can be removed if that limitation is fixed.
944 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput, 944 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput,
945 std::string /* trace_chunk */, 945 std::string /* trace_chunk */,
946 bool /* success */) 946 bool /* success */)
947 947
948 // Used on Mac OS X to read the number of active Mach ports used in the browser 948 // Used on Mac OS X to read the number of active Mach ports used in the browser
949 // process. 949 // process.
950 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetMachPortCount, 950 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetMachPortCount,
951 int /* number of Mach ports */) 951 int /* number of Mach ports */)
952 952
953 // Generic pyauto pattern to help avoid future addition of
954 // automation messages.
955 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequestWithIndex,
956 int /* window_index */,
957 std::string /* JSON request */,
958 std::string /* JSON response */,
959 bool /* success */)
960
953 // Browser -> renderer messages. 961 // Browser -> renderer messages.
954 962
955 // Requests a snapshot. 963 // Requests a snapshot.
956 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage) 964 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage)
957 965
958 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) 966 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS))
959 // Requests to dump a heap profile. 967 // Requests to dump a heap profile.
960 IPC_MESSAGE_ROUTED1(AutomationMsg_HeapProfilerDump, 968 IPC_MESSAGE_ROUTED1(AutomationMsg_HeapProfilerDump,
961 std::string /* reason */) 969 std::string /* reason */)
962 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) 970 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS))
(...skipping 30 matching lines...) Expand all
993 1001
994 // Sent when the automation mouse event has been processed. 1002 // Sent when the automation mouse event has been processed.
995 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, 1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK,
996 bool /* success */, 1004 bool /* success */,
997 std::string /* error message */) 1005 std::string /* error message */)
998 1006
999 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. 1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE.
1000 // 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
1001 // 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
1002 // 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