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

Side by Side Diff: ash/system/chromeos/power/video_activity_notifier.h

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_SYSTEM_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_
6 #define ASH_SYSTEM_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ 6 #define ASH_SYSTEM_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_
7 7
8 #include "ash/wm/video_detector.h" 8 #include "ash/wm/video_detector.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 // Notifies the power manager when a video is playing. 15 // Notifies the power manager when a video is playing.
16 class VideoActivityNotifier : public VideoDetectorObserver, 16 class VideoActivityNotifier : public VideoDetectorObserver,
17 public ShellObserver { 17 public ShellObserver {
18 public: 18 public:
19 explicit VideoActivityNotifier(VideoDetector* detector); 19 explicit VideoActivityNotifier(VideoDetector* detector);
20 virtual ~VideoActivityNotifier(); 20 virtual ~VideoActivityNotifier();
21 21
22 // VideoDetectorObserver implementation. 22 // VideoDetectorObserver implementation.
23 virtual void OnVideoDetected(bool is_fullscreen) OVERRIDE; 23 virtual void OnVideoDetected(bool is_fullscreen) override;
24 24
25 // ShellObserver implementation. 25 // ShellObserver implementation.
26 virtual void OnLockStateChanged(bool locked) OVERRIDE; 26 virtual void OnLockStateChanged(bool locked) override;
27 27
28 private: 28 private:
29 VideoDetector* detector_; // not owned 29 VideoDetector* detector_; // not owned
30 30
31 // Last time that the power manager was notified. 31 // Last time that the power manager was notified.
32 base::TimeTicks last_notify_time_; 32 base::TimeTicks last_notify_time_;
33 33
34 // True if the screen is currently locked. 34 // True if the screen is currently locked.
35 bool screen_is_locked_; 35 bool screen_is_locked_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(VideoActivityNotifier); 37 DISALLOW_COPY_AND_ASSIGN(VideoActivityNotifier);
38 }; 38 };
39 39
40 } // namespace ash 40 } // namespace ash
41 41
42 #endif // ASH_SYSTEM_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ 42 #endif // ASH_SYSTEM_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/power/tray_power_unittest.cc ('k') | ash/system/chromeos/rotation/tray_rotation_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698