Chromium Code Reviews| 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; |
| } |