| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 %} | 45 %} |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 %{ | 48 %{ |
| 49 #include "chrome/common/automation_constants.h" | 49 #include "chrome/common/automation_constants.h" |
| 50 #include "chrome/common/pref_names.h" | 50 #include "chrome/common/pref_names.h" |
| 51 #include "chrome/test/automation/browser_proxy.h" | 51 #include "chrome/test/automation/browser_proxy.h" |
| 52 #include "chrome/test/automation/tab_proxy.h" | 52 #include "chrome/test/automation/tab_proxy.h" |
| 53 #include "chrome/test/pyautolib/pyautolib.h" | 53 #include "chrome/test/pyautolib/pyautolib.h" |
| 54 #include "content/public/common/security_style.h" | 54 #include "content/public/common/security_style.h" |
| 55 #include "net/test/spawned_test_server.h" | 55 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 56 %} | 56 %} |
| 57 | 57 |
| 58 // Handle type uint32 conversions as int | 58 // Handle type uint32 conversions as int |
| 59 %apply int { uint32 }; | 59 %apply int { uint32 }; |
| 60 | 60 |
| 61 // scoped_refptr | 61 // scoped_refptr |
| 62 template <class T> | 62 template <class T> |
| 63 class scoped_refptr { | 63 class scoped_refptr { |
| 64 public: | 64 public: |
| 65 scoped_refptr(); | 65 scoped_refptr(); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // Initialize a new SSLOptions that will use the specified certificate. | 246 // Initialize a new SSLOptions that will use the specified certificate. |
| 247 explicit SSLOptions(ServerCertificate cert); | 247 explicit SSLOptions(ServerCertificate cert); |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 %{ | 250 %{ |
| 251 typedef net::SpawnedTestServer::SSLOptions SSLOptions; | 251 typedef net::SpawnedTestServer::SSLOptions SSLOptions; |
| 252 %} | 252 %} |
| 253 | 253 |
| 254 %pointer_class(int, int_ptr); | 254 %pointer_class(int, int_ptr); |
| 255 %pointer_class(uint32, uint32_ptr); | 255 %pointer_class(uint32, uint32_ptr); |
| OLD | NEW |