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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 void Initialize(const base::FilePath& browser_dir); | 123 void Initialize(const base::FilePath& browser_dir); |
124 | 124 |
125 %feature("docstring", "Appends a command-line switch (with associated value " | 125 %feature("docstring", "Appends a command-line switch (with associated value " |
126 "if given) to the list of switches to be passed to the browser " | 126 "if given) to the list of switches to be passed to the browser " |
127 "upon launch. Should be called before launching the browser. " | 127 "upon launch. Should be called before launching the browser. " |
128 "For internal use only.") | 128 "For internal use only.") |
129 AppendBrowserLaunchSwitch; | 129 AppendBrowserLaunchSwitch; |
130 void AppendBrowserLaunchSwitch(const char* name); | 130 void AppendBrowserLaunchSwitch(const char* name); |
131 void AppendBrowserLaunchSwitch(const char* name, const char* value); | 131 void AppendBrowserLaunchSwitch(const char* name, const char* value); |
132 | 132 |
133 %feature("docstring", "Begins tracing with the given category string.") | 133 %feature("docstring", "Begins tracing with the given category_patterns" |
dsinclair
2013/03/21 18:18:53
Need a space after patterns.
rterrazas
2013/03/22 03:58:43
Done.
| |
134 "string.") | |
134 BeginTracing; | 135 BeginTracing; |
135 bool BeginTracing(const std::string& categories); | 136 bool BeginTracing(const std::string& category_patterns); |
136 | 137 |
137 %feature("docstring", "Ends tracing and returns the collected events.") | 138 %feature("docstring", "Ends tracing and returns the collected events.") |
138 EndTracing; | 139 EndTracing; |
139 std::string EndTracing(); | 140 std::string EndTracing(); |
140 | 141 |
141 void UseNamedChannelID(const std::string& named_channel_id); | 142 void UseNamedChannelID(const std::string& named_channel_id); |
142 | 143 |
143 %feature("docstring", | 144 %feature("docstring", |
144 "Fires up the browser and opens a window.") SetUp; | 145 "Fires up the browser and opens a window.") SetUp; |
145 virtual void SetUp(); | 146 virtual void SetUp(); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
244 // Initialize a new SSLOptions that will use the specified certificate. | 245 // Initialize a new SSLOptions that will use the specified certificate. |
245 explicit SSLOptions(ServerCertificate cert); | 246 explicit SSLOptions(ServerCertificate cert); |
246 }; | 247 }; |
247 | 248 |
248 %{ | 249 %{ |
249 typedef net::TestServer::SSLOptions SSLOptions; | 250 typedef net::TestServer::SSLOptions SSLOptions; |
250 %} | 251 %} |
251 | 252 |
252 %pointer_class(int, int_ptr); | 253 %pointer_class(int, int_ptr); |
253 %pointer_class(uint32, uint32_ptr); | 254 %pointer_class(uint32, uint32_ptr); |
OLD | NEW |