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