OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This file declares the C++ side of PyAuto, the python interface to | 5 // This file declares the C++ side of PyAuto, the python interface to |
6 // Chromium automation. It access Chromium's internals using Automation Proxy. | 6 // Chromium automation. It access Chromium's internals using Automation Proxy. |
7 | 7 |
8 #ifndef CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ | 8 #ifndef CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ |
9 #define CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ | 9 #define CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Get the path to the downloads directory | 93 // Get the path to the downloads directory |
94 FilePath GetDownloadDirectory(); | 94 FilePath GetDownloadDirectory(); |
95 | 95 |
96 // AutomationProxy methods | 96 // AutomationProxy methods |
97 | 97 |
98 // Open a new browser window. Returns false on failure. | 98 // Open a new browser window. Returns false on failure. |
99 bool OpenNewBrowserWindow(bool show); | 99 bool OpenNewBrowserWindow(bool show); |
100 | 100 |
101 // Installs the extension crx. Returns true only if extension was installed | 101 // Installs the extension crx. Returns true only if extension was installed |
102 // and loaded successfully. Overinstalls will fail. | 102 // and loaded successfully. Overinstalls will fail. |
103 bool InstallExtension(const FilePath& crx_file, bool with_ui); | 103 bool InstallExtension(const FilePath& crx_file); |
104 | 104 |
105 // Returns bookmark bar visibility state. | 105 // Returns bookmark bar visibility state. |
106 bool GetBookmarkBarVisibility(); | 106 bool GetBookmarkBarVisibility(); |
107 | 107 |
108 // Returns bookmark bar animation state. Warning: timing issues may | 108 // Returns bookmark bar animation state. Warning: timing issues may |
109 // change this return value unexpectedly. | 109 // change this return value unexpectedly. |
110 bool IsBookmarkBarAnimating(); | 110 bool IsBookmarkBarAnimating(); |
111 | 111 |
112 // Wait for the bookmark bar animation to complete. | 112 // Wait for the bookmark bar animation to complete. |
113 // If |wait_for_open| is true, wait for it to open. | 113 // If |wait_for_open| is true, wait for it to open. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Should be shared across multiple instances of PyUITestBase so that this | 149 // Should be shared across multiple instances of PyUITestBase so that this |
150 // class is re-entrant and multiple instances can be created. | 150 // class is re-entrant and multiple instances can be created. |
151 // This is necessary since python's unittest module creates instances of | 151 // This is necessary since python's unittest module creates instances of |
152 // TestCase at load time itself. | 152 // TestCase at load time itself. |
153 static MessageLoop* GetSharedMessageLoop(MessageLoop::Type msg_loop_type); | 153 static MessageLoop* GetSharedMessageLoop(MessageLoop::Type msg_loop_type); |
154 static MessageLoop* message_loop_; | 154 static MessageLoop* message_loop_; |
155 }; | 155 }; |
156 | 156 |
157 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ | 157 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ |
158 | 158 |
OLD | NEW |