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

Side by Side Diff: chrome/test/automation/automation_json_requests.h

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/service/service_process_prefs.h ('k') | chrome/test/automation/tab_proxy.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "chrome/common/automation_constants.h" 14 #include "chrome/common/automation_constants.h"
15 #include "ui/base/keycodes/keyboard_codes.h" 15 #include "ui/base/keycodes/keyboard_codes.h"
16 16
17 class AutomationMessageSender; 17 class AutomationMessageSender;
18 class FilePath; 18 class FilePath;
19 class GURL; 19 class GURL;
20
21 namespace base {
20 class DictionaryValue; 22 class DictionaryValue;
21 class ListValue; 23 class ListValue;
22 class Value; 24 class Value;
25 }
23 26
24 struct WebKeyEvent { 27 struct WebKeyEvent {
25 WebKeyEvent(automation::KeyEventTypes type, 28 WebKeyEvent(automation::KeyEventTypes type,
26 ui::KeyboardCode key_code, 29 ui::KeyboardCode key_code,
27 const std::string& unmodified_text, 30 const std::string& unmodified_text,
28 const std::string& modified_text, 31 const std::string& modified_text,
29 int modifiers); 32 int modifiers);
30 33
31 automation::KeyEventTypes type; 34 automation::KeyEventTypes type;
32 ui::KeyboardCode key_code; 35 ui::KeyboardCode key_code;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 87
85 // Requests the given javascript to be executed in the frame specified by the 88 // Requests the given javascript to be executed in the frame specified by the
86 // given xpath. Returns true on success. If true, |result| will be set to the 89 // given xpath. Returns true on success. If true, |result| will be set to the
87 // result of the execution and ownership will be given to the caller. 90 // result of the execution and ownership will be given to the caller.
88 bool SendExecuteJavascriptJSONRequest( 91 bool SendExecuteJavascriptJSONRequest(
89 AutomationMessageSender* sender, 92 AutomationMessageSender* sender,
90 int browser_index, 93 int browser_index,
91 int tab_index, 94 int tab_index,
92 const std::string& frame_xpath, 95 const std::string& frame_xpath,
93 const std::string& javascript, 96 const std::string& javascript,
94 Value** result, 97 base::Value** result,
95 std::string* error_msg) WARN_UNUSED_RESULT; 98 std::string* error_msg) WARN_UNUSED_RESULT;
96 99
97 // Requests the specified tab to go forward. Waits for the load to complete. 100 // Requests the specified tab to go forward. Waits for the load to complete.
98 // Returns true on success. 101 // Returns true on success.
99 bool SendGoForwardJSONRequest( 102 bool SendGoForwardJSONRequest(
100 AutomationMessageSender* sender, 103 AutomationMessageSender* sender,
101 int browser_index, 104 int browser_index,
102 int tab_index, 105 int tab_index,
103 std::string* error_msg) WARN_UNUSED_RESULT; 106 std::string* error_msg) WARN_UNUSED_RESULT;
104 107
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 int tab_index, 146 int tab_index,
144 std::string* tab_title, 147 std::string* tab_title,
145 std::string* error_msg) WARN_UNUSED_RESULT; 148 std::string* error_msg) WARN_UNUSED_RESULT;
146 149
147 // Requests all the cookies for the given URL. On success returns true and 150 // Requests all the cookies for the given URL. On success returns true and
148 // caller takes ownership of |cookies|, which is a list of all the cookies in 151 // caller takes ownership of |cookies|, which is a list of all the cookies in
149 // dictionary format. 152 // dictionary format.
150 bool SendGetCookiesJSONRequest( 153 bool SendGetCookiesJSONRequest(
151 AutomationMessageSender* sender, 154 AutomationMessageSender* sender,
152 const std::string& url, 155 const std::string& url,
153 ListValue** cookies, 156 base::ListValue** cookies,
154 std::string* error_msg) WARN_UNUSED_RESULT; 157 std::string* error_msg) WARN_UNUSED_RESULT;
155 158
156 // Requests all the cookies for the given URL. Returns true on success. 159 // Requests all the cookies for the given URL. Returns true on success.
157 // Use |SendGetCookiesJSONRequest| for chrome versions greater than 11. 160 // Use |SendGetCookiesJSONRequest| for chrome versions greater than 11.
158 // TODO(kkania): Remove this function when version 12 is stable. 161 // TODO(kkania): Remove this function when version 12 is stable.
159 bool SendGetCookiesJSONRequestDeprecated( 162 bool SendGetCookiesJSONRequestDeprecated(
160 AutomationMessageSender* sender, 163 AutomationMessageSender* sender,
161 int browser_index, 164 int browser_index,
162 const std::string& url, 165 const std::string& url,
163 std::string* cookies) WARN_UNUSED_RESULT; 166 std::string* cookies) WARN_UNUSED_RESULT;
(...skipping 14 matching lines...) Expand all
178 AutomationMessageSender* sender, 181 AutomationMessageSender* sender,
179 int browser_index, 182 int browser_index,
180 const std::string& url, 183 const std::string& url,
181 const std::string& cookie_name) WARN_UNUSED_RESULT; 184 const std::string& cookie_name) WARN_UNUSED_RESULT;
182 185
183 // Requests setting the given cookie for the given URL. Returns true on 186 // Requests setting the given cookie for the given URL. Returns true on
184 // success. The caller retains ownership of |cookie_dict|. 187 // success. The caller retains ownership of |cookie_dict|.
185 bool SendSetCookieJSONRequest( 188 bool SendSetCookieJSONRequest(
186 AutomationMessageSender* sender, 189 AutomationMessageSender* sender,
187 const std::string& url, 190 const std::string& url,
188 DictionaryValue* cookie_dict, 191 base::DictionaryValue* cookie_dict,
189 std::string* error_msg) WARN_UNUSED_RESULT; 192 std::string* error_msg) WARN_UNUSED_RESULT;
190 193
191 // Requests setting the given cookie for the given URL. Returns true on 194 // Requests setting the given cookie for the given URL. Returns true on
192 // success. Use |SendSetCookieJSONRequest| instead for chrome versions greater 195 // success. Use |SendSetCookieJSONRequest| instead for chrome versions greater
193 // than 11. 196 // than 11.
194 // TODO(kkania): Remove this when version 12 is stable. 197 // TODO(kkania): Remove this when version 12 is stable.
195 bool SendSetCookieJSONRequestDeprecated( 198 bool SendSetCookieJSONRequestDeprecated(
196 AutomationMessageSender* sender, 199 AutomationMessageSender* sender,
197 int browser_index, 200 int browser_index,
198 const std::string& url, 201 const std::string& url,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 std::string* error_msg) WARN_UNUSED_RESULT; 341 std::string* error_msg) WARN_UNUSED_RESULT;
339 342
340 // Requests the version of ChromeDriver automation supported by the automation 343 // Requests the version of ChromeDriver automation supported by the automation
341 // server. Returns true on success. 344 // server. Returns true on success.
342 bool SendGetChromeDriverAutomationVersion( 345 bool SendGetChromeDriverAutomationVersion(
343 AutomationMessageSender* sender, 346 AutomationMessageSender* sender,
344 int* version, 347 int* version,
345 std::string* error_msg) WARN_UNUSED_RESULT; 348 std::string* error_msg) WARN_UNUSED_RESULT;
346 349
347 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ 350 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_
OLDNEW
« no previous file with comments | « chrome/service/service_process_prefs.h ('k') | chrome/test/automation/tab_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698