| 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 "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" | 8 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 9 | 9 |
| 10 namespace device { | 10 namespace device { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 class VibrationManagerEmptyImpl : public VibrationManager { | 14 class VibrationManagerEmptyImpl : public VibrationManager { |
| 15 public: | 15 public: |
| 16 void Vibrate(int64 milliseconds) override {} | 16 void Vibrate(int64 milliseconds) override {} |
| 17 void Cancel() override {} | 17 void Cancel() override {} |
| 18 | 18 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 } // namespace | 31 } // namespace |
| 32 | 32 |
| 33 // static | 33 // static |
| 34 void VibrationManagerImpl::Create( | 34 void VibrationManagerImpl::Create( |
| 35 mojo::InterfaceRequest<VibrationManager> request) { | 35 mojo::InterfaceRequest<VibrationManager> request) { |
| 36 new VibrationManagerEmptyImpl(request.Pass()); | 36 new VibrationManagerEmptyImpl(request.Pass()); |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace device | 39 } // namespace device |
| OLD | NEW |