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 // Swig Interface for PyAuto. | 5 // Swig Interface for PyAuto. |
6 // PyAuto makes the Automation Proxy interface available in Python | 6 // PyAuto makes the Automation Proxy interface available in Python |
7 // | 7 // |
8 // Running swig as: | 8 // Running swig as: |
9 // swig -python -c++ chrome/test/pyautolib/pyautolib.i | 9 // swig -python -c++ chrome/test/pyautolib/pyautolib.i |
10 // would generate pyautolib.py, pyautolib_wrap.cxx | 10 // would generate pyautolib.py, pyautolib_wrap.cxx |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 bool AppendTab(const GURL& tab_url, int window_index=0); | 300 bool AppendTab(const GURL& tab_url, int window_index=0); |
301 | 301 |
302 // Misc methods | 302 // Misc methods |
303 %feature("docstring", "Determine if the browser is running. " | 303 %feature("docstring", "Determine if the browser is running. " |
304 "Returns False if user closed the window or if the browser died") | 304 "Returns False if user closed the window or if the browser died") |
305 IsBrowserRunning; | 305 IsBrowserRunning; |
306 bool IsBrowserRunning(); | 306 bool IsBrowserRunning(); |
307 | 307 |
308 %feature("docstring", "Install an extension from the given file. Returns " | 308 %feature("docstring", "Install an extension from the given file. Returns " |
309 "True if successfully installed and loaded.") InstallExtension; | 309 "True if successfully installed and loaded.") InstallExtension; |
310 bool InstallExtension(const FilePath& crx_file, bool with_ui); | 310 bool InstallExtension(const FilePath& crx_file); |
311 | 311 |
312 %feature("docstring", "Get a proxy to the browser window at the given " | 312 %feature("docstring", "Get a proxy to the browser window at the given " |
313 "zero-based index.") GetBrowserWindow; | 313 "zero-based index.") GetBrowserWindow; |
314 scoped_refptr<BrowserProxy> GetBrowserWindow(int window_index); | 314 scoped_refptr<BrowserProxy> GetBrowserWindow(int window_index); |
315 | 315 |
316 // Meta-method | 316 // Meta-method |
317 %feature("docstring", "Send a sync JSON request to Chrome. " | 317 %feature("docstring", "Send a sync JSON request to Chrome. " |
318 "Returns a JSON dict as a response. " | 318 "Returns a JSON dict as a response. " |
319 "Internal method.") | 319 "Internal method.") |
320 _SendJSONRequest; | 320 _SendJSONRequest; |
321 std::string _SendJSONRequest(int window_index, std::string request); | 321 std::string _SendJSONRequest(int window_index, std::string request); |
322 | 322 |
323 }; | 323 }; |
324 | 324 |
OLD | NEW |