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

Unified Diff: ash/wm/video_detector.cc

Issue 10905026: Add is_fullscreen to video updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
Index: ash/wm/video_detector.cc
diff --git a/ash/wm/video_detector.cc b/ash/wm/video_detector.cc
index 5b32a531b104d2a6a301469141551f6aa0456c05..d9373eab5f7f0920b9d05d26d48ce71205165de5 100644
--- a/ash/wm/video_detector.cc
+++ b/ash/wm/video_detector.cc
@@ -103,7 +103,11 @@ void VideoDetector::MaybeNotifyObservers(aura::Window* window,
if (!window->GetBoundsInRootWindow().Intersects(root_bounds))
return;
- FOR_EACH_OBSERVER(VideoDetectorObserver, observers_, OnVideoDetected());
+ bool is_fullscreen = (ui::SHOW_STATE_FULLSCREEN ==
Daniel Erat 2012/08/30 20:33:59 nit: include ash/wm/window_util.h and use IsWindow
rharrison 2012/08/31 18:57:13 Done.
+ window->GetProperty(aura::client::kShowStateKey));
+ FOR_EACH_OBSERVER(VideoDetectorObserver,
+ observers_,
+ OnVideoDetected(is_fullscreen);
last_observer_notification_time_ = now;
}

Powered by Google App Engine
This is Rietveld 408576698