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

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

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 6 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/dom_serializer_browsertest.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/macros.h" 8 #include "base/macros.h"
9 #include "content/common/input/input_event_dispatch_type.h" 9 #include "content/common/input/input_event_dispatch_type.h"
10 #include "content/public/renderer/render_view_observer.h" 10 #include "content/public/renderer/render_view_observer.h"
(...skipping 11 matching lines...) Expand all
22 // Class which observes user input events and postpones 22 // Class which observes user input events and postpones
23 // idle notifications if the user is active. 23 // idle notifications if the user is active.
24 class IdleUserDetector : public RenderViewObserver { 24 class IdleUserDetector : public RenderViewObserver {
25 public: 25 public:
26 IdleUserDetector(RenderView* render_view); 26 IdleUserDetector(RenderView* render_view);
27 ~IdleUserDetector() override; 27 ~IdleUserDetector() override;
28 28
29 private: 29 private:
30 // RenderViewObserver implementation: 30 // RenderViewObserver implementation:
31 bool OnMessageReceived(const IPC::Message& message) override; 31 bool OnMessageReceived(const IPC::Message& message) override;
32 void OnDestruct() override;
32 33
33 void OnHandleInputEvent(const blink::WebInputEvent* event, 34 void OnHandleInputEvent(const blink::WebInputEvent* event,
34 const ui::LatencyInfo& latency_info, 35 const ui::LatencyInfo& latency_info,
35 InputEventDispatchType dispatch_type); 36 InputEventDispatchType dispatch_type);
36 37
37 DISALLOW_COPY_AND_ASSIGN(IdleUserDetector); 38 DISALLOW_COPY_AND_ASSIGN(IdleUserDetector);
38 }; 39 };
39 40
40 } // namespace content 41 } // namespace content
41 42
42 #endif // CONTENT_RENDERER_IDLE_USER_DETECTOR_H_ 43 #endif // CONTENT_RENDERER_IDLE_USER_DETECTOR_H_
OLDNEW
« no previous file with comments | « content/renderer/dom_serializer_browsertest.cc ('k') | content/renderer/idle_user_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698