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

Unified Diff: ash/wm/video_detector.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 | « ash/wm/video_detector.h ('k') | ash/wm/video_detector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/video_detector.cc
diff --git a/ash/wm/video_detector.cc b/ash/wm/video_detector.cc
index 5b32a531b104d2a6a301469141551f6aa0456c05..a4dca431f5600315bd0c1bc3b45cc8bf4ef3c304 100644
--- a/ash/wm/video_detector.cc
+++ b/ash/wm/video_detector.cc
@@ -5,6 +5,7 @@
#include "ash/wm/video_detector.h"
#include "ash/shell.h"
+#include "ash/wm/window_util.h"
#include "ui/aura/env.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
@@ -103,7 +104,10 @@ void VideoDetector::MaybeNotifyObservers(aura::Window* window,
if (!window->GetBoundsInRootWindow().Intersects(root_bounds))
return;
- FOR_EACH_OBSERVER(VideoDetectorObserver, observers_, OnVideoDetected());
+ bool is_fullscreen = wm::IsWindowFullscreen(window);
+ FOR_EACH_OBSERVER(VideoDetectorObserver,
+ observers_,
+ OnVideoDetected(is_fullscreen));
last_observer_notification_time_ = now;
}
« no previous file with comments | « ash/wm/video_detector.h ('k') | ash/wm/video_detector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698