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

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

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 #ifndef CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_MOTION_EVENT_PUMP_H_ 5 #ifndef CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_MOTION_EVENT_PUMP_H_
6 #define CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_MOTION_EVENT_PUMP_H_ 6 #define CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_MOTION_EVENT_PUMP_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/renderer/device_sensors/device_sensor_event_pump.h" 9 #include "content/renderer/device_sensors/device_sensor_event_pump.h"
10 #include "content/renderer/shared_memory_seqlock_reader.h" 10 #include "content/renderer/shared_memory_seqlock_reader.h"
11 #include "third_party/WebKit/public/platform/WebDeviceMotionData.h" 11 #include "third_party/WebKit/public/platform/WebDeviceMotionData.h"
12 12
13 namespace blink { 13 namespace blink {
14 class WebDeviceMotionListener; 14 class WebDeviceMotionListener;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 18
19 typedef SharedMemorySeqLockReader<blink::WebDeviceMotionData> 19 typedef SharedMemorySeqLockReader<blink::WebDeviceMotionData>
20 DeviceMotionSharedMemoryReader; 20 DeviceMotionSharedMemoryReader;
21 21
22 class CONTENT_EXPORT DeviceMotionEventPump 22 class CONTENT_EXPORT DeviceMotionEventPump
23 : public DeviceSensorEventPump<blink::WebDeviceMotionListener> { 23 : public DeviceSensorEventPump<blink::WebDeviceMotionListener> {
24 public: 24 public:
25 explicit DeviceMotionEventPump(RenderThread* thread); 25 explicit DeviceMotionEventPump(RenderThread* thread);
26 virtual ~DeviceMotionEventPump(); 26 virtual ~DeviceMotionEventPump();
27 27
28 // // PlatformEventObserver. 28 // // PlatformEventObserver.
29 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; 29 virtual bool OnControlMessageReceived(const IPC::Message& message) override;
30 virtual void SendFakeDataForTesting(void* fake_data) OVERRIDE; 30 virtual void SendFakeDataForTesting(void* fake_data) override;
31 31
32 protected: 32 protected:
33 virtual void FireEvent() OVERRIDE; 33 virtual void FireEvent() override;
34 virtual bool InitializeReader(base::SharedMemoryHandle handle) OVERRIDE; 34 virtual bool InitializeReader(base::SharedMemoryHandle handle) override;
35 35
36 // PlatformEventObserver. 36 // PlatformEventObserver.
37 virtual void SendStartMessage() OVERRIDE; 37 virtual void SendStartMessage() override;
38 virtual void SendStopMessage() OVERRIDE; 38 virtual void SendStopMessage() override;
39 39
40 scoped_ptr<DeviceMotionSharedMemoryReader> reader_; 40 scoped_ptr<DeviceMotionSharedMemoryReader> reader_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(DeviceMotionEventPump); 42 DISALLOW_COPY_AND_ASSIGN(DeviceMotionEventPump);
43 }; 43 };
44 44
45 } // namespace content 45 } // namespace content
46 46
47 #endif // CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_MOTION_EVENT_PUMP_H_ 47 #endif // CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_MOTION_EVENT_PUMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698