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

Side by Side Diff: ash/shell.cc

Issue 9226040: Renames and moves some workspace related classes to the workspace (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 11 months 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 | « ash/ash.gyp ('k') | ash/wm/default_container_event_filter.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/accelerators/accelerator_controller.h" 9 #include "ash/accelerators/accelerator_controller.h"
10 #include "ash/accelerators/accelerator_filter.h" 10 #include "ash/accelerators/accelerator_filter.h"
11 #include "ash/app_list/app_list.h" 11 #include "ash/app_list/app_list.h"
12 #include "ash/ash_switches.h" 12 #include "ash/ash_switches.h"
13 #include "ash/drag_drop/drag_drop_controller.h" 13 #include "ash/drag_drop/drag_drop_controller.h"
14 #include "ash/ime/input_method_event_filter.h" 14 #include "ash/ime/input_method_event_filter.h"
15 #include "ash/launcher/launcher.h" 15 #include "ash/launcher/launcher.h"
16 #include "ash/shell_delegate.h" 16 #include "ash/shell_delegate.h"
17 #include "ash/shell_factory.h" 17 #include "ash/shell_factory.h"
18 #include "ash/shell_window_ids.h" 18 #include "ash/shell_window_ids.h"
19 #include "ash/tooltips/tooltip_controller.h" 19 #include "ash/tooltips/tooltip_controller.h"
20 #include "ash/wm/activation_controller.h" 20 #include "ash/wm/activation_controller.h"
21 #include "ash/wm/compact_layout_manager.h" 21 #include "ash/wm/compact_layout_manager.h"
22 #include "ash/wm/compact_status_area_layout_manager.h" 22 #include "ash/wm/compact_status_area_layout_manager.h"
23 #include "ash/wm/default_container_event_filter.h"
24 #include "ash/wm/default_container_layout_manager.h"
25 #include "ash/wm/dialog_frame_view.h" 23 #include "ash/wm/dialog_frame_view.h"
26 #include "ash/wm/system_modal_container_layout_manager.h" 24 #include "ash/wm/system_modal_container_layout_manager.h"
27 #include "ash/wm/power_button_controller.h" 25 #include "ash/wm/power_button_controller.h"
28 #include "ash/wm/root_window_event_filter.h" 26 #include "ash/wm/root_window_event_filter.h"
29 #include "ash/wm/root_window_layout_manager.h" 27 #include "ash/wm/root_window_layout_manager.h"
30 #include "ash/wm/shadow_controller.h" 28 #include "ash/wm/shadow_controller.h"
31 #include "ash/wm/shelf_layout_manager.h" 29 #include "ash/wm/shelf_layout_manager.h"
32 #include "ash/wm/stacking_controller.h" 30 #include "ash/wm/stacking_controller.h"
33 #include "ash/wm/status_area_layout_manager.h" 31 #include "ash/wm/status_area_layout_manager.h"
34 #include "ash/wm/toplevel_layout_manager.h" 32 #include "ash/wm/toplevel_layout_manager.h"
35 #include "ash/wm/toplevel_window_event_filter.h" 33 #include "ash/wm/toplevel_window_event_filter.h"
34 #include "ash/wm/video_detector.h"
36 #include "ash/wm/window_cycle_controller.h" 35 #include "ash/wm/window_cycle_controller.h"
37 #include "ash/wm/window_modality_controller.h" 36 #include "ash/wm/window_modality_controller.h"
38 #include "ash/wm/window_util.h" 37 #include "ash/wm/window_util.h"
39 #include "ash/wm/workspace_controller.h" 38 #include "ash/wm/workspace_controller.h"
40 #include "ash/wm/video_detector.h" 39 #include "ash/wm/workspace/workspace_event_filter.h"
40 #include "ash/wm/workspace/workspace_layout_manager.h"
41 #include "base/bind.h" 41 #include "base/bind.h"
42 #include "base/command_line.h" 42 #include "base/command_line.h"
43 #include "ui/aura/client/aura_constants.h" 43 #include "ui/aura/client/aura_constants.h"
44 #include "ui/aura/layout_manager.h" 44 #include "ui/aura/layout_manager.h"
45 #include "ui/aura/root_window.h" 45 #include "ui/aura/root_window.h"
46 #include "ui/aura/window.h" 46 #include "ui/aura/window.h"
47 #include "ui/gfx/compositor/layer.h" 47 #include "ui/gfx/compositor/layer.h"
48 #include "ui/gfx/compositor/layer_animator.h" 48 #include "ui/gfx/compositor/layer_animator.h"
49 #include "ui/gfx/screen.h" 49 #include "ui/gfx/screen.h"
50 #include "ui/gfx/size.h" 50 #include "ui/gfx/size.h"
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // Shell, private: 425 // Shell, private:
426 426
427 void Shell::EnableWorkspaceManager() { 427 void Shell::EnableWorkspaceManager() {
428 aura::Window* default_container = 428 aura::Window* default_container =
429 GetContainer(internal::kShellWindowId_DefaultContainer); 429 GetContainer(internal::kShellWindowId_DefaultContainer);
430 430
431 workspace_controller_.reset( 431 workspace_controller_.reset(
432 new internal::WorkspaceController(default_container)); 432 new internal::WorkspaceController(default_container));
433 workspace_controller_->SetLauncherModel(launcher_->model()); 433 workspace_controller_->SetLauncherModel(launcher_->model());
434 default_container->SetEventFilter( 434 default_container->SetEventFilter(
435 new internal::DefaultContainerEventFilter(default_container)); 435 new internal::WorkspaceEventFilter(default_container));
436 default_container->SetLayoutManager( 436 default_container->SetLayoutManager(
437 new internal::DefaultContainerLayoutManager( 437 new internal::WorkspaceLayoutManager(
438 workspace_controller_->workspace_manager())); 438 workspace_controller_->workspace_manager()));
439 } 439 }
440 440
441 void Shell::ResetLayoutManager(int container_id) { 441 void Shell::ResetLayoutManager(int container_id) {
442 GetContainer(container_id)->SetLayoutManager(NULL); 442 GetContainer(container_id)->SetLayoutManager(NULL);
443 } 443 }
444 444
445 } // namespace ash 445 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/wm/default_container_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698