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_AUTOMATION_BROWSER_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // Returns true on success. | 99 // Returns true on success. |
100 bool WaitForTabCountToBecome(int count) WARN_UNUSED_RESULT; | 100 bool WaitForTabCountToBecome(int count) WARN_UNUSED_RESULT; |
101 | 101 |
102 // Block the thread until the specified tab is the active tab. | 102 // Block the thread until the specified tab is the active tab. |
103 // |wait_timeout| is the timeout, in milliseconds, for waiting. | 103 // |wait_timeout| is the timeout, in milliseconds, for waiting. |
104 // Returns false if the tab does not become active. | 104 // Returns false if the tab does not become active. |
105 bool WaitForTabToBecomeActive( | 105 bool WaitForTabToBecomeActive( |
106 int tab, | 106 int tab, |
107 base::TimeDelta wait_timeout) WARN_UNUSED_RESULT; | 107 base::TimeDelta wait_timeout) WARN_UNUSED_RESULT; |
108 | 108 |
109 // Opens the FindInPage box. Note: If you just want to search within a tab | |
110 // you don't need to call this function, just use FindInPage(...) directly. | |
111 bool OpenFindInPage() WARN_UNUSED_RESULT; | |
112 | |
113 // Returns whether the Find window is fully visible If animating, |is_visible| | 109 // Returns whether the Find window is fully visible If animating, |is_visible| |
114 // will be false. Returns false on failure. | 110 // will be false. Returns false on failure. |
115 bool IsFindWindowFullyVisible(bool* is_visible) WARN_UNUSED_RESULT; | 111 bool IsFindWindowFullyVisible(bool* is_visible) WARN_UNUSED_RESULT; |
116 | 112 |
117 // Run the specified command in the browser | 113 // Run the specified command in the browser |
118 // (see Browser::ExecuteCommandWithDisposition() for the list of supported | 114 // (see Browser::ExecuteCommandWithDisposition() for the list of supported |
119 // commands). Returns true if the command was successfully dispatched, | 115 // commands). Returns true if the command was successfully dispatched, |
120 // false otherwise. | 116 // false otherwise. |
121 bool RunCommandAsync(int browser_command) const WARN_UNUSED_RESULT; | 117 bool RunCommandAsync(int browser_command) const WARN_UNUSED_RESULT; |
122 | 118 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 std::vector<float>* stop_times); | 172 std::vector<float>* stop_times); |
177 | 173 |
178 | 174 |
179 protected: | 175 protected: |
180 virtual ~BrowserProxy() {} | 176 virtual ~BrowserProxy() {} |
181 private: | 177 private: |
182 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); | 178 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); |
183 }; | 179 }; |
184 | 180 |
185 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 181 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
OLD | NEW |