Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / browser / vibration / vibration_provider_android.h
blob4d39c748fcdeaaf589c5a9657412a60914bd2335
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"
11 namespace content {
13 class VibrationProviderAndroid : public VibrationProvider {
14 public:
15 VibrationProviderAndroid();
17 static bool Register(JNIEnv* env);
19 private:
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_