| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CHROMEDRIVER_CHROME_STUB_CHROME_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_STUB_CHROME_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_STUB_CHROME_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_STUB_CHROME_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/test/chromedriver/chrome/browser_info.h" | 12 #include "chrome/test/chromedriver/chrome/browser_info.h" |
| 13 #include "chrome/test/chromedriver/chrome/chrome.h" | 13 #include "chrome/test/chromedriver/chrome/chrome.h" |
| 14 | 14 |
| 15 class Status; | 15 class Status; |
| 16 class WebView; | 16 class WebView; |
| 17 | 17 |
| 18 class StubChrome : public Chrome { | 18 class StubChrome : public Chrome { |
| 19 public: | 19 public: |
| 20 StubChrome(); | 20 StubChrome(); |
| 21 ~StubChrome() override; | 21 ~StubChrome() override; |
| 22 | 22 |
| 23 // Overridden from Chrome: | 23 // Overridden from Chrome: |
| 24 Status GetAsDesktop(ChromeDesktopImpl** desktop) override; | 24 Status GetAsDesktop(ChromeDesktopImpl** desktop) override; |
| 25 const BrowserInfo* GetBrowserInfo() const override; | 25 const BrowserInfo* GetBrowserInfo() const override; |
| 26 bool HasCrashedWebView() override; | 26 bool HasCrashedWebView() override; |
| 27 Status GetWebViewIds(std::list<std::string>* web_view_ids) override; | 27 Status GetWebViewIds(std::list<std::string>* web_view_ids, |
| 28 bool w3c_compliant) override; |
| 28 Status GetWebViewById(const std::string& id, WebView** web_view) override; | 29 Status GetWebViewById(const std::string& id, WebView** web_view) override; |
| 29 Status CloseWebView(const std::string& id) override; | 30 Status CloseWebView(const std::string& id) override; |
| 30 Status ActivateWebView(const std::string& id) override; | 31 Status ActivateWebView(const std::string& id) override; |
| 31 std::string GetOperatingSystemName() override; | 32 std::string GetOperatingSystemName() override; |
| 32 bool IsMobileEmulationEnabled() const override; | 33 bool IsMobileEmulationEnabled() const override; |
| 33 bool HasTouchScreen() const override; | 34 bool HasTouchScreen() const override; |
| 34 std::string page_load_strategy() const override; | 35 std::string page_load_strategy() const override; |
| 35 void set_page_load_strategy(std::string strategy) override; | 36 void set_page_load_strategy(std::string strategy) override; |
| 36 Status Quit() override; | 37 Status Quit() override; |
| 37 | 38 |
| 38 private: | 39 private: |
| 39 BrowserInfo browser_info_; | 40 BrowserInfo browser_info_; |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_STUB_CHROME_H_ | 43 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_STUB_CHROME_H_ |
| OLD | NEW |