blob: 9ba22d9855bdf43dd5773f69e2b0677100008814 [file] [log] [blame]
[email protected]65020682012-06-05 17:01:471// 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
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_
6#define CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_
[email protected]65020682012-06-05 17:01:477
8#include "ash/wm/video_detector.h"
9#include "base/basictypes.h"
10#include "base/compiler_specific.h"
11#include "base/time.h"
12
13namespace chromeos {
14
15// Notifies the power manager when a video is playing.
16class VideoActivityNotifier : public ash::VideoDetectorObserver {
17 public:
18 VideoActivityNotifier();
19 virtual ~VideoActivityNotifier();
20
21 // ash::VideoDetectorObserver implementation.
[email protected]960058f2012-09-11 13:23:3122 virtual void OnVideoDetected(bool is_fullscreen) OVERRIDE;
[email protected]65020682012-06-05 17:01:4723
24 private:
25 // Last time that the power manager was notified.
26 base::TimeTicks last_notify_time_;
27
28 DISALLOW_COPY_AND_ASSIGN(VideoActivityNotifier);
29};
30
31} // namespace chromeos
32
33#endif // CHROME_BROWSER_CHROMEOS_POWER_VIDEO_ACTIVITY_NOTIFIER_H_