Apply _RELATIVE relocations ahead of others.
[chromium-blink-merge.git] / content / browser / vibration / vibration_provider_android.h
blobe0bd1c1d7cbe8a52dde43195200c418066c67d00
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_