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

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: Add gyp Created 4 years, 9 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
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // Controls the device scale factor of the main WebView for hidpi tests. 165 // Controls the device scale factor of the main WebView for hidpi tests.
166 virtual void SetDeviceScaleFactor(float factor) = 0; 166 virtual void SetDeviceScaleFactor(float factor) = 0;
167 167
168 // Enable zoom-for-dsf option. 168 // Enable zoom-for-dsf option.
169 virtual void EnableUseZoomForDSF() = 0; 169 virtual void EnableUseZoomForDSF() = 0;
170 170
171 // Change the device color profile while running a layout test. 171 // Change the device color profile while running a layout test.
172 virtual void SetDeviceColorProfile(const std::string& name) = 0; 172 virtual void SetDeviceColorProfile(const std::string& name) = 0;
173 173
174 // Change the bluetooth test data while running a layout test. 174 // Change the bluetooth test data while running a layout test, uses
175 // IPC::Message to communicate with the browser.
176 // TODO(ortuno): Remove after moving Web Bluetooth to Mojo.
177 // http://crbug.com/508771
175 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; 178 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0;
176 179
180 // Set the bluetooth adapter while running a layout test, uses Mojo to
181 // communicate with the browser.
182 virtual void SetBluetoothFakeAdapter(const std::string& adapter_name,
183 const base::Closure& callback) = 0;
184
177 // Makes the Bluetooth chooser record its input and wait for instructions from 185 // Makes the Bluetooth chooser record its input and wait for instructions from
178 // the test program on how to proceed. 186 // the test program on how to proceed.
179 virtual void SetBluetoothManualChooser() = 0; 187 virtual void SetBluetoothManualChooser() = 0;
180 188
181 // Returns the events recorded since the last call to this function. 189 // Returns the events recorded since the last call to this function.
182 virtual void GetBluetoothManualChooserEvents( 190 virtual void GetBluetoothManualChooserEvents(
183 const base::Callback<void(const std::vector<std::string>& events)>& 191 const base::Callback<void(const std::vector<std::string>& events)>&
184 callback) = 0; 192 callback) = 0;
185 193
186 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid 194 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 const blink::WebPluginParams& params) = 0; 300 const blink::WebPluginParams& params) = 0;
293 301
294 // Convert the position in DIP to native coordinates. 302 // Convert the position in DIP to native coordinates.
295 virtual blink::WebPoint ConvertDIPToNative( 303 virtual blink::WebPoint ConvertDIPToNative(
296 const blink::WebPoint& point_in_dip) const = 0; 304 const blink::WebPoint& point_in_dip) const = 0;
297 }; 305 };
298 306
299 } // namespace test_runner 307 } // namespace test_runner
300 308
301 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 309 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698