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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 // Navigation Methods | 215 // Navigation Methods |
216 %feature("docstring", "Navigate to the given url in the given tab and given " | 216 %feature("docstring", "Navigate to the given url in the given tab and given " |
217 "window (or active tab in first window if indexes not given). " | 217 "window (or active tab in first window if indexes not given). " |
218 "Note that this method also activates the corresponding tab/window " | 218 "Note that this method also activates the corresponding tab/window " |
219 "if it's not active already. Blocks until page has loaded.") | 219 "if it's not active already. Blocks until page has loaded.") |
220 NavigateToURL; | 220 NavigateToURL; |
221 void NavigateToURL(const char* url_string); | 221 void NavigateToURL(const char* url_string); |
222 void NavigateToURL(const char* url_string, int window_index, int tab_index); | 222 void NavigateToURL(const char* url_string, int window_index, int tab_index); |
223 | 223 |
| 224 %feature("docstring", "Reload the active tab in the given window (or first " |
| 225 "window if index not given). Blocks until page has reloaded.") |
| 226 ReloadActiveTab; |
| 227 void ReloadActiveTab(int window_index = 0); |
| 228 |
224 // BrowserProxy methods | 229 // BrowserProxy methods |
225 %feature("docstring", "Apply the accelerator with given id " | 230 %feature("docstring", "Apply the accelerator with given id " |
226 "(IDC_BACK, IDC_NEWTAB ...) to the given or first window. " | 231 "(IDC_BACK, IDC_NEWTAB ...) to the given or first window. " |
227 "The list can be found at chrome/app/chrome_dll_resource.h. " | 232 "The list can be found at chrome/app/chrome_dll_resource.h. " |
228 "Note that this method just schedules the accelerator, but does " | 233 "Note that this method just schedules the accelerator, but does " |
229 "not wait for it to actually finish doing anything." | 234 "not wait for it to actually finish doing anything." |
230 "Returns True on success.") | 235 "Returns True on success.") |
231 ApplyAccelerator; | 236 ApplyAccelerator; |
232 bool ApplyAccelerator(int id, int window_index=0); | 237 bool ApplyAccelerator(int id, int window_index=0); |
233 %feature("docstring", "Like ApplyAccelerator, except that it waits for " | 238 %feature("docstring", "Like ApplyAccelerator, except that it waits for " |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 int window_index=0, | 377 int window_index=0, |
373 int tab_index=0, | 378 int tab_index=0, |
374 const std::wstring& frame_xpath=""); | 379 const std::wstring& frame_xpath=""); |
375 | 380 |
376 %feature("docstring", "Resets to the default theme. " | 381 %feature("docstring", "Resets to the default theme. " |
377 "Returns true on success.") ResetToDefaultTheme; | 382 "Returns true on success.") ResetToDefaultTheme; |
378 bool ResetToDefaultTheme(); | 383 bool ResetToDefaultTheme(); |
379 | 384 |
380 }; | 385 }; |
381 | 386 |
OLD | NEW |