Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 "base/memory/scoped_ptr.h" | |
| 9 #include "content/browser/vibration/vibration_service.h" | |
| 10 #include "content/public/browser/browser_message_filter.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 class VibrationMessageFilter : public BrowserMessageFilter { | |
| 15 public: | |
| 16 // BrowserMessageFilter implementation. | |
| 17 virtual bool OnMessageReceived(const IPC::Message& message, | |
| 18 bool* message_was_ok) OVERRIDE; | |
| 19 | |
| 20 private: | |
| 21 virtual ~VibrationMessageFilter(); | |
| 22 | |
| 23 void OnVibrate(unsigned int milliseconds); | |
|
palmer
2013/06/21 18:17:40
int64_t again
Michael van Ouwerkerk
2013/06/24 13:46:57
Done.
| |
| 24 void OnCancelVibration(); | |
| 25 | |
| 26 scoped_ptr<VibrationService> vibration_service_; | |
| 27 }; | |
| 28 | |
| 29 } // namespace content | |
| 30 | |
| 31 #endif // CONTENT_BROWSER_VIBRATION_VIBRATION_MESSAGE_FILTER_H_ | |
| OLD | NEW |