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

Side by Side Diff: device/sensor/sensor_manager_default.cc

Issue 1892083002: Generic Sensor API : Ambient Light Sensor API. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re entrancy fix Created 4 years, 6 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/sensor/sensor_manager.h ('k') | device/sensor/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "device/sensor/sensor_manager.h"
6
7 #include "base/macros.h"
8
9 namespace device {
10
11 namespace {
12
13 class SensorManagerDefault : public SensorManager {
14 public:
15 explicit SensorManagerDefault(
16 const SensorService::SensorUpdateCallback& callback) {}
17 ~SensorManagerDefault() override {}
18
19 private:
20 // SensorManager:
21 bool StartListeningSensorChange() override {
22 NOTIMPLEMENTED();
23 return false;
24 }
25
26 void StopListeningSensorChange() override { NOTIMPLEMENTED(); }
27
28 DISALLOW_COPY_AND_ASSIGN(SensorManagerDefault);
29 };
30
31 } // namespace
32
33 // static
34 std::unique_ptr<SensorManager> SensorManager::Create(
35 const SensorService::SensorUpdateCallback& callback) {
36 return std::unique_ptr<SensorManager>(new SensorManagerDefault(callback));
37 }
38
39 } // namespace device
OLDNEW
« no previous file with comments | « device/sensor/sensor_manager.h ('k') | device/sensor/sensor_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698