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

Unified Diff: chrome/browser/chromeos/power/video_activity_notifier.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/power/video_activity_notifier.h ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/power/video_activity_notifier.cc
diff --git a/chrome/browser/chromeos/power/video_activity_notifier.cc b/chrome/browser/chromeos/power/video_activity_notifier.cc
index d0880628cc06ccb697f13d6948f6e4f53d8b1e5d..a92dcac2aa7ee4f070f90c123b0650a61b8848af 100644
--- a/chrome/browser/chromeos/power/video_activity_notifier.cc
+++ b/chrome/browser/chromeos/power/video_activity_notifier.cc
@@ -25,13 +25,12 @@ VideoActivityNotifier::~VideoActivityNotifier() {
ash::Shell::GetInstance()->video_detector()->RemoveObserver(this);
}
-void VideoActivityNotifier::OnVideoDetected() {
+void VideoActivityNotifier::OnVideoDetected(bool is_fullscreen) {
base::TimeTicks now = base::TimeTicks::Now();
- // InSeconds() truncates rather than rounding, so it's fine for this
- // comparison.
if (last_notify_time_.is_null() ||
(now - last_notify_time_).InSeconds() >= kNotifyIntervalSec) {
- DBusThreadManager::Get()->GetPowerManagerClient()->NotifyVideoActivity(now);
+ DBusThreadManager::Get()->GetPowerManagerClient()->
+ NotifyVideoActivity(now, is_fullscreen);
last_notify_time_ = now;
}
}
« no previous file with comments | « chrome/browser/chromeos/power/video_activity_notifier.h ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698