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/basictypes.h" |
| 10 #include "base/compiler_specific.h" |
| 11 #include "content/browser/vibration/vibration_service.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class VibrationServiceImplAndroid : public VibrationService { |
| 16 public: |
| 17 VibrationServiceImplAndroid(); |
| 18 virtual ~VibrationServiceImplAndroid(); |
| 19 |
| 20 static bool Register(JNIEnv* env); |
| 21 |
| 22 // VibrationService implementation. |
| 23 virtual void Vibrate(int32 milliseconds) OVERRIDE; |
| 24 virtual void CancelVibration() OVERRIDE; |
| 25 |
| 26 private: |
| 27 base::android::ScopedJavaGlobalRef<jobject> j_vibration_service_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(VibrationServiceImplAndroid); |
| 30 }; |
| 31 |
| 32 } // namespace content |
| 33 |
| 34 #endif // CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_IMPL_ANDROID_H_ |
OLD | NEW |