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

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

Issue 10388251: Support maximize window command. (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 #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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 // Closes the given view. 176 // Closes the given view.
177 void CloseView(const WebViewId& view_id, Error** error); 177 void CloseView(const WebViewId& view_id, Error** error);
178 178
179 // Sets the bounds for the given view. The position should be in screen 179 // Sets the bounds for the given view. The position should be in screen
180 // coordinates, while the size should be the desired size of the view. 180 // coordinates, while the size should be the desired size of the view.
181 void SetViewBounds(const WebViewId& view_id, 181 void SetViewBounds(const WebViewId& view_id,
182 const Rect& bounds, 182 const Rect& bounds,
183 Error** error); 183 Error** error);
184 184
185 // Maximizes the given view.
186 void Maximize(const WebViewId& view_id, Error** error);
kkania 2012/05/23 17:49:20 MaximizeView
zori 2012/05/24 00:39:33 Done.
187
185 // Gets the active JavaScript modal dialog's message. 188 // Gets the active JavaScript modal dialog's message.
186 void GetAppModalDialogMessage(std::string* message, Error** error); 189 void GetAppModalDialogMessage(std::string* message, Error** error);
187 190
188 // Accepts or dismisses the active JavaScript modal dialog. 191 // Accepts or dismisses the active JavaScript modal dialog.
189 void AcceptOrDismissAppModalDialog(bool accept, Error** error); 192 void AcceptOrDismissAppModalDialog(bool accept, Error** error);
190 193
191 // Accepts an active prompt JavaScript modal dialog, using the given 194 // Accepts an active prompt JavaScript modal dialog, using the given
192 // prompt text as the result of the prompt. 195 // prompt text as the result of the prompt.
193 void AcceptPromptAppModalDialog(const std::string& prompt_text, 196 void AcceptPromptAppModalDialog(const std::string& prompt_text,
194 Error** error); 197 Error** error);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 scoped_ptr<ProxyLauncher> launcher_; 271 scoped_ptr<ProxyLauncher> launcher_;
269 int build_no_; 272 int build_no_;
270 scoped_ptr<base::DictionaryValue> geolocation_; 273 scoped_ptr<base::DictionaryValue> geolocation_;
271 274
272 DISALLOW_COPY_AND_ASSIGN(Automation); 275 DISALLOW_COPY_AND_ASSIGN(Automation);
273 }; 276 };
274 277
275 } // namespace webdriver 278 } // namespace webdriver
276 279
277 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ 280 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698