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

Side by Side Diff: content/browser/vibration_message_filter.h

Issue 23496051: Make VibrationMessageFilter available to other platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 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_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_VIBRATION_MESSAGE_FILTER_H_
7
8 #include "content/public/browser/browser_message_filter.h"
9
10 namespace content {
11
12 class CONTENT_EXPORT VibrationMessageFilter
Avi (use Gerrit) 2013/09/12 05:05:58 Comments on the class and functions?
13 : public BrowserMessageFilter {
14 public:
15 VibrationMessageFilter();
16
17 static VibrationMessageFilter* Create();
18
19 typedef VibrationMessageFilter* VibrationMessageFilterFactory();
20 static void SetVibrationMessageFilterFactory(VibrationMessageFilterFactory* fa ctory);
Avi (use Gerrit) 2013/09/12 05:05:58 80 columns!
21
22 protected:
23 virtual void OnVibrate(int64 milliseconds) = 0;
24 virtual void OnCancelVibration() = 0;
25
26 virtual ~VibrationMessageFilter();
27
28 private:
29 // BrowserMessageFilter implementation.
30 virtual bool OnMessageReceived(const IPC::Message& message,
31 bool* message_was_ok) OVERRIDE;
32
33 static VibrationMessageFilterFactory* factory_;
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_VIBRATION_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698