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

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

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: gn format & code rebase Created 3 years, 10 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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/device_sensors/device_light_event_pump.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_LIGHT_EVENT_PUMP_H_ 5 #ifndef CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_
6 #define CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_ 6 #define CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/renderer/device_sensors/device_sensor_event_pump.h" 11 #include "content/renderer/device_sensors/device_sensor_event_pump.h"
12 #include "content/renderer/shared_memory_seqlock_reader.h" 12 #include "content/renderer/shared_memory_seqlock_reader.h"
13 #include "device/sensors/public/cpp/device_light_data.h" 13 #include "device/sensors/public/cpp/device_light_data.h"
14 #include "device/sensors/public/interfaces/light.mojom.h" 14 #include "device/sensors/public/interfaces/light.mojom.h"
15 15
16 namespace blink { 16 namespace blink {
17 class WebDeviceLightListener; 17 class WebDeviceLightListener;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 21
22 typedef SharedMemorySeqLockReader<DeviceLightData> 22 typedef SharedMemorySeqLockReader<device::DeviceLightData>
23 DeviceLightSharedMemoryReader; 23 DeviceLightSharedMemoryReader;
24 24
25 class CONTENT_EXPORT DeviceLightEventPump 25 class CONTENT_EXPORT DeviceLightEventPump
26 : public DeviceSensorMojoClientMixin< 26 : public DeviceSensorMojoClientMixin<
27 DeviceSensorEventPump<blink::WebDeviceLightListener>, 27 DeviceSensorEventPump<blink::WebDeviceLightListener>,
28 device::mojom::LightSensor> { 28 device::mojom::LightSensor> {
29 public: 29 public:
30 explicit DeviceLightEventPump(RenderThread* thread); 30 explicit DeviceLightEventPump(RenderThread* thread);
31 ~DeviceLightEventPump() override; 31 ~DeviceLightEventPump() override;
32 32
(...skipping 14 matching lines...) Expand all
47 47
48 std::unique_ptr<DeviceLightSharedMemoryReader> reader_; 48 std::unique_ptr<DeviceLightSharedMemoryReader> reader_;
49 double last_seen_data_; 49 double last_seen_data_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(DeviceLightEventPump); 51 DISALLOW_COPY_AND_ASSIGN(DeviceLightEventPump);
52 }; 52 };
53 53
54 } // namespace content 54 } // namespace content
55 55
56 #endif // CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_ 56 #endif // CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_LIGHT_EVENT_PUMP_H_
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/device_sensors/device_light_event_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698