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

Side by Side Diff: content/renderer/idle_user_detector.h

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/gpu/compositor_thread.cc ('k') | content/renderer/idle_user_detector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_IDLE_USER_DETECTOR_H_ 5 #ifndef CONTENT_RENDERER_IDLE_USER_DETECTOR_H_
6 #define CONTENT_RENDERER_IDLE_USER_DETECTOR_H_ 6 #define CONTENT_RENDERER_IDLE_USER_DETECTOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/public/renderer/render_view_observer.h" 9 #include "content/public/renderer/render_view_observer.h"
10 10
11 namespace content {
12
11 // Class which observes user input events and postpones 13 // Class which observes user input events and postpones
12 // idle notifications if the user is active. 14 // idle notifications if the user is active.
13 class IdleUserDetector : public content::RenderViewObserver { 15 class IdleUserDetector : public RenderViewObserver {
14 public: 16 public:
15 IdleUserDetector(content::RenderView* render_view); 17 IdleUserDetector(RenderView* render_view);
16 virtual ~IdleUserDetector(); 18 virtual ~IdleUserDetector();
17 19
18 private: 20 private:
19 // RenderViewObserver implementation: 21 // RenderViewObserver implementation:
20 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 22 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
21 23
22 void OnHandleInputEvent(const IPC::Message& message); 24 void OnHandleInputEvent(const IPC::Message& message);
23 25
24 DISALLOW_COPY_AND_ASSIGN(IdleUserDetector); 26 DISALLOW_COPY_AND_ASSIGN(IdleUserDetector);
25 }; 27 };
26 28
29 } // namespace content
30
27 #endif // CONTENT_RENDERER_IDLE_USER_DETECTOR_H_ 31 #endif // CONTENT_RENDERER_IDLE_USER_DETECTOR_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_thread.cc ('k') | content/renderer/idle_user_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698