OLD | NEW |
---|---|
(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_ | |
OLD | NEW |