| 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 bool RemoveBookmark(int64 id) WARN_UNUSED_RESULT; | 171 bool RemoveBookmark(int64 id) WARN_UNUSED_RESULT; |
| 172 | 172 |
| 173 // Fills |*is_visible| with whether the browser's download shelf is currently | 173 // Fills |*is_visible| with whether the browser's download shelf is currently |
| 174 // visible. The return value indicates success. On failure, |*is_visible| is | 174 // visible. The return value indicates success. On failure, |*is_visible| is |
| 175 // unchanged. | 175 // unchanged. |
| 176 bool IsShelfVisible(bool* is_visible) WARN_UNUSED_RESULT; | 176 bool IsShelfVisible(bool* is_visible) WARN_UNUSED_RESULT; |
| 177 | 177 |
| 178 // Shows or hides the download shelf. | 178 // Shows or hides the download shelf. |
| 179 bool SetShelfVisible(bool is_visible) WARN_UNUSED_RESULT; | 179 bool SetShelfVisible(bool is_visible) WARN_UNUSED_RESULT; |
| 180 | 180 |
| 181 // Waits for the download shelf to appear or disappear. |
| 182 bool WaitForDownloadShelfVisibilityChange(bool visibility) WARN_UNUSED_RESULT; |
| 183 |
| 181 // Sets the int value of the specified preference. | 184 // Sets the int value of the specified preference. |
| 182 bool SetIntPreference(const std::wstring& name, int value) WARN_UNUSED_RESULT; | 185 bool SetIntPreference(const std::wstring& name, int value) WARN_UNUSED_RESULT; |
| 183 | 186 |
| 184 // Sets the string value of the specified preference. | 187 // Sets the string value of the specified preference. |
| 185 bool SetStringPreference(const std::wstring& name, | 188 bool SetStringPreference(const std::wstring& name, |
| 186 const std::wstring& value) WARN_UNUSED_RESULT; | 189 const std::wstring& value) WARN_UNUSED_RESULT; |
| 187 | 190 |
| 188 // Gets the boolean value of the specified preference. | 191 // Gets the boolean value of the specified preference. |
| 189 bool GetBooleanPreference(const std::wstring& name, | 192 bool GetBooleanPreference(const std::wstring& name, |
| 190 bool* value) WARN_UNUSED_RESULT; | 193 bool* value) WARN_UNUSED_RESULT; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 bool SendJSONRequest(const std::string& request, | 233 bool SendJSONRequest(const std::string& request, |
| 231 std::string* response) WARN_UNUSED_RESULT; | 234 std::string* response) WARN_UNUSED_RESULT; |
| 232 | 235 |
| 233 protected: | 236 protected: |
| 234 virtual ~BrowserProxy() {} | 237 virtual ~BrowserProxy() {} |
| 235 private: | 238 private: |
| 236 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); | 239 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); |
| 237 }; | 240 }; |
| 238 | 241 |
| 239 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 242 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
| OLD | NEW |