| 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_WEB_VIEW_IMPL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 struct KeyEvent; | 32 struct KeyEvent; |
| 33 struct MouseEvent; | 33 struct MouseEvent; |
| 34 class NavigationTracker; | 34 class NavigationTracker; |
| 35 class NonBlockingNavigationTracker; | 35 class NonBlockingNavigationTracker; |
| 36 class PageLoadStrategy; | 36 class PageLoadStrategy; |
| 37 class Status; | 37 class Status; |
| 38 | 38 |
| 39 class WebViewImpl : public WebView { | 39 class WebViewImpl : public WebView { |
| 40 public: | 40 public: |
| 41 WebViewImpl(const std::string& id, | 41 WebViewImpl(const std::string& id, |
| 42 const BrowserInfo* browser_info, | 42 const bool w3c_compliant, |
| 43 std::unique_ptr<DevToolsClient> client); | |
| 44 WebViewImpl(const std::string& id, | |
| 45 const BrowserInfo* browser_info, | 43 const BrowserInfo* browser_info, |
| 46 std::unique_ptr<DevToolsClient> client, | 44 std::unique_ptr<DevToolsClient> client, |
| 47 const DeviceMetrics* device_metrics, | 45 const DeviceMetrics* device_metrics, |
| 48 std::string page_load_strategy); | 46 std::string page_load_strategy); |
| 49 ~WebViewImpl() override; | 47 ~WebViewImpl() override; |
| 50 | 48 |
| 51 // Overridden from WebView: | 49 // Overridden from WebView: |
| 52 std::string GetId() override; | 50 std::string GetId() override; |
| 53 bool WasCrashed() override; | 51 bool WasCrashed() override; |
| 54 Status ConnectIfNecessary() override; | 52 Status ConnectIfNecessary() override; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 const base::TimeDelta& timeout, | 123 const base::TimeDelta& timeout, |
| 126 std::unique_ptr<base::Value>* result); | 124 std::unique_ptr<base::Value>* result); |
| 127 Status IsNotPendingNavigation(const std::string& frame_id, | 125 Status IsNotPendingNavigation(const std::string& frame_id, |
| 128 const Timeout* timeout, | 126 const Timeout* timeout, |
| 129 bool* is_not_pending); | 127 bool* is_not_pending); |
| 130 | 128 |
| 131 Status InitProfileInternal(); | 129 Status InitProfileInternal(); |
| 132 Status StopProfileInternal(); | 130 Status StopProfileInternal(); |
| 133 | 131 |
| 134 std::string id_; | 132 std::string id_; |
| 133 bool w3c_compliant_; |
| 135 const BrowserInfo* browser_info_; | 134 const BrowserInfo* browser_info_; |
| 136 std::unique_ptr<DomTracker> dom_tracker_; | 135 std::unique_ptr<DomTracker> dom_tracker_; |
| 137 std::unique_ptr<FrameTracker> frame_tracker_; | 136 std::unique_ptr<FrameTracker> frame_tracker_; |
| 138 std::unique_ptr<JavaScriptDialogManager> dialog_manager_; | 137 std::unique_ptr<JavaScriptDialogManager> dialog_manager_; |
| 139 std::unique_ptr<PageLoadStrategy> navigation_tracker_; | 138 std::unique_ptr<PageLoadStrategy> navigation_tracker_; |
| 140 std::unique_ptr<MobileEmulationOverrideManager> | 139 std::unique_ptr<MobileEmulationOverrideManager> |
| 141 mobile_emulation_override_manager_; | 140 mobile_emulation_override_manager_; |
| 142 std::unique_ptr<GeolocationOverrideManager> geolocation_override_manager_; | 141 std::unique_ptr<GeolocationOverrideManager> geolocation_override_manager_; |
| 143 std::unique_ptr<NetworkConditionsOverrideManager> | 142 std::unique_ptr<NetworkConditionsOverrideManager> |
| 144 network_conditions_override_manager_; | 143 network_conditions_override_manager_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 167 int context_id, | 166 int context_id, |
| 168 const std::string& expression, | 167 const std::string& expression, |
| 169 std::unique_ptr<base::Value>* result); | 168 std::unique_ptr<base::Value>* result); |
| 170 Status ParseCallFunctionResult(const base::Value& temp_result, | 169 Status ParseCallFunctionResult(const base::Value& temp_result, |
| 171 std::unique_ptr<base::Value>* result); | 170 std::unique_ptr<base::Value>* result); |
| 172 Status GetNodeIdFromFunction(DevToolsClient* client, | 171 Status GetNodeIdFromFunction(DevToolsClient* client, |
| 173 int context_id, | 172 int context_id, |
| 174 const std::string& function, | 173 const std::string& function, |
| 175 const base::ListValue& args, | 174 const base::ListValue& args, |
| 176 bool* found_node, | 175 bool* found_node, |
| 177 int* node_id); | 176 int* node_id, |
| 177 bool w3c_compliant); |
| 178 | 178 |
| 179 } // namespace internal | 179 } // namespace internal |
| 180 | 180 |
| 181 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ | 181 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ |
| OLD | NEW |