| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_H_ | |
| 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_H_ | |
| 7 | |
| 8 #include <list> | |
| 9 #include <string> | |
| 10 | |
| 11 class Status; | |
| 12 class WebView; | |
| 13 | |
| 14 class Chrome { | |
| 15 public: | |
| 16 virtual ~Chrome() {} | |
| 17 | |
| 18 virtual std::string GetVersion() = 0; | |
| 19 | |
| 20 // Return a list of opened WebViews. | |
| 21 virtual Status GetWebViews(std::list<WebView*>* web_views) = 0; | |
| 22 | |
| 23 // Returns whether a JavaScript dialog is open. | |
| 24 virtual Status IsJavaScriptDialogOpen(bool* is_open) = 0; | |
| 25 | |
| 26 // Returns the message of the open JavaScript dialog. | |
| 27 virtual Status GetJavaScriptDialogMessage(std::string* message) = 0; | |
| 28 | |
| 29 // Handles an open JavaScript dialog. | |
| 30 virtual Status HandleJavaScriptDialog(bool accept, | |
| 31 const std::string& prompt_text) = 0; | |
| 32 | |
| 33 // Get the operation system where Chrome is running. | |
| 34 virtual std::string GetOperatingSystemName() = 0; | |
| 35 | |
| 36 // Quits Chrome. | |
| 37 virtual Status Quit() = 0; | |
| 38 }; | |
| 39 | |
| 40 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_H_ | |
| OLD | NEW |