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

Side by Side Diff: content/browser/vibration/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: Fold VibrationService into VibrationMessageFilter. 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_VIBRATION_VIBRATION_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_
7
8 #include "content/public/browser/browser_message_filter.h"
9 #if defined(OS_ANDROID)
10 #include "base/android/jni_android.h"
11 #endif
12
13 namespace content {
14
15 class VibrationMessageFilter : public BrowserMessageFilter {
16 public:
17 VibrationMessageFilter();
18
19 #if defined(OS_ANDROID)
20 static bool Register(JNIEnv* env);
21 #endif
22
23 private:
24 virtual ~VibrationMessageFilter();
25
26 // BrowserMessageFilter implementation.
27 virtual bool OnMessageReceived(const IPC::Message& message,
28 bool* message_was_ok) OVERRIDE;
29
30 #if defined(OS_ANDROID)
31 void OnVibrate(int64 milliseconds);
32 void OnCancelVibration();
33 void initializeJava();
jam 2013/07/03 16:51:55 nit: chrome style is InitializeJava
Michael van Ouwerkerk 2013/07/10 15:24:26 Obsolete as this method was removed.
34
35 base::android::ScopedJavaGlobalRef<jobject> j_vibration_message_filter_;
36 #endif
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698