| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 "(IDC_BACK, IDC_NEWTAB ...) to the given or first window. " | 257 "(IDC_BACK, IDC_NEWTAB ...) to the given or first window. " |
| 258 "The list can be found at chrome/app/chrome_dll_resource.h. " | 258 "The list can be found at chrome/app/chrome_dll_resource.h. " |
| 259 "Note that this method just schedules the accelerator, but does " | 259 "Note that this method just schedules the accelerator, but does " |
| 260 "not wait for it to actually finish doing anything." | 260 "not wait for it to actually finish doing anything." |
| 261 "Returns True on success.") | 261 "Returns True on success.") |
| 262 ApplyAccelerator; | 262 ApplyAccelerator; |
| 263 bool ApplyAccelerator(int id, int window_index=0); | 263 bool ApplyAccelerator(int id, int window_index=0); |
| 264 %feature("docstring", "Like ApplyAccelerator, except that it waits for " | 264 %feature("docstring", "Like ApplyAccelerator, except that it waits for " |
| 265 "the command to execute.") RunCommand; | 265 "the command to execute.") RunCommand; |
| 266 bool RunCommand(int browser_command, int window_index = 0); | 266 bool RunCommand(int browser_command, int window_index = 0); |
| 267 %feature("docstring", "Returns true if the given command id is enabled on " |
| 268 "the given window.") IsMenuCommandEnabled; |
| 269 bool IsMenuCommandEnabled(int browser_command, int window_index = 0); |
| 267 | 270 |
| 268 // Get/fetch properties | 271 // Get/fetch properties |
| 269 %feature("docstring", | 272 %feature("docstring", |
| 270 "Get the path to download directory.") GetDownloadDirectory; | 273 "Get the path to download directory.") GetDownloadDirectory; |
| 271 FilePath GetDownloadDirectory(); | 274 FilePath GetDownloadDirectory(); |
| 272 | 275 |
| 273 %feature("docstring", "Get the path to profile directory.") user_data_dir; | 276 %feature("docstring", "Get the path to profile directory.") user_data_dir; |
| 274 FilePath user_data_dir() const; | 277 FilePath user_data_dir() const; |
| 275 | 278 |
| 276 %feature("docstring", "Set download shelf visibility for the given or " | 279 %feature("docstring", "Set download shelf visibility for the given or " |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 %feature("docstring", "Get FilePath to the document root") document_root; | 430 %feature("docstring", "Get FilePath to the document root") document_root; |
| 428 const FilePath& document_root() const; | 431 const FilePath& document_root() const; |
| 429 | 432 |
| 430 std::string GetScheme() const; | 433 std::string GetScheme() const; |
| 431 | 434 |
| 432 %feature("docstring", "Get URL for a file path") GetURL; | 435 %feature("docstring", "Get URL for a file path") GetURL; |
| 433 GURL GetURL(const std::string& path) const; | 436 GURL GetURL(const std::string& path) const; |
| 434 }; | 437 }; |
| 435 } | 438 } |
| 436 | 439 |
| OLD | NEW |