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

Side by Side Diff: chrome/test/chromedriver/chrome/chrome_desktop_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_CHROME_DESKTOP_IMPL_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_DESKTOP_IMPL_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_DESKTOP_IMPL_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_DESKTOP_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 24 matching lines...) Expand all
35 const base::CommandLine& command, 35 const base::CommandLine& command,
36 base::ScopedTempDir* user_data_dir, 36 base::ScopedTempDir* user_data_dir,
37 base::ScopedTempDir* extension_dir, 37 base::ScopedTempDir* extension_dir,
38 bool network_emulation_enabled); 38 bool network_emulation_enabled);
39 ~ChromeDesktopImpl() override; 39 ~ChromeDesktopImpl() override;
40 40
41 // Waits for a page with the given URL to appear and finish loading. 41 // Waits for a page with the given URL to appear and finish loading.
42 // Returns an error if the timeout is exceeded. 42 // Returns an error if the timeout is exceeded.
43 Status WaitForPageToLoad(const std::string& url, 43 Status WaitForPageToLoad(const std::string& url,
44 const base::TimeDelta& timeout, 44 const base::TimeDelta& timeout,
45 std::unique_ptr<WebView>* web_view); 45 std::unique_ptr<WebView>* web_view,
46 bool w3c_compliant);
46 47
47 // Gets the installed automation extension. 48 // Gets the installed automation extension.
48 Status GetAutomationExtension(AutomationExtension** extension); 49 Status GetAutomationExtension(AutomationExtension** extension,
50 bool w3c_compliant);
49 51
50 // Overridden from Chrome: 52 // Overridden from Chrome:
51 Status GetAsDesktop(ChromeDesktopImpl** desktop) override; 53 Status GetAsDesktop(ChromeDesktopImpl** desktop) override;
52 std::string GetOperatingSystemName() override; 54 std::string GetOperatingSystemName() override;
53 55
54 // Overridden from ChromeImpl: 56 // Overridden from ChromeImpl:
55 bool IsMobileEmulationEnabled() const override; 57 bool IsMobileEmulationEnabled() const override;
56 bool HasTouchScreen() const override; 58 bool HasTouchScreen() const override;
57 Status QuitImpl() override; 59 Status QuitImpl() override;
58 60
59 const base::CommandLine& command() const; 61 const base::CommandLine& command() const;
60 bool IsNetworkConnectionEnabled() const; 62 bool IsNetworkConnectionEnabled() const;
61 63
62 int GetNetworkConnection() const; 64 int GetNetworkConnection() const;
63 void SetNetworkConnection(int network_connection); 65 void SetNetworkConnection(int network_connection);
64 66
65 private: 67 private:
66 base::Process process_; 68 base::Process process_;
67 base::CommandLine command_; 69 base::CommandLine command_;
68 base::ScopedTempDir user_data_dir_; 70 base::ScopedTempDir user_data_dir_;
69 base::ScopedTempDir extension_dir_; 71 base::ScopedTempDir extension_dir_;
70 bool network_connection_enabled_; 72 bool network_connection_enabled_;
71 int network_connection_; 73 int network_connection_;
72 74
73 // Lazily initialized, may be null. 75 // Lazily initialized, may be null.
74 std::unique_ptr<AutomationExtension> automation_extension_; 76 std::unique_ptr<AutomationExtension> automation_extension_;
75 }; 77 };
76 78
77 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_DESKTOP_IMPL_H_ 79 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_DESKTOP_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/chrome/chrome.h ('k') | chrome/test/chromedriver/chrome/chrome_desktop_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698