OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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 #ifndef CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_IMPL_ANDROID_H_ | |
6 #define CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_IMPL_ANDROID_H_ | |
7 | |
8 #include "base/android/jni_android.h" | |
9 #include "base/compiler_specific.h" | |
10 #include "content/browser/vibration/vibration_service.h" | |
11 | |
12 namespace content { | |
13 | |
14 class VibrationServiceImplAndroid : public VibrationService { | |
15 public: | |
16 VibrationServiceImplAndroid(); | |
17 virtual ~VibrationServiceImplAndroid(); | |
18 | |
19 // VibrationService implementation. | |
20 virtual void Vibrate(unsigned milliseconds) OVERRIDE; | |
21 virtual void CancelVibration() OVERRIDE; | |
22 | |
23 private: | |
24 base::android::ScopedJavaGlobalRef<jobject> j_vibration_service_; | |
bulach
2013/06/20 14:21:04
nit:
DISALLOW_COPY_AND_ASSIGN
Michael van Ouwerkerk
2013/06/20 17:34:09
Done.
| |
25 }; | |
26 | |
27 bool RegisterVibrationService(JNIEnv* env); | |
bulach
2013/06/20 14:21:04
make it a static function in the class itself, and
Michael van Ouwerkerk
2013/06/20 17:34:09
Done.
| |
28 | |
29 } // namespace content | |
30 | |
31 #endif // CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_IMPL_ANDROID_H_ | |
OLD | NEW |