Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: chrome/test/chromedriver/chrome/web_view_impl.h

Issue 2230053002: [chromedriver] Added option to make element references W3C compliant. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed presubmit errors. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const base::TimeDelta& timeout, 119 const base::TimeDelta& timeout,
122 std::unique_ptr<base::Value>* result); 120 std::unique_ptr<base::Value>* result);
123 Status IsNotPendingNavigation(const std::string& frame_id, 121 Status IsNotPendingNavigation(const std::string& frame_id,
124 const Timeout* timeout, 122 const Timeout* timeout,
125 bool* is_not_pending); 123 bool* is_not_pending);
126 124
127 Status InitProfileInternal(); 125 Status InitProfileInternal();
128 Status StopProfileInternal(); 126 Status StopProfileInternal();
129 127
130 std::string id_; 128 std::string id_;
129 bool w3c_compliant_;
131 const BrowserInfo* browser_info_; 130 const BrowserInfo* browser_info_;
132 std::unique_ptr<DomTracker> dom_tracker_; 131 std::unique_ptr<DomTracker> dom_tracker_;
133 std::unique_ptr<FrameTracker> frame_tracker_; 132 std::unique_ptr<FrameTracker> frame_tracker_;
134 std::unique_ptr<JavaScriptDialogManager> dialog_manager_; 133 std::unique_ptr<JavaScriptDialogManager> dialog_manager_;
135 std::unique_ptr<PageLoadStrategy> navigation_tracker_; 134 std::unique_ptr<PageLoadStrategy> navigation_tracker_;
136 std::unique_ptr<MobileEmulationOverrideManager> 135 std::unique_ptr<MobileEmulationOverrideManager>
137 mobile_emulation_override_manager_; 136 mobile_emulation_override_manager_;
138 std::unique_ptr<GeolocationOverrideManager> geolocation_override_manager_; 137 std::unique_ptr<GeolocationOverrideManager> geolocation_override_manager_;
139 std::unique_ptr<NetworkConditionsOverrideManager> 138 std::unique_ptr<NetworkConditionsOverrideManager>
140 network_conditions_override_manager_; 139 network_conditions_override_manager_;
(...skipping 22 matching lines...) Expand all
163 int context_id, 162 int context_id,
164 const std::string& expression, 163 const std::string& expression,
165 std::unique_ptr<base::Value>* result); 164 std::unique_ptr<base::Value>* result);
166 Status ParseCallFunctionResult(const base::Value& temp_result, 165 Status ParseCallFunctionResult(const base::Value& temp_result,
167 std::unique_ptr<base::Value>* result); 166 std::unique_ptr<base::Value>* result);
168 Status GetNodeIdFromFunction(DevToolsClient* client, 167 Status GetNodeIdFromFunction(DevToolsClient* client,
169 int context_id, 168 int context_id,
170 const std::string& function, 169 const std::string& function,
171 const base::ListValue& args, 170 const base::ListValue& args,
172 bool* found_node, 171 bool* found_node,
173 int* node_id); 172 int* node_id,
173 bool w3c_compliant);
174 174
175 } // namespace internal 175 } // namespace internal
176 176
177 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ 177 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/chrome/devtools_http_client.cc ('k') | chrome/test/chromedriver/chrome/web_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698