| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 int window_index=0, int tab_index=0); | 365 int window_index=0, int tab_index=0); |
| 366 | 366 |
| 367 %feature("docstring", "Get the value of the cookie at cookie_url for the " | 367 %feature("docstring", "Get the value of the cookie at cookie_url for the " |
| 368 "given window index and tab index. " | 368 "given window index and tab index. " |
| 369 "Returns empty string on error or if there is no value for the " | 369 "Returns empty string on error or if there is no value for the " |
| 370 "cookie.") GetCookie; | 370 "cookie.") GetCookie; |
| 371 std::string GetCookie(const GURL& cookie_url, int window_index=0, | 371 std::string GetCookie(const GURL& cookie_url, int window_index=0, |
| 372 int tab_index=0); | 372 int tab_index=0); |
| 373 | 373 |
| 374 // Misc methods | 374 // Misc methods |
| 375 %feature("docstring", "Install an extension from the given file. The file " | 375 %feature("docstring", "Install an extension from the given path. The path " |
| 376 "must be specified with an absolute path. Returns the extension ID " | 376 "must be absolute and may be a crx file or an unpacked extension " |
| 377 "if successfully installed and loaded. Otherwise, returns the empty " | 377 "directory. Returns the extension ID if successfully installed and " |
| 378 "string.") InstallExtension; | 378 "loaded. Otherwise, returns the empty string.") InstallExtension; |
| 379 std::string InstallExtension(const FilePath& crx_file, bool with_ui); | 379 std::string InstallExtension(const std::string& extension_path, bool with_ui); |
| 380 | 380 |
| 381 %feature("docstring", "Get a proxy to the browser window at the given " | 381 %feature("docstring", "Get a proxy to the browser window at the given " |
| 382 "zero-based index.") GetBrowserWindow; | 382 "zero-based index.") GetBrowserWindow; |
| 383 scoped_refptr<BrowserProxy> GetBrowserWindow(int window_index); | 383 scoped_refptr<BrowserProxy> GetBrowserWindow(int window_index); |
| 384 | 384 |
| 385 // Meta-method | 385 // Meta-method |
| 386 %feature("docstring", "Send a sync JSON request to Chrome. " | 386 %feature("docstring", "Send a sync JSON request to Chrome. " |
| 387 "Returns a JSON dict as a response. " | 387 "Returns a JSON dict as a response. " |
| 388 "Given timeout in milliseconds." | 388 "Given timeout in milliseconds." |
| 389 "Internal method.") | 389 "Internal method.") |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 %feature("docstring", "Get FilePath to the document root") document_root; | 439 %feature("docstring", "Get FilePath to the document root") document_root; |
| 440 const FilePath& document_root() const; | 440 const FilePath& document_root() const; |
| 441 | 441 |
| 442 std::string GetScheme() const; | 442 std::string GetScheme() const; |
| 443 | 443 |
| 444 %feature("docstring", "Get URL for a file path") GetURL; | 444 %feature("docstring", "Get URL for a file path") GetURL; |
| 445 GURL GetURL(const std::string& path) const; | 445 GURL GetURL(const std::string& path) const; |
| 446 }; | 446 }; |
| 447 } | 447 } |
| 448 | 448 |
| OLD | NEW |