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

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

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 #ifndef CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_ORIENTATION_EVENT_PUMP_H_ 5 #ifndef CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_ORIENTATION_EVENT_PUMP_H_
6 #define CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_ORIENTATION_EVENT_PUMP_H_ 6 #define CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_ORIENTATION_EVENT_PUMP_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/renderer/device_sensors/device_sensor_event_pump.h" 11 #include "content/renderer/device_sensors/device_sensor_event_pump.h"
11 #include "content/renderer/shared_memory_seqlock_reader.h" 12 #include "content/renderer/shared_memory_seqlock_reader.h"
12 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationData.h" 13 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationData.h"
13 14
14 namespace blink { 15 namespace blink {
15 class WebDeviceOrientationListener; 16 class WebDeviceOrientationListener;
16 } 17 }
17 18
18 namespace content { 19 namespace content {
19 20
(...skipping 18 matching lines...) Expand all
38 void FireEvent() override; 39 void FireEvent() override;
39 bool InitializeReader(base::SharedMemoryHandle handle) override; 40 bool InitializeReader(base::SharedMemoryHandle handle) override;
40 41
41 // PlatformEventObserver. 42 // PlatformEventObserver.
42 void SendStartMessage() override; 43 void SendStartMessage() override;
43 void SendStopMessage() override; 44 void SendStopMessage() override;
44 45
45 bool ShouldFireEvent(const blink::WebDeviceOrientationData& data) const; 46 bool ShouldFireEvent(const blink::WebDeviceOrientationData& data) const;
46 47
47 blink::WebDeviceOrientationData data_; 48 blink::WebDeviceOrientationData data_;
48 scoped_ptr<DeviceOrientationSharedMemoryReader> reader_; 49 std::unique_ptr<DeviceOrientationSharedMemoryReader> reader_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(DeviceOrientationEventPump); 51 DISALLOW_COPY_AND_ASSIGN(DeviceOrientationEventPump);
51 }; 52 };
52 53
53 } // namespace content 54 } // namespace content
54 55
55 #endif // CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_ORIENTATION_EVENT_PUMP_H_ 56 #endif // CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_ORIENTATION_EVENT_PUMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698