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

Side by Side Diff: ui/aura_shell/launcher/launcher.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura_shell/examples/window_type_launcher.cc ('k') | ui/aura_shell/launcher/launcher_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/aura_shell/examples/window_type_launcher.cc ('k') | ui/aura_shell/launcher/launcher_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698