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

Side by Side Diff: device/sensors/device_sensor_host.cc

Issue 2845763002: Remove DeviceLightEvent implementation (Closed)
Patch Set: same as previous patch Created 3 years, 7 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 | « device/sensors/device_sensor_host.h ('k') | device/sensors/device_sensor_service.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/sensors/device_sensor_host.h" 5 #include "device/sensors/device_sensor_host.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "device/sensors/device_sensor_export.h" 9 #include "device/sensors/device_sensor_export.h"
10 #include "device/sensors/device_sensor_service.h" 10 #include "device/sensors/device_sensor_service.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 consumer_type>::DeviceSensorHost::StopPolling() { 55 consumer_type>::DeviceSensorHost::StopPolling() {
56 DCHECK(thread_checker_.CalledOnValidThread()); 56 DCHECK(thread_checker_.CalledOnValidThread());
57 DCHECK(is_started_); 57 DCHECK(is_started_);
58 if (!is_started_) 58 if (!is_started_)
59 return; 59 return;
60 is_started_ = false; 60 is_started_ = false;
61 DeviceSensorService::GetInstance()->RemoveConsumer(consumer_type); 61 DeviceSensorService::GetInstance()->RemoveConsumer(consumer_type);
62 } 62 }
63 63
64 template class DEVICE_SENSOR_EXPORT 64 template class DEVICE_SENSOR_EXPORT
65 DeviceSensorHost<device::mojom::LightSensor, CONSUMER_TYPE_LIGHT>;
66 template class DEVICE_SENSOR_EXPORT
67 DeviceSensorHost<device::mojom::MotionSensor, CONSUMER_TYPE_MOTION>; 65 DeviceSensorHost<device::mojom::MotionSensor, CONSUMER_TYPE_MOTION>;
68 template class DEVICE_SENSOR_EXPORT 66 template class DEVICE_SENSOR_EXPORT
69 DeviceSensorHost<device::mojom::OrientationSensor, 67 DeviceSensorHost<device::mojom::OrientationSensor,
70 CONSUMER_TYPE_ORIENTATION>; 68 CONSUMER_TYPE_ORIENTATION>;
71 template class DEVICE_SENSOR_EXPORT 69 template class DEVICE_SENSOR_EXPORT
72 DeviceSensorHost<device::mojom::OrientationAbsoluteSensor, 70 DeviceSensorHost<device::mojom::OrientationAbsoluteSensor,
73 CONSUMER_TYPE_ORIENTATION_ABSOLUTE>; 71 CONSUMER_TYPE_ORIENTATION_ABSOLUTE>;
74 72
75 } // namespace device 73 } // namespace device
OLDNEW
« no previous file with comments | « device/sensors/device_sensor_host.h ('k') | device/sensors/device_sensor_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698