| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 "True if successfully installed and loaded.") InstallExtension; | 323 "True if successfully installed and loaded.") InstallExtension; |
| 324 bool InstallExtension(const FilePath& crx_file, bool with_ui); | 324 bool InstallExtension(const FilePath& crx_file, bool with_ui); |
| 325 | 325 |
| 326 %feature("docstring", "Get a proxy to the browser window at the given " | 326 %feature("docstring", "Get a proxy to the browser window at the given " |
| 327 "zero-based index.") GetBrowserWindow; | 327 "zero-based index.") GetBrowserWindow; |
| 328 scoped_refptr<BrowserProxy> GetBrowserWindow(int window_index); | 328 scoped_refptr<BrowserProxy> GetBrowserWindow(int window_index); |
| 329 | 329 |
| 330 // Meta-method | 330 // Meta-method |
| 331 %feature("docstring", "Send a sync JSON request to Chrome. " | 331 %feature("docstring", "Send a sync JSON request to Chrome. " |
| 332 "Returns a JSON dict as a response. " | 332 "Returns a JSON dict as a response. " |
| 333 » » » "Internal method.") | 333 "Internal method.") |
| 334 _SendJSONRequest; | 334 _SendJSONRequest; |
| 335 std::string _SendJSONRequest(int window_index, std::string request); | 335 std::string _SendJSONRequest(int window_index, std::string request); |
| 336 | 336 |
| 337 %feature("docstring", "Resets to the default theme. " |
| 338 "Returns true on success.") ResetToDefaultTheme; |
| 339 bool ResetToDefaultTheme(); |
| 340 |
| 337 }; | 341 }; |
| 338 | 342 |
| OLD | NEW |