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

Side by Side Diff: content/browser/android/vibration_message_filter.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, 5 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_ANDROID_VIBRATION_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_ANDROID_VIBRATION_MESSAGE_FILTER_H_
7
8 #include "base/android/jni_android.h"
9 #include "content/public/browser/browser_message_filter.h"
10
11 namespace content {
12
13 class VibrationMessageFilter : public BrowserMessageFilter {
14 public:
15 VibrationMessageFilter();
16
17 static bool Register(JNIEnv* env);
18
19 private:
20 virtual ~VibrationMessageFilter();
21
22 // BrowserMessageFilter implementation.
23 virtual bool OnMessageReceived(const IPC::Message& message,
24 bool* message_was_ok) OVERRIDE;
25
26 void OnVibrate(int64 milliseconds);
27 void OnCancelVibration();
28
29 base::android::ScopedJavaGlobalRef<jobject> j_vibration_message_filter_;
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_BROWSER_ANDROID_VIBRATION_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/android/vibration_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698