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

Side by Side Diff: chrome/browser/chromeos/power/video_activity_notifier.h

Issue 10916123: Add is_fullscreen to video updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ 6 #define CHROME_BROWSER_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.h" 11 #include "base/time.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
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 ash::VideoDetectorObserver { 16 class VideoActivityNotifier : public ash::VideoDetectorObserver {
17 public: 17 public:
18 VideoActivityNotifier(); 18 VideoActivityNotifier();
19 virtual ~VideoActivityNotifier(); 19 virtual ~VideoActivityNotifier();
20 20
21 // ash::VideoDetectorObserver implementation. 21 // ash::VideoDetectorObserver implementation.
22 virtual void OnVideoDetected() OVERRIDE; 22 virtual void OnVideoDetected(bool is_fullscreen) OVERRIDE;
23 23
24 private: 24 private:
25 // Last time that the power manager was notified. 25 // Last time that the power manager was notified.
26 base::TimeTicks last_notify_time_; 26 base::TimeTicks last_notify_time_;
27 27
28 DISALLOW_COPY_AND_ASSIGN(VideoActivityNotifier); 28 DISALLOW_COPY_AND_ASSIGN(VideoActivityNotifier);
29 }; 29 };
30 30
31 } // namespace chromeos 31 } // namespace chromeos
32 32
33 #endif // CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_ 33 #endif // CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_
OLDNEW
« no previous file with comments | « ash/wm/video_detector_unittest.cc ('k') | chrome/browser/chromeos/power/video_activity_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698