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

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

Issue 236833003: Rename device_orientation to device_sensors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 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 #include "device_motion_event_pump.h" 5 #include "device_motion_event_pump.h"
6 6
7 #include "content/common/device_orientation/device_motion_messages.h" 7 #include "content/common/device_sensors/device_motion_messages.h"
8 #include "content/public/renderer/render_thread.h" 8 #include "content/public/renderer/render_thread.h"
9 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" 9 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 DeviceMotionEventPump::DeviceMotionEventPump() 13 DeviceMotionEventPump::DeviceMotionEventPump()
14 : DeviceSensorEventPump(), listener_(0) { 14 : DeviceSensorEventPump(), listener_(0) {
15 } 15 }
16 16
17 DeviceMotionEventPump::DeviceMotionEventPump(int pump_delay_millis) 17 DeviceMotionEventPump::DeviceMotionEventPump(int pump_delay_millis)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool DeviceMotionEventPump::SendStartMessage() { 53 bool DeviceMotionEventPump::SendStartMessage() {
54 return RenderThread::Get()->Send(new DeviceMotionHostMsg_StartPolling()); 54 return RenderThread::Get()->Send(new DeviceMotionHostMsg_StartPolling());
55 } 55 }
56 56
57 57
58 bool DeviceMotionEventPump::SendStopMessage() { 58 bool DeviceMotionEventPump::SendStopMessage() {
59 return RenderThread::Get()->Send(new DeviceMotionHostMsg_StopPolling()); 59 return RenderThread::Get()->Send(new DeviceMotionHostMsg_StopPolling());
60 } 60 }
61 61
62 } // namespace content 62 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698