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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/automation_events.cc ('k') | chrome/common/automation_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Multiply-included message file, no traditional include guard. 5 // Multiply-included message file, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "chrome/common/automation_constants.h" 11 #include "chrome/common/automation_constants.h"
12 #include "chrome/common/automation_events.h"
12 #include "chrome/common/content_settings.h" 13 #include "chrome/common/content_settings.h"
13 #include "content/public/common/common_param_traits.h" 14 #include "content/public/common/common_param_traits.h"
14 #include "content/public/common/page_type.h" 15 #include "content/public/common/page_type.h"
15 #include "content/public/common/security_style.h" 16 #include "content/public/common/security_style.h"
16 #include "content/public/common/webkit_param_traits.h" 17 #include "content/public/common/webkit_param_traits.h"
17 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
18 #include "ipc/ipc_message_macros.h" 19 #include "ipc/ipc_message_macros.h"
19 #include "ipc/ipc_message_utils.h" 20 #include "ipc/ipc_message_utils.h"
20 #include "net/base/cert_status_flags.h" 21 #include "net/base/cert_status_flags.h"
21 #include "net/base/host_port_pair.h" 22 #include "net/base/host_port_pair.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 IPC_STRUCT_BEGIN(AutomationURLRequest) 138 IPC_STRUCT_BEGIN(AutomationURLRequest)
138 IPC_STRUCT_MEMBER(std::string, url) 139 IPC_STRUCT_MEMBER(std::string, url)
139 IPC_STRUCT_MEMBER(std::string, method) 140 IPC_STRUCT_MEMBER(std::string, method)
140 IPC_STRUCT_MEMBER(std::string, referrer) 141 IPC_STRUCT_MEMBER(std::string, referrer)
141 IPC_STRUCT_MEMBER(std::string, extra_request_headers) 142 IPC_STRUCT_MEMBER(std::string, extra_request_headers)
142 IPC_STRUCT_MEMBER(scoped_refptr<net::UploadData>, upload_data) 143 IPC_STRUCT_MEMBER(scoped_refptr<net::UploadData>, upload_data)
143 IPC_STRUCT_MEMBER(int, resource_type) // see webkit/glue/resource_type.h 144 IPC_STRUCT_MEMBER(int, resource_type) // see webkit/glue/resource_type.h
144 IPC_STRUCT_MEMBER(int, load_flags) // see net/base/load_flags.h 145 IPC_STRUCT_MEMBER(int, load_flags) // see net/base/load_flags.h
145 IPC_STRUCT_END() 146 IPC_STRUCT_END()
146 147
148 IPC_STRUCT_TRAITS_BEGIN(ScriptEvaluationRequest)
149 IPC_STRUCT_TRAITS_MEMBER(script)
150 IPC_STRUCT_TRAITS_MEMBER(frame_xpath)
151 IPC_STRUCT_TRAITS_END()
152
147 // Singly-included section for struct and custom IPC traits. 153 // Singly-included section for struct and custom IPC traits.
148 #ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H_ 154 #ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H_
149 #define CHROME_COMMON_AUTOMATION_MESSAGES_H_ 155 #define CHROME_COMMON_AUTOMATION_MESSAGES_H_
150 156
151 // This struct passes information about the context menu in Chrome stored 157 // This struct passes information about the context menu in Chrome stored
152 // as a ui::MenuModel to Chrome Frame. It is basically a container of 158 // as a ui::MenuModel to Chrome Frame. It is basically a container of
153 // items that go in the menu. An item may be a submenu, so the data 159 // items that go in the menu. An item may be a submenu, so the data
154 // structure may be a tree. 160 // structure may be a tree.
155 struct ContextMenuModel { 161 struct ContextMenuModel {
156 ContextMenuModel(); 162 ContextMenuModel();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 194
189 // Traits for ContextMenuModel structure to pack/unpack. 195 // Traits for ContextMenuModel structure to pack/unpack.
190 template <> 196 template <>
191 struct ParamTraits<ContextMenuModel> { 197 struct ParamTraits<ContextMenuModel> {
192 typedef ContextMenuModel param_type; 198 typedef ContextMenuModel param_type;
193 static void Write(Message* m, const param_type& p); 199 static void Write(Message* m, const param_type& p);
194 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 200 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
195 static void Log(const param_type& p, std::string* l); 201 static void Log(const param_type& p, std::string* l);
196 }; 202 };
197 203
204 // Traits for AutomationMouseEvent structure to pack/unpack.
205 template <>
206 struct ParamTraits<AutomationMouseEvent> {
207 typedef AutomationMouseEvent param_type;
208 static void Write(Message* m, const param_type& p);
209 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
210 static void Log(const param_type& p, std::string* l);
211 };
212
198 } // namespace IPC 213 } // namespace IPC
199 214
200 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_ 215 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_
201 216
202 // Keep this internal message file unchanged to preserve line numbering 217 // Keep this internal message file unchanged to preserve line numbering
203 // (and hence the dubious __LINE__-based message numberings) across versions. 218 // (and hence the dubious __LINE__-based message numberings) across versions.
204 #include "chrome/common/automation_messages_internal.h" 219 #include "chrome/common/automation_messages_internal.h"
OLDNEW
« 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