Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: components/test_runner/web_test_delegate.h

Issue 1351393002: Make getBluetoothManualChooserEvents() asynchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Go back to the callback interface. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | content/shell/browser/blink_test_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual void SetDeviceColorProfile(const std::string& name) = 0; 159 virtual void SetDeviceColorProfile(const std::string& name) = 0;
160 160
161 // Change the bluetooth test data while running a layout test. 161 // Change the bluetooth test data while running a layout test.
162 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; 162 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0;
163 163
164 // Makes the Bluetooth chooser record its input and wait for instructions from 164 // Makes the Bluetooth chooser record its input and wait for instructions from
165 // the test program on how to proceed. 165 // the test program on how to proceed.
166 virtual void SetBluetoothManualChooser() = 0; 166 virtual void SetBluetoothManualChooser() = 0;
167 167
168 // Returns the events recorded since the last call to this function. 168 // Returns the events recorded since the last call to this function.
169 virtual std::vector<std::string> GetBluetoothManualChooserEvents() = 0; 169 virtual void GetBluetoothManualChooserEvents(
170 const base::Callback<void(const std::vector<std::string>& events)>&
171 callback) = 0;
170 172
171 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid 173 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid
172 // event strings are: 174 // event strings are:
173 // * "cancel" - simulates the user canceling the chooser. 175 // * "cancel" - simulates the user canceling the chooser.
174 // * "select" - simulates the user selecting a device whose device ID is in 176 // * "select" - simulates the user selecting a device whose device ID is in
175 // |argument|. 177 // |argument|.
176 virtual void SendBluetoothManualChooserEvent(const std::string& event, 178 virtual void SendBluetoothManualChooserEvent(const std::string& event,
177 const std::string& argument) = 0; 179 const std::string& argument) = 0;
178 180
179 // Enables mock geofencing service while running a layout test. 181 // Enables mock geofencing service while running a layout test.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 virtual blink::WebPlugin* CreatePluginPlaceholder( 267 virtual blink::WebPlugin* CreatePluginPlaceholder(
266 blink::WebLocalFrame* frame, 268 blink::WebLocalFrame* frame,
267 const blink::WebPluginParams& params) = 0; 269 const blink::WebPluginParams& params) = 0;
268 270
269 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; 271 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0;
270 }; 272 };
271 273
272 } // namespace test_runner 274 } // namespace test_runner
273 275
274 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 276 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | content/shell/browser/blink_test_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698