Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 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_RENDERER_IDLE_USER_DETECTOR_H_ | |
| 6 #define CONTENT_RENDERER_IDLE_USER_DETECTOR_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "content/public/renderer/render_view_observer.h" | |
| 10 | |
| 11 // Class which observes user input events and postpones | |
| 12 // idle notifications if the user is active. | |
| 13 class IdleUserDetector : public content::RenderViewObserver { | |
|
ulan
2011/11/16 14:14:46
Is overhead of having additional RenderViewObserve
| |
| 14 public: | |
| 15 IdleUserDetector(content::RenderView* render_view); | |
| 16 virtual ~IdleUserDetector(); | |
| 17 | |
| 18 private: | |
| 19 // RenderViewObserver implementation: | |
| 20 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
| 21 | |
| 22 void OnHandleInputEvent(const IPC::Message& message); | |
| 23 | |
| 24 DISALLOW_COPY_AND_ASSIGN(IdleUserDetector); | |
| 25 }; | |
| 26 | |
| 27 #endif // CONTENT_RENDERER_IDLE_USER_DETECTOR_H_ | |
| OLD | NEW |