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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2415083002: Move Device Sensors client files from Blink to //device/sensors client lib (Closed)
Patch Set: Rebase Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 0bad0991e0c79661cb6165eb361cc90e2be494de..586c59ef787b136e3806b83c7b622659398e88f7 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -172,9 +172,9 @@ namespace {
bool g_sandbox_enabled = true;
double g_test_device_light_data = -1;
-base::LazyInstance<blink::WebDeviceMotionData>::Leaky
- g_test_device_motion_data = LAZY_INSTANCE_INITIALIZER;
-base::LazyInstance<blink::WebDeviceOrientationData>::Leaky
+base::LazyInstance<device::MotionData>::Leaky g_test_device_motion_data =
+ LAZY_INSTANCE_INITIALIZER;
+base::LazyInstance<device::OrientationData>::Leaky
g_test_device_orientation_data = LAZY_INSTANCE_INITIALIZER;
media::AudioParameters GetAudioHardwareParams() {
@@ -1094,7 +1094,7 @@ void RendererBlinkPlatformImpl::SetMockDeviceLightDataForTesting(double data) {
// static
void RendererBlinkPlatformImpl::SetMockDeviceMotionDataForTesting(
- const blink::WebDeviceMotionData& data) {
+ const device::MotionData& data) {
g_test_device_motion_data.Get() = data;
}
@@ -1102,7 +1102,7 @@ void RendererBlinkPlatformImpl::SetMockDeviceMotionDataForTesting(
// static
void RendererBlinkPlatformImpl::SetMockDeviceOrientationDataForTesting(
- const blink::WebDeviceOrientationData& data) {
+ const device::OrientationData& data) {
g_test_device_orientation_data.Get() = data;
}
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698