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

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

Issue 8926004: Revert 114095 - Move the concept of Activation to the Shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/shell.h ('k') | ui/aura_shell/stacking_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
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/shell.h" 5 #include "ui/aura_shell/shell.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "ui/aura/aura_switches.h" 9 #include "ui/aura/aura_switches.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
11 #include "ui/aura/client/drag_drop_client.h" 11 #include "ui/aura/client/drag_drop_client.h"
12 #include "ui/aura/root_window.h" 12 #include "ui/aura/root_window.h"
13 #include "ui/aura/layout_manager.h" 13 #include "ui/aura/layout_manager.h"
14 #include "ui/aura/window.h" 14 #include "ui/aura/window.h"
15 #include "ui/aura/window_types.h" 15 #include "ui/aura/window_types.h"
16 #include "ui/aura_shell/activation_controller.h"
17 #include "ui/aura_shell/app_list.h" 16 #include "ui/aura_shell/app_list.h"
18 #include "ui/aura_shell/default_container_event_filter.h" 17 #include "ui/aura_shell/default_container_event_filter.h"
19 #include "ui/aura_shell/default_container_layout_manager.h" 18 #include "ui/aura_shell/default_container_layout_manager.h"
20 #include "ui/aura_shell/root_window_event_filter.h" 19 #include "ui/aura_shell/root_window_event_filter.h"
21 #include "ui/aura_shell/root_window_layout_manager.h" 20 #include "ui/aura_shell/root_window_layout_manager.h"
22 #include "ui/aura_shell/drag_drop_controller.h" 21 #include "ui/aura_shell/drag_drop_controller.h"
23 #include "ui/aura_shell/launcher/launcher.h" 22 #include "ui/aura_shell/launcher/launcher.h"
24 #include "ui/aura_shell/modal_container_layout_manager.h" 23 #include "ui/aura_shell/modal_container_layout_manager.h"
25 #include "ui/aura_shell/shadow_controller.h" 24 #include "ui/aura_shell/shadow_controller.h"
26 #include "ui/aura_shell/shelf_layout_manager.h" 25 #include "ui/aura_shell/shelf_layout_manager.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // static 171 // static
173 void Shell::DeleteInstance() { 172 void Shell::DeleteInstance() {
174 delete instance_; 173 delete instance_;
175 instance_ = NULL; 174 instance_ = NULL;
176 } 175 }
177 176
178 void Shell::Init() { 177 void Shell::Init() {
179 aura::RootWindow* root_window = aura::RootWindow::GetInstance(); 178 aura::RootWindow* root_window = aura::RootWindow::GetInstance();
180 root_window->SetCursor(aura::kCursorPointer); 179 root_window->SetCursor(aura::kCursorPointer);
181 180
182 activation_controller_.reset(new internal::ActivationController);
183
184 aura::Window::Windows containers; 181 aura::Window::Windows containers;
185 CreateSpecialContainers(&containers); 182 CreateSpecialContainers(&containers);
186 aura::Window::Windows::const_iterator i; 183 aura::Window::Windows::const_iterator i;
187 for (i = containers.begin(); i != containers.end(); ++i) { 184 for (i = containers.begin(); i != containers.end(); ++i) {
188 (*i)->Init(ui::Layer::LAYER_HAS_NO_TEXTURE); 185 (*i)->Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
189 root_window->AddChild(*i); 186 root_window->AddChild(*i);
190 (*i)->Show(); 187 (*i)->Show();
191 } 188 }
192 189
193 internal::StackingController* stacking_controller = 190 internal::StackingController* stacking_controller =
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 new internal::WorkspaceController(default_container)); 293 new internal::WorkspaceController(default_container));
297 workspace_controller_->SetLauncherModel(launcher_->model()); 294 workspace_controller_->SetLauncherModel(launcher_->model());
298 default_container->SetEventFilter( 295 default_container->SetEventFilter(
299 new internal::DefaultContainerEventFilter(default_container)); 296 new internal::DefaultContainerEventFilter(default_container));
300 default_container->SetLayoutManager( 297 default_container->SetLayoutManager(
301 new internal::DefaultContainerLayoutManager( 298 new internal::DefaultContainerLayoutManager(
302 workspace_controller_->workspace_manager())); 299 workspace_controller_->workspace_manager()));
303 } 300 }
304 301
305 } // namespace aura_shell 302 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ui/aura_shell/shell.h ('k') | ui/aura_shell/stacking_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698