OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ui/aura_shell/launcher/launcher.h" | 5 #include "ui/aura_shell/launcher/launcher.h" |
6 | 6 |
7 #include "ui/aura/window.h" | 7 #include "ui/aura/window.h" |
8 #include "ui/aura_shell/launcher/launcher_model.h" | 8 #include "ui/aura_shell/launcher/launcher_model.h" |
9 #include "ui/aura_shell/launcher/launcher_view.h" | 9 #include "ui/aura_shell/launcher/launcher_view.h" |
10 #include "ui/aura_shell/shell.h" | 10 #include "ui/aura_shell/shell.h" |
11 #include "ui/aura_shell/shell_delegate.h" | 11 #include "ui/aura_shell/shell_delegate.h" |
12 #include "ui/aura_shell/shell_window_ids.h" | 12 #include "ui/aura_shell/shell_window_ids.h" |
13 #include "ui/gfx/compositor/layer.h" | 13 #include "ui/gfx/compositor/layer.h" |
14 #include "views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
15 | 15 |
16 namespace aura_shell { | 16 namespace aura_shell { |
17 | 17 |
18 Launcher::Launcher(aura::Window* window_container) | 18 Launcher::Launcher(aura::Window* window_container) |
19 : widget_(NULL), | 19 : widget_(NULL), |
20 window_container_(window_container) { | 20 window_container_(window_container) { |
21 window_container->AddObserver(this); | 21 window_container->AddObserver(this); |
22 | 22 |
23 model_.reset(new LauncherModel); | 23 model_.reset(new LauncherModel); |
24 | 24 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 model_->RemoveItemAt(i - model_->items().begin()); | 90 model_->RemoveItemAt(i - model_->items().begin()); |
91 } | 91 } |
92 | 92 |
93 void Launcher::OnWindowVisibilityChanged(aura::Window* window, | 93 void Launcher::OnWindowVisibilityChanged(aura::Window* window, |
94 bool visibile) { | 94 bool visibile) { |
95 if (visibile && !known_windows_[window]) | 95 if (visibile && !known_windows_[window]) |
96 MaybeAdd(window); | 96 MaybeAdd(window); |
97 } | 97 } |
98 | 98 |
99 } // namespace aura_shell | 99 } // namespace aura_shell |
OLD | NEW |