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 #ifndef DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_H_ | 5 #ifndef DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_H_ |
6 #define DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_H_ | 6 #define DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_H_ |
7 | 7 |
8 #include "device/vibration/vibration_export.h" | 8 #include "device/vibration/vibration_export.h" |
9 #include "device/vibration/vibration_manager.mojom.h" | 9 #include "device/vibration/vibration_manager.mojom.h" |
10 | 10 |
11 namespace device { | 11 namespace device { |
12 | 12 |
13 class VibrationManagerImpl { | 13 class VibrationManagerImpl { |
14 public: | 14 public: |
15 DEVICE_VIBRATION_EXPORT static void Create( | 15 DEVICE_VIBRATION_EXPORT static void Create( |
16 mojo::InterfaceRequest<mojom::VibrationManager> request); | 16 mojo::InterfaceRequest<mojom::VibrationManager> request); |
| 17 |
| 18 DEVICE_VIBRATION_EXPORT static int64_t milli_seconds_for_testing_; |
| 19 DEVICE_VIBRATION_EXPORT static bool cancelled_for_testing_; |
17 }; | 20 }; |
18 | 21 |
19 } // namespace device | 22 } // namespace device |
20 | 23 |
21 #endif // DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_H_ | 24 #endif // DEVICE_VIBRATION_VIBRATION_MANAGER_IMPL_H_ |
OLD | NEW |