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

Side by Side Diff: content/renderer/renderer_blink_platform_impl.h

Issue 2845763002: Remove DeviceLightEvent implementation (Closed)
Patch Set: same as previous patch Created 3 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 // Disables the WebSandboxSupport implementation for testing. 215 // Disables the WebSandboxSupport implementation for testing.
216 // Tests that do not set up a full sandbox environment should call 216 // Tests that do not set up a full sandbox environment should call
217 // SetSandboxEnabledForTesting(false) _before_ creating any instances 217 // SetSandboxEnabledForTesting(false) _before_ creating any instances
218 // of this class, to ensure that we don't attempt to use sandbox-related 218 // of this class, to ensure that we don't attempt to use sandbox-related
219 // file descriptors or other resources. 219 // file descriptors or other resources.
220 // 220 //
221 // Returns the previous |enable| value. 221 // Returns the previous |enable| value.
222 static bool SetSandboxEnabledForTesting(bool enable); 222 static bool SetSandboxEnabledForTesting(bool enable);
223 223
224 // Set a double to return when setDeviceLightListener is invoked.
225 static void SetMockDeviceLightDataForTesting(double data);
226 // Set MotionData to return when setDeviceMotionListener is invoked. 224 // Set MotionData to return when setDeviceMotionListener is invoked.
227 static void SetMockDeviceMotionDataForTesting(const device::MotionData& data); 225 static void SetMockDeviceMotionDataForTesting(const device::MotionData& data);
228 // Set OrientationData to return when setDeviceOrientationListener 226 // Set OrientationData to return when setDeviceOrientationListener
229 // is invoked. 227 // is invoked.
230 static void SetMockDeviceOrientationDataForTesting( 228 static void SetMockDeviceOrientationDataForTesting(
231 const device::OrientationData& data); 229 const device::OrientationData& data);
232 230
233 WebDatabaseObserverImpl* web_database_observer_impl() { 231 WebDatabaseObserverImpl* web_database_observer_impl() {
234 return web_database_observer_impl_.get(); 232 return web_database_observer_impl_.get();
235 } 233 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 305
308 // Only used when network service is enabled. 306 // Only used when network service is enabled.
309 mojom::URLLoaderFactoryPtr network_service_url_loader_factory_; 307 mojom::URLLoaderFactoryPtr network_service_url_loader_factory_;
310 308
311 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 309 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
312 }; 310 };
313 311
314 } // namespace content 312 } // namespace content
315 313
316 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 314 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/device_sensors/device_light_event_pump_unittest.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698