OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_window_state_m
anager.h" | 5 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_window_state_m
anager.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/wm/mru_window_tracker.h" | 8 #include "ash/wm/mru_window_tracker.h" |
9 #include "ash/wm/window_state.h" | 9 #include "ash/wm/window_state.h" |
10 #include "ash/wm/window_util.h" | 10 #include "ash/wm/window_util.h" |
11 #include "ash/wm_window.h" | |
12 #include "chrome/browser/ui/ash/ash_util.h" | 11 #include "chrome/browser/ui/ash/ash_util.h" |
13 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
14 | 13 |
15 namespace chromeos { | 14 namespace chromeos { |
16 | 15 |
17 // static | 16 // static |
18 WallpaperWindowStateManager* g_window_state_manager = nullptr; | 17 WallpaperWindowStateManager* g_window_state_manager = nullptr; |
19 | 18 |
20 // static | 19 // static |
21 void WallpaperWindowStateManager::MinimizeInactiveWindows( | 20 void WallpaperWindowStateManager::MinimizeInactiveWindows( |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // If user interacted with the |window| while wallpaper picker is opening, | 128 // If user interacted with the |window| while wallpaper picker is opening, |
130 // removes the |window| from observed list. | 129 // removes the |window| from observed list. |
131 for (auto iter = user_id_hash_window_list_map_.begin(); | 130 for (auto iter = user_id_hash_window_list_map_.begin(); |
132 iter != user_id_hash_window_list_map_.end(); ++iter) { | 131 iter != user_id_hash_window_list_map_.end(); ++iter) { |
133 iter->second.erase(window); | 132 iter->second.erase(window); |
134 } | 133 } |
135 window->RemoveObserver(this); | 134 window->RemoveObserver(this); |
136 } | 135 } |
137 | 136 |
138 } // namespace chromeos | 137 } // namespace chromeos |
OLD | NEW |