1 // Copyright 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.
5 #ifndef CONTENT_BROWSER_VIBRATION_VIBRATION_PROVIDER_ANDROID_H_
6 #define CONTENT_BROWSER_VIBRATION_VIBRATION_PROVIDER_ANDROID_H_
8 #include "base/android/jni_android.h"
9 #include "content/public/browser/vibration_provider.h"
13 class VibrationProviderAndroid
: public VibrationProvider
{
15 VibrationProviderAndroid();
17 static bool Register(JNIEnv
* env
);
20 virtual ~VibrationProviderAndroid();
22 virtual void Vibrate(int64 milliseconds
) override
;
23 virtual void CancelVibration() override
;
25 base::android::ScopedJavaGlobalRef
<jobject
> j_vibration_provider_
;
28 } // namespace content
30 #endif // CONTENT_BROWSER_VIBRATION_VIBRATION_PROVIDER_ANDROID_H_