| 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 |
| 11 | 11 |
| 12 // When adding a new class or method, make sure you specify the doc string using | 12 // When adding a new class or method, make sure you specify the doc string using |
| 13 // %feature("docstring", "doc string goes here") NODENAME; | 13 // %feature("docstring", "doc string goes here") NODENAME; |
| 14 // and attach it to your node (class or method). This doc string will be | 14 // and attach it to your node (class or method). This doc string will be |
| 15 // copied over in the generated python classes/methods. | 15 // copied over in the generated python classes/methods. |
| 16 | 16 |
| 17 %module(docstring="Python interface to Automtion Proxy.") pyautolib | 17 %module(docstring="Python interface to Automtion Proxy.") pyautolib |
| 18 %feature("autodoc", "1"); | 18 %feature("autodoc", "1"); |
| 19 | 19 |
| 20 %include <std_wstring.i> | 20 %include <std_wstring.i> |
| 21 %include <std_string.i> | 21 %include <std_string.i> |
| 22 | 22 |
| 23 %include "chrome/test/pyautolib/argc_argv.i" | 23 %include "chrome/test/pyautolib/argc_argv.i" |
| 24 | 24 |
| 25 // NOTE: All files included in this file should also be listed under | 25 // NOTE: All files included in this file should also be listed under |
| 26 // pyautolib_sources in chrome_tests.gypi. | 26 // pyautolib_sources in chrome_tests.gypi. |
| 27 | 27 |
| 28 // Headers that can be swigged directly. | 28 // Headers that can be swigged directly. |
| 29 %include "chrome/app/chrome_dll_resource.h" | 29 %include "chrome/app/chrome_dll_resource.h" |
| 30 %include "chrome/common/automation_constants.h" | |
| 31 %include "chrome/common/pref_names.h" | 30 %include "chrome/common/pref_names.h" |
| 31 %include "chrome/test/automation/automation_constants.h" |
| 32 | 32 |
| 33 %{ | 33 %{ |
| 34 #include "chrome/common/automation_constants.h" | |
| 35 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
| 35 #include "chrome/test/automation/automation_constants.h" |
| 36 #include "chrome/test/automation/browser_proxy.h" | 36 #include "chrome/test/automation/browser_proxy.h" |
| 37 #include "chrome/test/automation/tab_proxy.h" | 37 #include "chrome/test/automation/tab_proxy.h" |
| 38 #include "chrome/test/pyautolib/pyautolib.h" | 38 #include "chrome/test/pyautolib/pyautolib.h" |
| 39 %} | 39 %} |
| 40 | 40 |
| 41 // Handle type uint32 conversions as int | 41 // Handle type uint32 conversions as int |
| 42 %apply int { uint32 }; | 42 %apply int { uint32 }; |
| 43 | 43 |
| 44 // scoped_refptr | 44 // scoped_refptr |
| 45 template <class T> | 45 template <class T> |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 int window_index=0, | 372 int window_index=0, |
| 373 int tab_index=0, | 373 int tab_index=0, |
| 374 const std::wstring& frame_xpath=""); | 374 const std::wstring& frame_xpath=""); |
| 375 | 375 |
| 376 %feature("docstring", "Resets to the default theme. " | 376 %feature("docstring", "Resets to the default theme. " |
| 377 "Returns true on success.") ResetToDefaultTheme; | 377 "Returns true on success.") ResetToDefaultTheme; |
| 378 bool ResetToDefaultTheme(); | 378 bool ResetToDefaultTheme(); |
| 379 | 379 |
| 380 }; | 380 }; |
| 381 | 381 |
| OLD | NEW |