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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // BrowserProxy | 86 // BrowserProxy |
87 %feature("docstring", "Proxy handle to a browser window.") BrowserProxy; | 87 %feature("docstring", "Proxy handle to a browser window.") BrowserProxy; |
88 %nodefaultctor BrowserProxy; | 88 %nodefaultctor BrowserProxy; |
89 %nodefaultdtor BrowserProxy; | 89 %nodefaultdtor BrowserProxy; |
90 class BrowserProxy { | 90 class BrowserProxy { |
91 public: | 91 public: |
92 %feature("docstring", "Activate the tab at the given zero-based index") | 92 %feature("docstring", "Activate the tab at the given zero-based index") |
93 ActivateTab; | 93 ActivateTab; |
94 bool ActivateTab(int tab_index); | 94 bool ActivateTab(int tab_index); |
95 | 95 |
| 96 %feature("docstring", "Activate the browser's window and bring it to front.") |
| 97 BringToFront; |
| 98 bool BringToFront(); |
| 99 |
96 %feature("docstring", "Get proxy to the tab at the given zero-based index") | 100 %feature("docstring", "Get proxy to the tab at the given zero-based index") |
97 GetTab; | 101 GetTab; |
98 scoped_refptr<TabProxy> GetTab(int tab_index) const; | 102 scoped_refptr<TabProxy> GetTab(int tab_index) const; |
99 }; | 103 }; |
100 | 104 |
101 // TabProxy | 105 // TabProxy |
102 %feature("docstring", "Proxy handle to a tab.") TabProxy; | 106 %feature("docstring", "Proxy handle to a tab.") TabProxy; |
103 %nodefaultctor TabProxy; | 107 %nodefaultctor TabProxy; |
104 %nodefaultdtor TabProxy; | 108 %nodefaultdtor TabProxy; |
105 class TabProxy { | 109 class TabProxy { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 | 329 |
326 // Meta-method | 330 // Meta-method |
327 %feature("docstring", "Send a sync JSON request to Chrome. " | 331 %feature("docstring", "Send a sync JSON request to Chrome. " |
328 "Returns a JSON dict as a response. " | 332 "Returns a JSON dict as a response. " |
329 "Internal method.") | 333 "Internal method.") |
330 _SendJSONRequest; | 334 _SendJSONRequest; |
331 std::string _SendJSONRequest(int window_index, std::string request); | 335 std::string _SendJSONRequest(int window_index, std::string request); |
332 | 336 |
333 }; | 337 }; |
334 | 338 |
OLD | NEW |