| OLD | NEW |
| 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 Loading... |
| 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 MaximizeView(const WebViewId& view_id, Error** error); |
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 AutomationProxy* automation() const; | 258 AutomationProxy* automation() const; |
| 256 Error* ConvertViewIdToLocator(const WebViewId& view_id, | 259 Error* ConvertViewIdToLocator(const WebViewId& view_id, |
| 257 WebViewLocator* view_locator); | 260 WebViewLocator* view_locator); |
| 258 Error* DetermineBuildNumber(); | 261 Error* DetermineBuildNumber(); |
| 259 Error* CheckVersion(int min_required_build_no, | 262 Error* CheckVersion(int min_required_build_no, |
| 260 const std::string& error_msg); | 263 const std::string& error_msg); |
| 261 Error* CheckAlertsSupported(); | 264 Error* CheckAlertsSupported(); |
| 262 Error* CheckAdvancedInteractionsSupported(); | 265 Error* CheckAdvancedInteractionsSupported(); |
| 263 Error* CheckNewExtensionInterfaceSupported(); | 266 Error* CheckNewExtensionInterfaceSupported(); |
| 264 Error* CheckGeolocationSupported(); | 267 Error* CheckGeolocationSupported(); |
| 268 Error* CheckMaximizeSupported(); |
| 265 Error* IsNewMouseApiSupported(bool* supports_new_api); | 269 Error* IsNewMouseApiSupported(bool* supports_new_api); |
| 266 | 270 |
| 267 const Logger& logger_; | 271 const Logger& logger_; |
| 268 scoped_ptr<ProxyLauncher> launcher_; | 272 scoped_ptr<ProxyLauncher> launcher_; |
| 269 int build_no_; | 273 int build_no_; |
| 270 scoped_ptr<base::DictionaryValue> geolocation_; | 274 scoped_ptr<base::DictionaryValue> geolocation_; |
| 271 | 275 |
| 272 DISALLOW_COPY_AND_ASSIGN(Automation); | 276 DISALLOW_COPY_AND_ASSIGN(Automation); |
| 273 }; | 277 }; |
| 274 | 278 |
| 275 } // namespace webdriver | 279 } // namespace webdriver |
| 276 | 280 |
| 277 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ | 281 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ |
| OLD | NEW |