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.
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_H_
11 class ChromeDesktopImpl;
19 virtual ChromeDesktopImpl* GetAsDesktop() = 0;
21 virtual std::string GetVersion() = 0;
23 virtual int GetBuildNo() = 0;
25 virtual bool HasCrashedWebView() = 0;
27 // Return ids of opened WebViews in the same order as they are opened.
28 virtual Status GetWebViewIds(std::list<std::string>* web_view_ids) = 0;
30 // Return the WebView for the given id.
31 virtual Status GetWebViewById(const std::string& id, WebView** web_view) = 0;
33 // Closes the specified WebView.
34 virtual Status CloseWebView(const std::string& id) = 0;
36 // Activates the specified WebView.
37 virtual Status ActivateWebView(const std::string& id) = 0;
39 // Get the operation system where Chrome is running.
40 virtual std::string GetOperatingSystemName() = 0;
43 virtual Status Quit() = 0;
46 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_H_