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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Determines the visibility of the download shelf | 65 // Determines the visibility of the download shelf |
66 bool IsDownloadShelfVisible(int window_index = 0); | 66 bool IsDownloadShelfVisible(int window_index = 0); |
67 | 67 |
68 // Open the Find box | 68 // Open the Find box |
69 void OpenFindInPage(int window_index = 0); | 69 void OpenFindInPage(int window_index = 0); |
70 | 70 |
71 // Determines the visibility of the Find box | 71 // Determines the visibility of the Find box |
72 bool IsFindInPageVisible(int window_index = 0); | 72 bool IsFindInPageVisible(int window_index = 0); |
73 | 73 |
74 // Get the path to the downloads directory | 74 // Get the path to the downloads directory |
75 std::string GetDownloadDirectory(); | 75 FilePath GetDownloadDirectory(); |
76 | 76 |
77 // AutomationProxy methods | 77 // AutomationProxy methods |
78 | 78 |
79 // Open a new browser window. Returns false on failure. | 79 // Open a new browser window. Returns false on failure. |
80 bool OpenNewBrowserWindow(bool show); | 80 bool OpenNewBrowserWindow(bool show); |
81 | 81 |
82 // Installs the extension crx. Returns true only if extension was installed | 82 // Installs the extension crx. Returns true only if extension was installed |
83 // and loaded successfully. Overinstalls will fail. | 83 // and loaded successfully. Overinstalls will fail. |
84 bool InstallExtension(const FilePath& crx_file); | 84 bool InstallExtension(const FilePath& crx_file); |
85 | 85 |
86 private: | 86 private: |
87 base::ScopedNSAutoreleasePool pool_; | 87 base::ScopedNSAutoreleasePool pool_; |
88 }; | 88 }; |
89 | 89 |
90 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ | 90 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ |
91 | 91 |
OLD | NEW |