| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // retreive view bounds, simulate clicks and key press events. The caller | 103 // retreive view bounds, simulate clicks and key press events. The caller |
| 104 // owns the returned WindowProxy. | 104 // owns the returned WindowProxy. |
| 105 // On failure, returns NULL. | 105 // On failure, returns NULL. |
| 106 WindowProxy* GetWindow() const; | 106 WindowProxy* GetWindow() const; |
| 107 | 107 |
| 108 // Returns an AutocompleteEdit for this browser's window. It can be used to | 108 // Returns an AutocompleteEdit for this browser's window. It can be used to |
| 109 // manipulate the omnibox. The caller owns the returned pointer. | 109 // manipulate the omnibox. The caller owns the returned pointer. |
| 110 // On failure, returns NULL. | 110 // On failure, returns NULL. |
| 111 AutocompleteEditProxy* GetAutocompleteEdit(); | 111 AutocompleteEditProxy* GetAutocompleteEdit(); |
| 112 | 112 |
| 113 | |
| 114 // Apply the accelerator with given id (IDC_BACK, IDC_NEWTAB ...) | 113 // Apply the accelerator with given id (IDC_BACK, IDC_NEWTAB ...) |
| 115 // The list can be found at chrome/app/chrome_dll_resource.h | 114 // The list can be found at chrome/app/chrome_dll_resource.h |
| 116 // Returns true if the call was successful. | 115 // Returns true if the call was successful. |
| 117 // | 116 // |
| 118 // The alternate way to test the accelerators is to use the Windows messaging | 117 // The alternate way to test the accelerators is to use the Windows messaging |
| 119 // system to send the actual keyboard events (ui_controls.h) A precondition | 118 // system to send the actual keyboard events (ui_controls.h) A precondition |
| 120 // to using this system is that the target window should have the keyboard | 119 // to using this system is that the target window should have the keyboard |
| 121 // focus. This leads to a flaky test behavior in circumstances when the | 120 // focus. This leads to a flaky test behavior in circumstances when the |
| 122 // desktop screen is locked or the test is being executed over a remote | 121 // desktop screen is locked or the test is being executed over a remote |
| 123 // desktop. | 122 // desktop. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 bool GetBooleanPreference(const std::wstring& name, bool* value); | 196 bool GetBooleanPreference(const std::wstring& name, bool* value); |
| 198 | 197 |
| 199 // Sets the boolean value of the specified preference. | 198 // Sets the boolean value of the specified preference. |
| 200 bool SetBooleanPreference(const std::wstring& name, bool value); | 199 bool SetBooleanPreference(const std::wstring& name, bool value); |
| 201 | 200 |
| 202 private: | 201 private: |
| 203 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); | 202 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); |
| 204 }; | 203 }; |
| 205 | 204 |
| 206 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 205 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
| OLD | NEW |