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

Side by Side Diff: chrome/test/webdriver/automation.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/test/values_test_util.h ('k') | chrome/test/webdriver/commands/alert_commands.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_WEBDRIVER_AUTOMATION_H_ 5 #ifndef CHROME_TEST_WEBDRIVER_AUTOMATION_H_
6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_ 6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/task.h" 15 #include "base/task.h"
16 #include "chrome/common/automation_constants.h" 16 #include "chrome/common/automation_constants.h"
17 #include "ui/base/keycodes/keyboard_codes.h" 17 #include "ui/base/keycodes/keyboard_codes.h"
18 18
19 class AutomationProxy; 19 class AutomationProxy;
20 class CommandLine; 20 class CommandLine;
21 class DictionaryValue;
22 class FilePath; 21 class FilePath;
23 class GURL; 22 class GURL;
24 class ListValue;
25 class ProxyLauncher; 23 class ProxyLauncher;
26 struct WebKeyEvent; 24 struct WebKeyEvent;
27 25
26 namespace base {
27 class DictionaryValue;
28 class ListValue;
29 }
30
28 namespace gfx { 31 namespace gfx {
29 class Point; 32 class Point;
30 } 33 }
31 34
32 namespace webdriver { 35 namespace webdriver {
33 36
34 class Error; 37 class Error;
35 class FramePath; 38 class FramePath;
36 39
37 // Creates and controls the Chrome instance. 40 // Creates and controls the Chrome instance.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Captures a snapshot of the tab to the specified path. The PNG will 88 // Captures a snapshot of the tab to the specified path. The PNG will
86 // contain the entire page, including what is not in the current view 89 // contain the entire page, including what is not in the current view
87 // on the screen. 90 // on the screen.
88 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, Error** error); 91 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, Error** error);
89 92
90 void NavigateToURL(int tab_id, const std::string& url, Error** error); 93 void NavigateToURL(int tab_id, const std::string& url, Error** error);
91 void GoForward(int tab_id, Error** error); 94 void GoForward(int tab_id, Error** error);
92 void GoBack(int tab_id, Error** error); 95 void GoBack(int tab_id, Error** error);
93 void Reload(int tab_id, Error** error); 96 void Reload(int tab_id, Error** error);
94 97
95 void GetCookies(const std::string& url, ListValue** cookies, Error** error); 98 void GetCookies(const std::string& url,
99 base::ListValue** cookies,
100 Error** error);
96 void GetCookiesDeprecated( 101 void GetCookiesDeprecated(
97 int tab_id, const GURL& gurl, std::string* cookies, bool* success); 102 int tab_id, const GURL& gurl, std::string* cookies, bool* success);
98 void DeleteCookie(const std::string& url, 103 void DeleteCookie(const std::string& url,
99 const std::string& cookie_name, 104 const std::string& cookie_name,
100 Error** error); 105 Error** error);
101 void DeleteCookieDeprecated(int tab_id, 106 void DeleteCookieDeprecated(int tab_id,
102 const GURL& gurl, 107 const GURL& gurl,
103 const std::string& cookie_name, 108 const std::string& cookie_name,
104 bool* success); 109 bool* success);
105 void SetCookie( 110 void SetCookie(const std::string& url,
106 const std::string& url, DictionaryValue* cookie_dict, Error** error); 111 base::DictionaryValue* cookie_dict,
112 Error** error);
107 void SetCookieDeprecated( 113 void SetCookieDeprecated(
108 int tab_id, const GURL& gurl, const std::string& cookie, bool* success); 114 int tab_id, const GURL& gurl, const std::string& cookie, bool* success);
109 115
110 void MouseMove(int tab_id, const gfx::Point& p, Error** error); 116 void MouseMove(int tab_id, const gfx::Point& p, Error** error);
111 void MouseClick(int tab_id, 117 void MouseClick(int tab_id,
112 const gfx::Point& p, 118 const gfx::Point& p,
113 automation::MouseButton button, 119 automation::MouseButton button,
114 Error** error); 120 Error** error);
115 void MouseDrag(int tab_id, 121 void MouseDrag(int tab_id,
116 const gfx::Point& start, 122 const gfx::Point& start,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 scoped_ptr<ProxyLauncher> launcher_; 171 scoped_ptr<ProxyLauncher> launcher_;
166 172
167 DISALLOW_COPY_AND_ASSIGN(Automation); 173 DISALLOW_COPY_AND_ASSIGN(Automation);
168 }; 174 };
169 175
170 } // namespace webdriver 176 } // namespace webdriver
171 177
172 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); 178 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation);
173 179
174 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ 180 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_
OLDNEW
« no previous file with comments | « chrome/test/values_test_util.h ('k') | chrome/test/webdriver/commands/alert_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698