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

Side by Side Diff: ash/root_window_controller.cc

Issue 1907863002: Converts DockedWindowLayoutManager to common ash/wm types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: explicit shutdown Created 4 years, 8 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/shell.cc » ('j') | ash/shell.cc » ('J')
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/root_window_controller.h" 5 #include "ash/root_window_controller.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_constants.h" 10 #include "ash/ash_constants.h"
(...skipping 15 matching lines...) Expand all
26 #include "ash/shell_factory.h" 26 #include "ash/shell_factory.h"
27 #include "ash/shell_window_ids.h" 27 #include "ash/shell_window_ids.h"
28 #include "ash/switchable_windows.h" 28 #include "ash/switchable_windows.h"
29 #include "ash/system/status_area_widget.h" 29 #include "ash/system/status_area_widget.h"
30 #include "ash/system/tray/system_tray_delegate.h" 30 #include "ash/system/tray/system_tray_delegate.h"
31 #include "ash/system/tray/system_tray_notifier.h" 31 #include "ash/system/tray/system_tray_notifier.h"
32 #include "ash/touch/touch_hud_debug.h" 32 #include "ash/touch/touch_hud_debug.h"
33 #include "ash/touch/touch_hud_projection.h" 33 #include "ash/touch/touch_hud_projection.h"
34 #include "ash/touch/touch_observer_hud.h" 34 #include "ash/touch/touch_observer_hud.h"
35 #include "ash/wm/always_on_top_controller.h" 35 #include "ash/wm/always_on_top_controller.h"
36 #include "ash/wm/aura/aura_layout_manager_adapter.h"
36 #include "ash/wm/aura/wm_window_aura.h" 37 #include "ash/wm/aura/wm_window_aura.h"
37 #include "ash/wm/common/workspace/workspace_layout_manager_delegate.h" 38 #include "ash/wm/common/workspace/workspace_layout_manager_delegate.h"
38 #include "ash/wm/dock/docked_window_layout_manager.h" 39 #include "ash/wm/dock/docked_window_layout_manager.h"
39 #include "ash/wm/lock_layout_manager.h" 40 #include "ash/wm/lock_layout_manager.h"
40 #include "ash/wm/panels/attached_panel_window_targeter.h" 41 #include "ash/wm/panels/attached_panel_window_targeter.h"
41 #include "ash/wm/panels/panel_layout_manager.h" 42 #include "ash/wm/panels/panel_layout_manager.h"
42 #include "ash/wm/panels/panel_window_event_handler.h" 43 #include "ash/wm/panels/panel_window_event_handler.h"
43 #include "ash/wm/root_window_layout_manager.h" 44 #include "ash/wm/root_window_layout_manager.h"
44 #include "ash/wm/stacking_controller.h" 45 #include "ash/wm/stacking_controller.h"
45 #include "ash/wm/status_area_layout_manager.h" 46 #include "ash/wm/status_area_layout_manager.h"
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 mouse_event_target_.reset(new aura::Window(new EmptyWindowDelegate)); 803 mouse_event_target_.reset(new aura::Window(new EmptyWindowDelegate));
803 mouse_event_target_->Init(ui::LAYER_NOT_DRAWN); 804 mouse_event_target_->Init(ui::LAYER_NOT_DRAWN);
804 805
805 aura::Window* lock_background_container = 806 aura::Window* lock_background_container =
806 GetContainer(kShellWindowId_LockScreenBackgroundContainer); 807 GetContainer(kShellWindowId_LockScreenBackgroundContainer);
807 lock_background_container->AddChild(mouse_event_target_.get()); 808 lock_background_container->AddChild(mouse_event_target_.get());
808 mouse_event_target_->Show(); 809 mouse_event_target_->Show();
809 } 810 }
810 811
811 // Create Docked windows layout manager 812 // Create Docked windows layout manager
812 aura::Window* docked_container = GetContainer(kShellWindowId_DockedContainer); 813 aura::Window* docked_container = GetContainer(kShellWindowId_DockedContainer);
varkha 2016/04/21 17:46:55 Would it make sense to have WmWindow* docked_conta
sky 2016/04/21 18:03:04 Done.
813 docked_layout_manager_ = 814 docked_layout_manager_ = new DockedWindowLayoutManager(
814 new DockedWindowLayoutManager(docked_container, workspace_controller()); 815 wm::WmWindowAura::Get(docked_container), workspace_controller());
815 docked_container->SetLayoutManager(docked_layout_manager_); 816 wm::WmWindowAura::Get(docked_container)
817 ->SetLayoutManager(base::WrapUnique(docked_layout_manager_));
816 818
817 // Installs SnapLayoutManager to containers who set the 819 // Installs SnapLayoutManager to containers who set the
818 // |kSnapsChildrenToPhysicalPixelBoundary| property. 820 // |kSnapsChildrenToPhysicalPixelBoundary| property.
819 wm::InstallSnapLayoutManagerToContainers(root_window); 821 wm::InstallSnapLayoutManagerToContainers(root_window);
820 822
821 // Create Panel layout manager 823 // Create Panel layout manager
822 aura::Window* panel_container = GetContainer(kShellWindowId_PanelContainer); 824 aura::Window* panel_container = GetContainer(kShellWindowId_PanelContainer);
823 panel_layout_manager_ = new PanelLayoutManager(panel_container); 825 panel_layout_manager_ = new PanelLayoutManager(panel_container);
824 panel_container->SetLayoutManager(panel_layout_manager_); 826 panel_container->SetLayoutManager(panel_layout_manager_);
825 panel_container_handler_.reset(new PanelWindowEventHandler); 827 panel_container_handler_.reset(new PanelWindowEventHandler);
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 else 1086 else
1085 DisableTouchHudProjection(); 1087 DisableTouchHudProjection();
1086 } 1088 }
1087 1089
1088 RootWindowController* GetRootWindowController( 1090 RootWindowController* GetRootWindowController(
1089 const aura::Window* root_window) { 1091 const aura::Window* root_window) {
1090 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; 1092 return root_window ? GetRootWindowSettings(root_window)->controller : NULL;
1091 } 1093 }
1092 1094
1093 } // namespace ash 1095 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/shell.cc » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698