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

Side by Side Diff: content/renderer/device_sensors/device_orientation_event_pump.cc

Issue 1093433005: Mechanical change for updating the paths to WebDevice{Motion|Orientation} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "device_orientation_event_pump.h" 5 #include "device_orientation_event_pump.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "content/common/device_sensors/device_orientation_messages.h" 9 #include "content/common/device_sensors/device_orientation_messages.h"
10 #include "content/public/renderer/render_thread.h" 10 #include "content/public/renderer/render_thread.h"
11 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h" 11 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationListener.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 const double DeviceOrientationEventPump::kOrientationThreshold = 0.1; 15 const double DeviceOrientationEventPump::kOrientationThreshold = 0.1;
16 16
17 DeviceOrientationEventPump::DeviceOrientationEventPump(RenderThread* thread) 17 DeviceOrientationEventPump::DeviceOrientationEventPump(RenderThread* thread)
18 : DeviceSensorEventPump<blink::WebDeviceOrientationListener>(thread) { 18 : DeviceSensorEventPump<blink::WebDeviceOrientationListener>(thread) {
19 } 19 }
20 20
21 DeviceOrientationEventPump::~DeviceOrientationEventPump() { 21 DeviceOrientationEventPump::~DeviceOrientationEventPump() {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 void DeviceOrientationEventPump::SendFakeDataForTesting(void* fake_data) { 85 void DeviceOrientationEventPump::SendFakeDataForTesting(void* fake_data) {
86 blink::WebDeviceOrientationData data = 86 blink::WebDeviceOrientationData data =
87 *static_cast<blink::WebDeviceOrientationData*>(fake_data); 87 *static_cast<blink::WebDeviceOrientationData*>(fake_data);
88 88
89 listener()->didChangeDeviceOrientation(data); 89 listener()->didChangeDeviceOrientation(data);
90 } 90 }
91 91
92 } // namespace content 92 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698