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

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

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « content/renderer/ico_image_decoder_unittest.cc ('k') | content/renderer/image_loading_helper.h » ('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 blink { 11 namespace blink {
12 class WebInputEvent; 12 class WebInputEvent;
13 } 13 }
14 14
15 namespace ui { 15 namespace ui {
16 struct LatencyInfo; 16 struct LatencyInfo;
17 } 17 }
18 18
19 namespace content { 19 namespace content {
20 20
21 // Class which observes user input events and postpones 21 // Class which observes user input events and postpones
22 // idle notifications if the user is active. 22 // idle notifications if the user is active.
23 class IdleUserDetector : public RenderViewObserver { 23 class IdleUserDetector : public RenderViewObserver {
24 public: 24 public:
25 IdleUserDetector(RenderView* render_view); 25 IdleUserDetector(RenderView* render_view);
26 virtual ~IdleUserDetector(); 26 virtual ~IdleUserDetector();
27 27
28 private: 28 private:
29 // RenderViewObserver implementation: 29 // RenderViewObserver implementation:
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnMessageReceived(const IPC::Message& message) override;
31 31
32 void OnHandleInputEvent(const blink::WebInputEvent* event, 32 void OnHandleInputEvent(const blink::WebInputEvent* event,
33 const ui::LatencyInfo& latency_info, 33 const ui::LatencyInfo& latency_info,
34 bool is_keyboard_shortcut); 34 bool is_keyboard_shortcut);
35 35
36 DISALLOW_COPY_AND_ASSIGN(IdleUserDetector); 36 DISALLOW_COPY_AND_ASSIGN(IdleUserDetector);
37 }; 37 };
38 38
39 } // namespace content 39 } // namespace content
40 40
41 #endif // CONTENT_RENDERER_IDLE_USER_DETECTOR_H_ 41 #endif // CONTENT_RENDERER_IDLE_USER_DETECTOR_H_
OLDNEW
« no previous file with comments | « content/renderer/ico_image_decoder_unittest.cc ('k') | content/renderer/image_loading_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698