| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // TabProxy | 98 // TabProxy |
| 99 %feature("docstring", "Proxy handle to a tab.") TabProxy; | 99 %feature("docstring", "Proxy handle to a tab.") TabProxy; |
| 100 %nodefaultctor TabProxy; | 100 %nodefaultctor TabProxy; |
| 101 %nodefaultdtor TabProxy; | 101 %nodefaultdtor TabProxy; |
| 102 class TabProxy { | 102 class TabProxy { |
| 103 public: | 103 public: |
| 104 // Navigation | 104 // Navigation |
| 105 %feature("docstring", "Navigates to a given GURL. " | 105 %feature("docstring", "Navigates to a given GURL. " |
| 106 "Blocks until the navigation completes. ") NavigateToURL; | 106 "Blocks until the navigation completes. ") NavigateToURL; |
| 107 AutomationMsg_NavigationResponseValues NavigateToURL(const GURL& url); | 107 AutomationMsg_NavigationResponseValues NavigateToURL(const GURL& url); |
| 108 %feature("docstring", "Navigates to a given GURL. Blocks until the given " |
| 109 "number of navigations complete.") |
| 110 NavigateToURLBlockUntilNavigationsComplete; |
| 111 AutomationMsg_NavigationResponseValues |
| 112 NavigateToURLBlockUntilNavigationsComplete( |
| 113 const GURL& url, int number_of_navigations); |
| 108 %feature("docstring", "Equivalent to hitting the Back button. " | 114 %feature("docstring", "Equivalent to hitting the Back button. " |
| 109 "Blocks until navigation completes.") GoBack; | 115 "Blocks until navigation completes.") GoBack; |
| 110 AutomationMsg_NavigationResponseValues GoBack(); | 116 AutomationMsg_NavigationResponseValues GoBack(); |
| 111 %feature("docstring", "Equivalent to hitting the Forward button. " | 117 %feature("docstring", "Equivalent to hitting the Forward button. " |
| 112 "Blocks until navigation completes.") GoForward; | 118 "Blocks until navigation completes.") GoForward; |
| 113 AutomationMsg_NavigationResponseValues GoForward(); | 119 AutomationMsg_NavigationResponseValues GoForward(); |
| 114 %feature("docstring", "Equivalent to hitting the Reload button. " | 120 %feature("docstring", "Equivalent to hitting the Reload button. " |
| 115 "Blocks until navigation completes.") Reload; | 121 "Blocks until navigation completes.") Reload; |
| 116 AutomationMsg_NavigationResponseValues Reload(); | 122 AutomationMsg_NavigationResponseValues Reload(); |
| 117 %feature("docstring", "Closes the tab. Supply True to wait " | 123 %feature("docstring", "Closes the tab. Supply True to wait " |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 315 |
| 310 // Meta-method | 316 // Meta-method |
| 311 %feature("docstring", "Send a sync JSON request to Chrome. " | 317 %feature("docstring", "Send a sync JSON request to Chrome. " |
| 312 "Returns a JSON dict as a response. " | 318 "Returns a JSON dict as a response. " |
| 313 "Internal method.") | 319 "Internal method.") |
| 314 _SendJSONRequest; | 320 _SendJSONRequest; |
| 315 std::string _SendJSONRequest(int window_index, std::string request); | 321 std::string _SendJSONRequest(int window_index, std::string request); |
| 316 | 322 |
| 317 }; | 323 }; |
| 318 | 324 |
| OLD | NEW |