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

Side by Side Diff: chrome/test/webdriver/webdriver_automation.h

Issue 9288051: Implement the webdriver window sizing commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 8 years, 11 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 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ 5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_
6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 19 matching lines...) Expand all
30 class DictionaryValue; 30 class DictionaryValue;
31 class ListValue; 31 class ListValue;
32 class Value; 32 class Value;
33 } 33 }
34 34
35 namespace webdriver { 35 namespace webdriver {
36 36
37 class Error; 37 class Error;
38 class FramePath; 38 class FramePath;
39 class Point; 39 class Point;
40 class Rect;
40 41
41 // Creates and controls the Chrome instance. 42 // Creates and controls the Chrome instance.
42 // This class should be created and accessed on a single thread. 43 // This class should be created and accessed on a single thread.
43 // Note: All member functions are void because they are invoked 44 // Note: All member functions are void because they are invoked
44 // by posting a task. 45 // by posting a task.
45 class Automation { 46 class Automation {
46 public: 47 public:
47 struct BrowserOptions { 48 struct BrowserOptions {
48 BrowserOptions(); 49 BrowserOptions();
49 ~BrowserOptions(); 50 ~BrowserOptions();
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 160
160 // Get info for all views currently open. 161 // Get info for all views currently open.
161 void GetViews(std::vector<WebViewInfo>* views, Error** error); 162 void GetViews(std::vector<WebViewInfo>* views, Error** error);
162 163
163 // Check if the given view exists currently. 164 // Check if the given view exists currently.
164 void DoesViewExist(const WebViewId& view_id, bool* does_exist, Error** error); 165 void DoesViewExist(const WebViewId& view_id, bool* does_exist, Error** error);
165 166
166 // Closes the given view. 167 // Closes the given view.
167 void CloseView(const WebViewId& view_id, Error** error); 168 void CloseView(const WebViewId& view_id, Error** error);
168 169
170 // Sets the bounds for the given view. The position should be in screen
171 // coordinates, while the size should be the desired size of the view.
172 void SetViewBounds(const WebViewId& view_id,
173 const Rect& bounds,
174 Error** error);
175
169 // Gets the active JavaScript modal dialog's message. 176 // Gets the active JavaScript modal dialog's message.
170 void GetAppModalDialogMessage(std::string* message, Error** error); 177 void GetAppModalDialogMessage(std::string* message, Error** error);
171 178
172 // Accepts or dismisses the active JavaScript modal dialog. 179 // Accepts or dismisses the active JavaScript modal dialog.
173 void AcceptOrDismissAppModalDialog(bool accept, Error** error); 180 void AcceptOrDismissAppModalDialog(bool accept, Error** error);
174 181
175 // Accepts an active prompt JavaScript modal dialog, using the given 182 // Accepts an active prompt JavaScript modal dialog, using the given
176 // prompt text as the result of the prompt. 183 // prompt text as the result of the prompt.
177 void AcceptPromptAppModalDialog(const std::string& prompt_text, 184 void AcceptPromptAppModalDialog(const std::string& prompt_text,
178 Error** error); 185 Error** error);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 const Logger& logger_; 252 const Logger& logger_;
246 scoped_ptr<ProxyLauncher> launcher_; 253 scoped_ptr<ProxyLauncher> launcher_;
247 int build_no_; 254 int build_no_;
248 255
249 DISALLOW_COPY_AND_ASSIGN(Automation); 256 DISALLOW_COPY_AND_ASSIGN(Automation);
250 }; 257 };
251 258
252 } // namespace webdriver 259 } // namespace webdriver
253 260
254 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ 261 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_
OLDNEW
« no previous file with comments | « chrome/test/webdriver/test/chromedriver_tests.py ('k') | chrome/test/webdriver/webdriver_automation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698