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

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: . 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 // 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 IPC_STRUCT_BEGIN(AutomationURLRequest) 139 IPC_STRUCT_BEGIN(AutomationURLRequest)
139 IPC_STRUCT_MEMBER(std::string, url) 140 IPC_STRUCT_MEMBER(std::string, url)
140 IPC_STRUCT_MEMBER(std::string, method) 141 IPC_STRUCT_MEMBER(std::string, method)
141 IPC_STRUCT_MEMBER(std::string, referrer) 142 IPC_STRUCT_MEMBER(std::string, referrer)
142 IPC_STRUCT_MEMBER(std::string, extra_request_headers) 143 IPC_STRUCT_MEMBER(std::string, extra_request_headers)
143 IPC_STRUCT_MEMBER(scoped_refptr<net::UploadData>, upload_data) 144 IPC_STRUCT_MEMBER(scoped_refptr<net::UploadData>, upload_data)
144 IPC_STRUCT_MEMBER(int, resource_type) // see webkit/glue/resource_type.h 145 IPC_STRUCT_MEMBER(int, resource_type) // see webkit/glue/resource_type.h
145 IPC_STRUCT_MEMBER(int, load_flags) // see net/base/load_flags.h 146 IPC_STRUCT_MEMBER(int, load_flags) // see net/base/load_flags.h
146 IPC_STRUCT_END() 147 IPC_STRUCT_END()
147 148
149 IPC_STRUCT_TRAITS_BEGIN(ScriptEvaluationRequest)
150 IPC_STRUCT_TRAITS_MEMBER(script)
151 IPC_STRUCT_TRAITS_MEMBER(frame_xpath)
152 IPC_STRUCT_TRAITS_END()
153
148 // Singly-included section for struct and custom IPC traits. 154 // Singly-included section for struct and custom IPC traits.
149 #ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H_ 155 #ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H_
150 #define CHROME_COMMON_AUTOMATION_MESSAGES_H_ 156 #define CHROME_COMMON_AUTOMATION_MESSAGES_H_
151 157
152 // This struct passes information about the context menu in Chrome stored 158 // This struct passes information about the context menu in Chrome stored
153 // as a ui::MenuModel to Chrome Frame. It is basically a container of 159 // as a ui::MenuModel to Chrome Frame. It is basically a container of
154 // items that go in the menu. An item may be a submenu, so the data 160 // items that go in the menu. An item may be a submenu, so the data
155 // structure may be a tree. 161 // structure may be a tree.
156 struct ContextMenuModel { 162 struct ContextMenuModel {
157 ContextMenuModel(); 163 ContextMenuModel();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 195
190 // Traits for ContextMenuModel structure to pack/unpack. 196 // Traits for ContextMenuModel structure to pack/unpack.
191 template <> 197 template <>
192 struct ParamTraits<ContextMenuModel> { 198 struct ParamTraits<ContextMenuModel> {
193 typedef ContextMenuModel param_type; 199 typedef ContextMenuModel param_type;
194 static void Write(Message* m, const param_type& p); 200 static void Write(Message* m, const param_type& p);
195 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 201 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
196 static void Log(const param_type& p, std::string* l); 202 static void Log(const param_type& p, std::string* l);
197 }; 203 };
198 204
205 // Traits for AutomationMouseEvent structure to pack/unpack.
206 template <>
207 struct ParamTraits<AutomationMouseEvent> {
208 typedef AutomationMouseEvent param_type;
209 static void Write(Message* m, const param_type& p);
210 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
211 static void Log(const param_type& p, std::string* l);
212 };
213
199 } // namespace IPC 214 } // namespace IPC
200 215
201 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_ 216 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_
202 217
203 // Keep this internal message file unchanged to preserve line numbering 218 // Keep this internal message file unchanged to preserve line numbering
204 // (and hence the dubious __LINE__-based message numberings) across versions. 219 // (and hence the dubious __LINE__-based message numberings) across versions.
205 #include "chrome/common/automation_messages_internal.h" 220 #include "chrome/common/automation_messages_internal.h"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698