Chromium Code Reviews| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 187 virtual void SetUp(); | 187 virtual void SetUp(); |
| 188 %feature("docstring", | 188 %feature("docstring", |
| 189 "Closes all windows and destroys the browser.") TearDown; | 189 "Closes all windows and destroys the browser.") TearDown; |
| 190 virtual void TearDown(); | 190 virtual void TearDown(); |
| 191 | 191 |
| 192 %feature("docstring", "Timeout (in milli secs) for an action. " | 192 %feature("docstring", "Timeout (in milli secs) for an action. " |
| 193 "This value is also used as default for the WaitUntil() method.") | 193 "This value is also used as default for the WaitUntil() method.") |
| 194 action_max_timeout_ms; | 194 action_max_timeout_ms; |
| 195 int action_max_timeout_ms() const; | 195 int action_max_timeout_ms() const; |
| 196 | 196 |
| 197 %feature("docstring", "Get the timeout (in milli secs) for an automation " | |
|
Nirnimesh
2011/03/20 07:36:14
Please look into all instances of command_executio
| |
| 198 "call") command_execution_timeout_ms; | |
| 199 int command_execution_timeout_ms() const; | |
| 200 %feature("docstring", "Set the timeout (in milli secs) for an automation " | 197 %feature("docstring", "Set the timeout (in milli secs) for an automation " |
| 201 "call. This is an internal method. Do not use this directly. " | 198 "call. This is an internal method. Do not use this directly. " |
| 202 "Use CmdExecutionTimeoutChanger instead") | 199 "Use CmdExecutionTimeoutChanger instead") |
| 203 set_command_execution_timeout_ms; | 200 set_command_execution_timeout_ms; |
| 204 void set_command_execution_timeout_ms(int timeout); | 201 void set_command_execution_timeout_ms(int timeout); |
|
Paweł Hajdan Jr.
2011/03/19 10:21:34
This should also be removed. Instead, we should be
| |
| 205 | 202 |
| 206 %feature("docstring", "Launches the browser and IPC testing server.") | 203 %feature("docstring", "Launches the browser and IPC testing server.") |
| 207 LaunchBrowserAndServer; | 204 LaunchBrowserAndServer; |
| 208 void LaunchBrowserAndServer(); | 205 void LaunchBrowserAndServer(); |
| 209 %feature("docstring", "Closes the browser and IPC testing server.") | 206 %feature("docstring", "Closes the browser and IPC testing server.") |
| 210 CloseBrowserAndServer; | 207 CloseBrowserAndServer; |
| 211 void CloseBrowserAndServer(); | 208 void CloseBrowserAndServer(); |
| 212 | 209 |
| 213 %feature("docstring", "Determine if the profile is set to be cleared on " | 210 %feature("docstring", "Determine if the profile is set to be cleared on " |
| 214 "next startup.") get_clear_profile; | 211 "next startup.") get_clear_profile; |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 421 %feature("docstring", "Get FilePath to the document root") document_root; | 418 %feature("docstring", "Get FilePath to the document root") document_root; |
| 422 const FilePath& document_root() const; | 419 const FilePath& document_root() const; |
| 423 | 420 |
| 424 std::string GetScheme() const; | 421 std::string GetScheme() const; |
| 425 | 422 |
| 426 %feature("docstring", "Get URL for a file path") GetURL; | 423 %feature("docstring", "Get URL for a file path") GetURL; |
| 427 GURL GetURL(const std::string& path) const; | 424 GURL GetURL(const std::string& path) const; |
| 428 }; | 425 }; |
| 429 } | 426 } |
| 430 | 427 |
| OLD | NEW |