| OLD | NEW |
| 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 #include "device/vibration/vibration_manager_impl.h" | 5 #include "device/vibration/vibration_manager_impl.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 | 9 |
| 10 namespace device { | 10 namespace device { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 class VibrationManagerEmptyImpl : public mojo::InterfaceImpl<VibrationManager> { | 14 class VibrationManagerEmptyImpl : public mojo::InterfaceImpl<VibrationManager> { |
| 15 public: | 15 public: |
| 16 static VibrationManagerEmptyImpl* Create() { | 16 static VibrationManagerEmptyImpl* Create() { |
| 17 return new VibrationManagerEmptyImpl(); | 17 return new VibrationManagerEmptyImpl(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 void Vibrate(int64 milliseconds) override {} | 20 void Vibrate(int64 milliseconds) override {} |
| 21 void Cancel() override {} | 21 void Cancel() override {} |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 VibrationManagerEmptyImpl() {} | 24 VibrationManagerEmptyImpl() {} |
| 25 virtual ~VibrationManagerEmptyImpl() {} | 25 ~VibrationManagerEmptyImpl() override {} |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace | 28 } // namespace |
| 29 | 29 |
| 30 //static | 30 //static |
| 31 void VibrationManagerImpl::Create( | 31 void VibrationManagerImpl::Create( |
| 32 mojo::InterfaceRequest<VibrationManager> request) { | 32 mojo::InterfaceRequest<VibrationManager> request) { |
| 33 BindToRequest(VibrationManagerEmptyImpl::Create(), &request); | 33 BindToRequest(VibrationManagerEmptyImpl::Create(), &request); |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace device | 36 } // namespace device |
| OLD | NEW |