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_
12 class ChromeDesktopImpl;
20 virtual ChromeDesktopImpl* GetAsDesktop() = 0;
22 virtual const BrowserInfo* GetBrowserInfo() = 0;
24 virtual bool HasCrashedWebView() = 0;
26 // Return ids of opened WebViews. The list is not guaranteed to be in the same
27 // order as those WebViews are opened, if two or more new windows are opened
28 // between two calls of this method.
29 virtual Status GetWebViewIds(std::list<std::string>* web_view_ids) = 0;
31 // Return the WebView for the given id.
32 virtual Status GetWebViewById(const std::string& id, WebView** web_view) = 0;
34 // Closes the specified WebView.
35 virtual Status CloseWebView(const std::string& id) = 0;
37 // Activates the specified WebView.
38 virtual Status ActivateWebView(const std::string& id) = 0;
40 // Get the operation system where Chrome is running.
41 virtual std::string GetOperatingSystemName() = 0;
43 // Return whether the mobileEmulation capability has been enabled.
44 virtual bool IsMobileEmulationEnabled() const = 0;
47 virtual Status Quit() = 0;
50 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_H_