| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 // Run the specified command in the browser (see browser_commands.cc for the | 180 // Run the specified command in the browser (see browser_commands.cc for the |
| 181 // list of supported commands). Returns true if the command was successfully | 181 // list of supported commands). Returns true if the command was successfully |
| 182 // dispatched and executed, false otherwise. | 182 // dispatched and executed, false otherwise. |
| 183 bool RunCommand(int browser_command) const; | 183 bool RunCommand(int browser_command) const; |
| 184 | 184 |
| 185 // Returns whether the Bookmark bar is visible and whether we are animating | 185 // Returns whether the Bookmark bar is visible and whether we are animating |
| 186 // it into position. Returns false on failure. | 186 // it into position. Returns false on failure. |
| 187 bool GetBookmarkBarVisibility(bool* is_visible, bool* is_animating); | 187 bool GetBookmarkBarVisibility(bool* is_visible, bool* is_animating); |
| 188 | 188 |
| 189 // Fills |*is_visible| with whether the browser's download shelf is currently |
| 190 // visible. The return value indicates success. On failure, |*is_visible| is |
| 191 // unchanged. |
| 192 bool IsShelfVisible(bool* is_visible); |
| 193 |
| 194 // Shows or hides the download shelf. |
| 195 bool SetShelfVisible(bool is_visible); |
| 196 |
| 189 // Sets the int value of the specified preference. | 197 // Sets the int value of the specified preference. |
| 190 bool SetIntPreference(const std::wstring& name, int value); | 198 bool SetIntPreference(const std::wstring& name, int value); |
| 191 | 199 |
| 192 // Sets the string value of the specified preference. | 200 // Sets the string value of the specified preference. |
| 193 bool SetStringPreference(const std::wstring& name, const std::wstring& value); | 201 bool SetStringPreference(const std::wstring& name, const std::wstring& value); |
| 194 | 202 |
| 195 // Gets the boolean value of the specified preference. | 203 // Gets the boolean value of the specified preference. |
| 196 bool GetBooleanPreference(const std::wstring& name, bool* value); | 204 bool GetBooleanPreference(const std::wstring& name, bool* value); |
| 197 | 205 |
| 198 // Sets the boolean value of the specified preference. | 206 // Sets the boolean value of the specified preference. |
| 199 bool SetBooleanPreference(const std::wstring& name, bool value); | 207 bool SetBooleanPreference(const std::wstring& name, bool value); |
| 200 | 208 |
| 201 protected: | 209 protected: |
| 202 virtual ~BrowserProxy() {} | 210 virtual ~BrowserProxy() {} |
| 203 private: | 211 private: |
| 204 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); | 212 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); |
| 205 }; | 213 }; |
| 206 | 214 |
| 207 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 215 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
| OLD | NEW |