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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/automation_messages.cc ('k') | chrome/renderer/automation/automation_renderer_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/automation_messages_internal.h
diff --git a/chrome/common/automation_messages_internal.h b/chrome/common/automation_messages_internal.h
index fd424b0f036c95cf235edd2fbb8b4302dd6d5023..8acfc954512574fed8b9b45ea10bc47db29629cb 100644
--- a/chrome/common/automation_messages_internal.h
+++ b/chrome/common/automation_messages_internal.h
@@ -961,6 +961,10 @@ IPC_MESSAGE_ROUTED1(AutomationMsg_HeapProfilerDump,
std::string /* reason */)
#endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS))
+// Requests processing of the given mouse event.
+IPC_MESSAGE_ROUTED1(AutomationMsg_ProcessMouseEvent,
+ AutomationMouseEvent)
+
// Renderer -> browser messages.
// Sent as a response to |AutomationMsg_Snapshot|.
@@ -980,6 +984,18 @@ IPC_MESSAGE_ROUTED2(AutomationMsg_WillPerformClientRedirect,
IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect,
int64 /* frame_id */)
+// Sent right before processing a mouse event at the given point.
+// This is needed in addition to AutomationMsg_ProcessMouseEventACK so that
+// the client knows where the event occurred even if the event causes a modal
+// dialog to appear which blocks further messages.
+IPC_MESSAGE_ROUTED1(AutomationMsg_WillProcessMouseEventAt,
+ gfx::Point)
+
+// Sent when the automation mouse event has been processed.
+IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK,
+ bool /* success */,
+ std::string /* error message */)
+
// YOUR NEW MESSAGE MIGHT NOT BELONG HERE.
// This is the section for renderer -> browser automation messages. If it is
// an automation <-> browser message, put it above this section. The "no line
« 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