OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 Automation Proxy.") pyautolib | 17 %module(docstring="Python interface to Automation Proxy.") pyautolib |
18 %feature("autodoc", "1"); | 18 %feature("autodoc", "1"); |
19 | 19 |
20 %include <cpointer.i> | 20 %include <cpointer.i> |
21 %include <std_string.i> | 21 %include <std_string.i> |
22 %include <std_wstring.i> | 22 %include <std_wstring.i> |
23 | 23 |
24 %include "chrome/test/pyautolib/argc_argv.i" | 24 %include "chrome/test/pyautolib/argc_argv.i" |
25 | 25 |
26 // NOTE: All files included in this file should also be listed under | 26 // NOTE: All files included in this file should also be listed under |
27 // pyautolib_sources in chrome_tests.gypi. | 27 // pyautolib_sources in chrome_tests.gypi. |
28 | 28 |
29 // Headers that can be swigged directly. | 29 // Headers that can be swigged directly. |
| 30 %include "ash/accelerators/accelerator_action.h" |
30 %include "chrome/app/chrome_command_ids.h" | 31 %include "chrome/app/chrome_command_ids.h" |
31 %include "chrome/app/chrome_dll_resource.h" | 32 %include "chrome/app/chrome_dll_resource.h" |
32 %include "chrome/common/automation_constants.h" | 33 %include "chrome/common/automation_constants.h" |
33 %include "chrome/common/pref_names.h" | 34 %include "chrome/common/pref_names.h" |
34 %include "content/public/common/page_type.h" | 35 %include "content/public/common/page_type.h" |
35 %include "content/public/common/security_style.h" | 36 %include "content/public/common/security_style.h" |
36 // Must come before cert_status_flags.h | 37 // Must come before cert_status_flags.h |
37 %include "net/base/net_export.h" | 38 %include "net/base/net_export.h" |
38 %ignore net::MapNetErrorToCertStatus(int); | 39 %ignore net::MapNetErrorToCertStatus(int); |
39 %include "net/base/cert_status_flags.h" | 40 %include "net/base/cert_status_flags.h" |
40 | 41 |
41 %{ | 42 %{ |
| 43 #include "ash/accelerators/accelerator_action.h" |
42 #include "chrome/common/automation_constants.h" | 44 #include "chrome/common/automation_constants.h" |
43 #include "chrome/common/pref_names.h" | 45 #include "chrome/common/pref_names.h" |
44 #include "chrome/test/automation/browser_proxy.h" | 46 #include "chrome/test/automation/browser_proxy.h" |
45 #include "chrome/test/automation/tab_proxy.h" | 47 #include "chrome/test/automation/tab_proxy.h" |
46 #include "chrome/test/pyautolib/pyautolib.h" | 48 #include "chrome/test/pyautolib/pyautolib.h" |
47 #include "net/test/test_server.h" | 49 #include "net/test/test_server.h" |
48 %} | 50 %} |
49 | 51 |
50 // Handle type uint32 conversions as int | 52 // Handle type uint32 conversions as int |
51 %apply int { uint32 }; | 53 %apply int { uint32 }; |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 // Initialize a new HTTPSOptions that will use the specified certificate. | 472 // Initialize a new HTTPSOptions that will use the specified certificate. |
471 explicit HTTPSOptions(ServerCertificate cert); | 473 explicit HTTPSOptions(ServerCertificate cert); |
472 }; | 474 }; |
473 | 475 |
474 %{ | 476 %{ |
475 typedef net::TestServer::HTTPSOptions HTTPSOptions; | 477 typedef net::TestServer::HTTPSOptions HTTPSOptions; |
476 %} | 478 %} |
477 | 479 |
478 %pointer_class(int, int_ptr); | 480 %pointer_class(int, int_ptr); |
479 %pointer_class(uint32, uint32_ptr); | 481 %pointer_class(uint32, uint32_ptr); |
OLD | NEW |