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

Unified Diff: chrome/common/automation_messages.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_events.cc ('k') | chrome/common/automation_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/automation_messages.h
diff --git a/chrome/common/automation_messages.h b/chrome/common/automation_messages.h
index 30e0bd6ba5397833eab6be0f076d829efd41e365..d808ef167d6b6b9cbe46124009717fef0266c7fa 100644
--- a/chrome/common/automation_messages.h
+++ b/chrome/common/automation_messages.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "chrome/common/automation_constants.h"
+#include "chrome/common/automation_events.h"
#include "chrome/common/content_settings.h"
#include "content/public/common/common_param_traits.h"
#include "content/public/common/page_type.h"
@@ -144,6 +145,11 @@ IPC_STRUCT_BEGIN(AutomationURLRequest)
IPC_STRUCT_MEMBER(int, load_flags) // see net/base/load_flags.h
IPC_STRUCT_END()
+IPC_STRUCT_TRAITS_BEGIN(ScriptEvaluationRequest)
+ IPC_STRUCT_TRAITS_MEMBER(script)
+ IPC_STRUCT_TRAITS_MEMBER(frame_xpath)
+IPC_STRUCT_TRAITS_END()
+
// Singly-included section for struct and custom IPC traits.
#ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H_
#define CHROME_COMMON_AUTOMATION_MESSAGES_H_
@@ -195,6 +201,15 @@ struct ParamTraits<ContextMenuModel> {
static void Log(const param_type& p, std::string* l);
};
+// Traits for AutomationMouseEvent structure to pack/unpack.
+template <>
+struct ParamTraits<AutomationMouseEvent> {
+ typedef AutomationMouseEvent param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, PickleIterator* iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_
« no previous file with comments | « chrome/common/automation_events.cc ('k') | chrome/common/automation_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698