Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Side by Side Diff: content/browser/vibration/vibration_service_impl_android.h

Issue 16781002: Vibration API: plumbing from Blink to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698