OLD | NEW |
(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 scoped_ptr<SensorManager> SensorManager::Create( |
| 35 const SensorService::SensorUpdateCallback& callback) { |
| 36 return scoped_ptr<SensorManager>(new SensorManagerDefault(callback)); |
| 37 } |
| 38 |
| 39 } // namespace device |
OLD | NEW |