| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <windows.h> | 8 #include <windows.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include "chrome/test/automation/automation_handle_tracker.h" | 10 #include "chrome/test/automation/automation_handle_tracker.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 bool* is_timeout, | 115 bool* is_timeout, |
| 116 bool press_escape_en_route); | 116 bool press_escape_en_route); |
| 117 | 117 |
| 118 // Block the thread until the tab count changes. | 118 // Block the thread until the tab count changes. |
| 119 // |count| is the original tab count. | 119 // |count| is the original tab count. |
| 120 // |new_count| is updated with the number of new tabs. | 120 // |new_count| is updated with the number of new tabs. |
| 121 // |wait_timeout| is the timeout, in milliseconds, for waiting. | 121 // |wait_timeout| is the timeout, in milliseconds, for waiting. |
| 122 // Returns false if the tab count does not change. | 122 // Returns false if the tab count does not change. |
| 123 bool WaitForTabCountToChange(int count, int* new_count, int wait_timeout); | 123 bool WaitForTabCountToChange(int count, int* new_count, int wait_timeout); |
| 124 | 124 |
| 125 // Block the thread until the tab count is |count|. |
| 126 bool WaitForTabCountToBecome(int count, int wait_timeout); |
| 127 |
| 125 // Block the thread until the specified tab is the active tab. | 128 // Block the thread until the specified tab is the active tab. |
| 126 // |wait_timeout| is the timeout, in milliseconds, for waiting. | 129 // |wait_timeout| is the timeout, in milliseconds, for waiting. |
| 127 // Returns false if the tab does not become active. | 130 // Returns false if the tab does not become active. |
| 128 bool WaitForTabToBecomeActive(int tab, int wait_timeout); | 131 bool WaitForTabToBecomeActive(int tab, int wait_timeout); |
| 129 | 132 |
| 130 // Gets the outermost HWND that corresponds to the given browser. | 133 // Gets the outermost HWND that corresponds to the given browser. |
| 131 // Returns true if the call was successful. | 134 // Returns true if the call was successful. |
| 132 // Note that ideally this should go and the version of WindowProxy should be | 135 // Note that ideally this should go and the version of WindowProxy should be |
| 133 // used instead. We have to keep it for start_up_tests that test against a | 136 // used instead. We have to keep it for start_up_tests that test against a |
| 134 // reference build. | 137 // reference build. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 145 | 148 |
| 146 // Sets the int value of the specified preference. | 149 // Sets the int value of the specified preference. |
| 147 bool SetIntPreference(const std::wstring& name, int value); | 150 bool SetIntPreference(const std::wstring& name, int value); |
| 148 | 151 |
| 149 private: | 152 private: |
| 150 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); | 153 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); |
| 151 }; | 154 }; |
| 152 | 155 |
| 153 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 156 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
| 154 | 157 |
| OLD | NEW |