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

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

Issue 1815483003: bluetooth: Create Mojo equivalent of SetBluetoothMockDataSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo
Patch Set: MMerge with ToT Created 4 years, 8 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/content_shell.gypi » ('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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // Controls the device scale factor of the main WebView for hidpi tests. 156 // Controls the device scale factor of the main WebView for hidpi tests.
157 virtual void SetDeviceScaleFactor(float factor) = 0; 157 virtual void SetDeviceScaleFactor(float factor) = 0;
158 158
159 // Enable zoom-for-dsf option. 159 // Enable zoom-for-dsf option.
160 virtual void EnableUseZoomForDSF() = 0; 160 virtual void EnableUseZoomForDSF() = 0;
161 161
162 // Change the device color profile while running a layout test. 162 // Change the device color profile while running a layout test.
163 virtual void SetDeviceColorProfile(const std::string& name) = 0; 163 virtual void SetDeviceColorProfile(const std::string& name) = 0;
164 164
165 // Change the bluetooth test data while running a layout test. 165 // Set the bluetooth adapter while running a layout test, uses Mojo to
166 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; 166 // communicate with the browser.
167 virtual void SetBluetoothFakeAdapter(const std::string& adapter_name,
168 const base::Closure& callback) = 0;
167 169
168 // Makes the Bluetooth chooser record its input and wait for instructions from 170 // If |enable| is true makes the Bluetooth chooser record its input and wait
169 // the test program on how to proceed. 171 // for instructions from the test program on how to proceed. Otherwise
170 virtual void SetBluetoothManualChooser() = 0; 172 // fall backs to the browser's default chooser.
173 virtual void SetBluetoothManualChooser(bool enable) = 0;
171 174
172 // Returns the events recorded since the last call to this function. 175 // Returns the events recorded since the last call to this function.
173 virtual void GetBluetoothManualChooserEvents( 176 virtual void GetBluetoothManualChooserEvents(
174 const base::Callback<void(const std::vector<std::string>& events)>& 177 const base::Callback<void(const std::vector<std::string>& events)>&
175 callback) = 0; 178 callback) = 0;
176 179
177 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid 180 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid
178 // event strings are: 181 // event strings are:
179 // * "cancel" - simulates the user canceling the chooser. 182 // * "cancel" - simulates the user canceling the chooser.
180 // * "select" - simulates the user selecting a device whose device ID is in 183 // * "select" - simulates the user selecting a device whose device ID is in
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 const blink::WebPluginParams& params) = 0; 278 const blink::WebPluginParams& params) = 0;
276 279
277 // Convert the position in DIP to native coordinates. 280 // Convert the position in DIP to native coordinates.
278 virtual blink::WebPoint ConvertDIPToNative( 281 virtual blink::WebPoint ConvertDIPToNative(
279 const blink::WebPoint& point_in_dip) const = 0; 282 const blink::WebPoint& point_in_dip) const = 0;
280 }; 283 };
281 284
282 } // namespace test_runner 285 } // namespace test_runner
283 286
284 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 287 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | content/content_shell.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698