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

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

Issue 10384023: Determine the element location and click synchronously on the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 954
955 // Requests a snapshot. 955 // Requests a snapshot.
956 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage) 956 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage)
957 957
958 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) 958 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS))
959 // Requests to dump a heap profile. 959 // Requests to dump a heap profile.
960 IPC_MESSAGE_ROUTED1(AutomationMsg_HeapProfilerDump, 960 IPC_MESSAGE_ROUTED1(AutomationMsg_HeapProfilerDump,
961 std::string /* reason */) 961 std::string /* reason */)
962 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS)) 962 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS))
963 963
964 // Requests processing of the given mouse event.
965 IPC_MESSAGE_ROUTED1(AutomationMsg_ProcessMouseEvent,
966 AutomationMouseEvent)
967
964 // Renderer -> browser messages. 968 // Renderer -> browser messages.
965 969
966 // Sent as a response to |AutomationMsg_Snapshot|. 970 // Sent as a response to |AutomationMsg_Snapshot|.
967 IPC_MESSAGE_ROUTED3(AutomationMsg_SnapshotEntirePageACK, 971 IPC_MESSAGE_ROUTED3(AutomationMsg_SnapshotEntirePageACK,
968 bool /* success */, 972 bool /* success */,
969 std::vector<unsigned char> /* png bytes */, 973 std::vector<unsigned char> /* png bytes */,
970 std::string /* error message */) 974 std::string /* error message */)
971 975
972 // Sent when the renderer has scheduled a client redirect to occur. 976 // Sent when the renderer has scheduled a client redirect to occur.
973 IPC_MESSAGE_ROUTED2(AutomationMsg_WillPerformClientRedirect, 977 IPC_MESSAGE_ROUTED2(AutomationMsg_WillPerformClientRedirect,
974 int64 /* frame_id */, 978 int64 /* frame_id */,
975 double /* # of seconds till redirect will be performed */) 979 double /* # of seconds till redirect will be performed */)
976 980
977 // Sent when the renderer has completed or canceled a client redirect for a 981 // Sent when the renderer has completed or canceled a client redirect for a
978 // particular frame. This message may be sent multiple times for the same 982 // particular frame. This message may be sent multiple times for the same
979 // redirect. 983 // redirect.
980 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, 984 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect,
981 int64 /* frame_id */) 985 int64 /* frame_id */)
982 986
987 // Sent right before processing a mouse event at the given point.
988 // This is needed in addition to AutomationMsg_ProcessMouseEventACK so that
989 // the client knows where the event occurred even if the event causes a modal
990 // dialog to appear which blocks further messages.
991 IPC_MESSAGE_ROUTED1(AutomationMsg_WillProcessMouseEventAt,
992 gfx::Point)
993
994 // Sent when the automation mouse event has been processed.
995 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK,
996 bool /* success */,
997 std::string /* error message */)
998
983 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. 999 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE.
984 // This is the section for renderer -> browser automation messages. If it is 1000 // This is the section for renderer -> browser automation messages. If it is
985 // an automation <-> browser message, put it above this section. The "no line 1001 // an automation <-> browser message, put it above this section. The "no line
986 // number change" applies only to the automation <-> browser messages. 1002 // number change" applies only to the automation <-> browser messages.
OLDNEW
« no previous file with comments | « chrome/common/automation_messages.cc ('k') | chrome/renderer/automation/automation_renderer_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698