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 284 matching lines...) Loading... |
295 void OpenFindInPage(int window_index=0); | 295 void OpenFindInPage(int window_index=0); |
296 | 296 |
297 %feature("docstring", "Determine if the find box is visible in the " | 297 %feature("docstring", "Determine if the find box is visible in the " |
298 "given or first browser window.") IsFindInPageVisible; | 298 "given or first browser window.") IsFindInPageVisible; |
299 bool IsFindInPageVisible(int window_index=0); | 299 bool IsFindInPageVisible(int window_index=0); |
300 | 300 |
301 // Tabs and windows methods | 301 // Tabs and windows methods |
302 %feature("docstring", "Open a new browser window.") OpenNewBrowserWindow; | 302 %feature("docstring", "Open a new browser window.") OpenNewBrowserWindow; |
303 bool OpenNewBrowserWindow(bool show); | 303 bool OpenNewBrowserWindow(bool show); |
304 | 304 |
| 305 %feature("docstring", "Close a browser window.") CloseBrowserWindow; |
| 306 bool CloseBrowserWindow(int window_index); |
| 307 |
305 %feature("docstring", "Fetch the number of browser windows. Includes popups.") | 308 %feature("docstring", "Fetch the number of browser windows. Includes popups.") |
306 GetBrowserWindowCount; | 309 GetBrowserWindowCount; |
307 int GetBrowserWindowCount(); | 310 int GetBrowserWindowCount(); |
308 | 311 |
309 %feature("docstring", "Get the index of the active tab in the given or " | 312 %feature("docstring", "Get the index of the active tab in the given or " |
310 "first window. Indexes are zero-based.") GetActiveTabIndex; | 313 "first window. Indexes are zero-based.") GetActiveTabIndex; |
311 int GetActiveTabIndex(int window_index=0); | 314 int GetActiveTabIndex(int window_index=0); |
312 %feature("docstring", "Activate the tab at the given zero-based index in " | 315 %feature("docstring", "Activate the tab at the given zero-based index in " |
313 "the given or first window. Returns True on success.") ActivateTab; | 316 "the given or first window. Returns True on success.") ActivateTab; |
314 bool ActivateTab(int tab_index, int window_index=0); | 317 bool ActivateTab(int tab_index, int window_index=0); |
(...skipping 63 matching lines...) Loading... |
378 int window_index=0, | 381 int window_index=0, |
379 int tab_index=0, | 382 int tab_index=0, |
380 const std::wstring& frame_xpath=""); | 383 const std::wstring& frame_xpath=""); |
381 | 384 |
382 %feature("docstring", "Resets to the default theme. " | 385 %feature("docstring", "Resets to the default theme. " |
383 "Returns true on success.") ResetToDefaultTheme; | 386 "Returns true on success.") ResetToDefaultTheme; |
384 bool ResetToDefaultTheme(); | 387 bool ResetToDefaultTheme(); |
385 | 388 |
386 }; | 389 }; |
387 | 390 |
OLD | NEW |