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

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: rebase 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
19 // VibrationService implementation.
20 virtual void Vibrate(unsigned milliseconds) OVERRIDE;
21 virtual void CancelVibration() OVERRIDE;
22
23 private:
24 base::android::ScopedJavaGlobalRef<jobject> j_vibration_service_;
bulach 2013/06/20 14:21:04 nit: DISALLOW_COPY_AND_ASSIGN
Michael van Ouwerkerk 2013/06/20 17:34:09 Done.
25 };
26
27 bool RegisterVibrationService(JNIEnv* env);
bulach 2013/06/20 14:21:04 make it a static function in the class itself, and
Michael van Ouwerkerk 2013/06/20 17:34:09 Done.
28
29 } // namespace content
30
31 #endif // CONTENT_BROWSER_VIBRATION_VIBRATION_SERVICE_IMPL_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698