Chromium Code Reviews| 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 virtual void Vibrate(unsigned time) OVERRIDE; | |
|
Peter Beverloo
2013/06/13 11:27:45
nit: empty line above here, perhaps a comment to c
Michael van Ouwerkerk
2013/06/18 14:39:23
Done.
| |
| 19 virtual void CancelVibration() OVERRIDE; | |
| 20 | |
| 21 private: | |
| 22 base::android::ScopedJavaGlobalRef<jobject> java_vibration_service_; | |
|
Peter Beverloo
2013/06/13 11:27:45
j_vibration_service_
Michael van Ouwerkerk
2013/06/18 14:39:23
Done.
| |
| 23 }; | |
| 24 | |
| 25 bool RegisterVibrationService(JNIEnv* env); | |
| 26 | |
| 27 } // namespace content | |
| 28 | |
| 29 #endif // CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_IMPL_ANDROID_H_ | |
| OLD | NEW |