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_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 16 matching lines...) Expand all Loading... |
27 struct WebViewInfo; | 27 struct WebViewInfo; |
28 | 28 |
29 class ChromeImpl : public Chrome { | 29 class ChromeImpl : public Chrome { |
30 public: | 30 public: |
31 ~ChromeImpl() override; | 31 ~ChromeImpl() override; |
32 | 32 |
33 // Overridden from Chrome: | 33 // Overridden from Chrome: |
34 Status GetAsDesktop(ChromeDesktopImpl** desktop) override; | 34 Status GetAsDesktop(ChromeDesktopImpl** desktop) override; |
35 const BrowserInfo* GetBrowserInfo() const override; | 35 const BrowserInfo* GetBrowserInfo() const override; |
36 bool HasCrashedWebView() override; | 36 bool HasCrashedWebView() override; |
37 Status GetWebViewIds(std::list<std::string>* web_view_ids) override; | 37 Status GetWebViewIds(std::list<std::string>* web_view_ids, |
| 38 bool w3c_compliant) override; |
38 Status GetWebViewById(const std::string& id, WebView** web_view) override; | 39 Status GetWebViewById(const std::string& id, WebView** web_view) override; |
39 Status CloseWebView(const std::string& id) override; | 40 Status CloseWebView(const std::string& id) override; |
40 Status ActivateWebView(const std::string& id) override; | 41 Status ActivateWebView(const std::string& id) override; |
41 bool IsMobileEmulationEnabled() const override; | 42 bool IsMobileEmulationEnabled() const override; |
42 bool HasTouchScreen() const override; | 43 bool HasTouchScreen() const override; |
43 std::string page_load_strategy() const override; | 44 std::string page_load_strategy() const override; |
44 void set_page_load_strategy(std::string strategy) override; | 45 void set_page_load_strategy(std::string strategy) override; |
45 Status Quit() override; | 46 Status Quit() override; |
46 | 47 |
47 protected: | 48 protected: |
(...skipping 12 matching lines...) Expand all Loading... |
60 std::string page_load_strategy_; | 61 std::string page_load_strategy_; |
61 typedef std::list<linked_ptr<WebViewImpl> > WebViewList; | 62 typedef std::list<linked_ptr<WebViewImpl> > WebViewList; |
62 | 63 |
63 // Web views in this list are in the same order as they are opened. | 64 // Web views in this list are in the same order as they are opened. |
64 WebViewList web_views_; | 65 WebViewList web_views_; |
65 ScopedVector<DevToolsEventListener> devtools_event_listeners_; | 66 ScopedVector<DevToolsEventListener> devtools_event_listeners_; |
66 std::unique_ptr<PortReservation> port_reservation_; | 67 std::unique_ptr<PortReservation> port_reservation_; |
67 }; | 68 }; |
68 | 69 |
69 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ | 70 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ |
OLD | NEW |