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

Side by Side Diff: chrome/test/webdriver/webdriver_session.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_SESSION_H_ 5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_
6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 // Switches the target frame to the topmost frame if the current frame is 168 // Switches the target frame to the topmost frame if the current frame is
169 // invalid. 169 // invalid.
170 Error* SwitchToTopFrameIfCurrentFrameInvalid(); 170 Error* SwitchToTopFrameIfCurrentFrameInvalid();
171 171
172 // Closes the current window. Returns true on success. 172 // Closes the current window. Returns true on success.
173 // Note: The session will be deleted if this closes the last window in the 173 // Note: The session will be deleted if this closes the last window in the
174 // session. 174 // session.
175 Error* CloseWindow(); 175 Error* CloseWindow();
176 176
177 // Gets the bounds for the specified window.
178 Error* GetWindowBounds(const WebViewId& window, Rect* bounds);
179
180 // Sets the bounds for the specified window.
181 Error* SetWindowBounds(const WebViewId& window, const Rect& bounds);
182
177 // Gets the message of the currently active JavaScript modal dialog. 183 // Gets the message of the currently active JavaScript modal dialog.
178 Error* GetAlertMessage(std::string* text); 184 Error* GetAlertMessage(std::string* text);
179 185
180 // Sets the prompt text to use when accepting or dismissing a JavaScript 186 // Sets the prompt text to use when accepting or dismissing a JavaScript
181 // modal dialog. 187 // modal dialog.
182 Error* SetAlertPromptText(const std::string& alert_prompt_text); 188 Error* SetAlertPromptText(const std::string& alert_prompt_text);
183 189
184 // Accept or dismiss the currently active JavaScript modal dialog with the 190 // Accept or dismiss the currently active JavaScript modal dialog with the
185 // previously set alert prompt text. Then clears the saved alert prompt text. 191 // previously set alert prompt text. Then clears the saved alert prompt text.
186 Error* AcceptOrDismissAlert(bool accept); 192 Error* AcceptOrDismissAlert(bool accept);
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // (e.g., 18.0.995.0 -> 995). Only valid after Chrome has started. 479 // (e.g., 18.0.995.0 -> 995). Only valid after Chrome has started.
474 // See http://dev.chromium.org/releases/version-numbers. 480 // See http://dev.chromium.org/releases/version-numbers.
475 int build_no_; 481 int build_no_;
476 482
477 DISALLOW_COPY_AND_ASSIGN(Session); 483 DISALLOW_COPY_AND_ASSIGN(Session);
478 }; 484 };
479 485
480 } // namespace webdriver 486 } // namespace webdriver
481 487
482 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ 488 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698