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; |
} |