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

Side by Side Diff: trunk/src/ash/root_window_controller.cc

Issue 14200034: Revert 194578 "Add ash SessionStateDelegate" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | Annotate | Revision Log
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 <vector> 7 #include <vector>
8 8
9 #include "ash/ash_constants.h" 9 #include "ash/ash_constants.h"
10 #include "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
11 #include "ash/desktop_background/desktop_background_widget_controller.h" 11 #include "ash/desktop_background/desktop_background_widget_controller.h"
12 #include "ash/display/display_controller.h" 12 #include "ash/display/display_controller.h"
13 #include "ash/display/display_manager.h" 13 #include "ash/display/display_manager.h"
14 #include "ash/focus_cycler.h" 14 #include "ash/focus_cycler.h"
15 #include "ash/session_state_delegate.h"
16 #include "ash/shelf/shelf_layout_manager.h" 15 #include "ash/shelf/shelf_layout_manager.h"
17 #include "ash/shelf/shelf_types.h" 16 #include "ash/shelf/shelf_types.h"
18 #include "ash/shelf/shelf_widget.h" 17 #include "ash/shelf/shelf_widget.h"
19 #include "ash/shell.h" 18 #include "ash/shell.h"
20 #include "ash/shell_delegate.h" 19 #include "ash/shell_delegate.h"
21 #include "ash/shell_factory.h" 20 #include "ash/shell_factory.h"
22 #include "ash/shell_window_ids.h" 21 #include "ash/shell_window_ids.h"
23 #include "ash/system/status_area_widget.h" 22 #include "ash/system/status_area_widget.h"
24 #include "ash/system/tray/system_tray_delegate.h" 23 #include "ash/system/tray/system_tray_delegate.h"
25 #include "ash/touch/touch_observer_hud.h" 24 #include "ash/touch/touch_observer_hud.h"
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 root_window_ == Shell::GetPrimaryRootWindow()) { 283 root_window_ == Shell::GetPrimaryRootWindow()) {
285 // Create Panel layout manager 284 // Create Panel layout manager
286 aura::Window* panel_container = GetContainer( 285 aura::Window* panel_container = GetContainer(
287 internal::kShellWindowId_PanelContainer); 286 internal::kShellWindowId_PanelContainer);
288 panel_layout_manager_ = 287 panel_layout_manager_ =
289 new internal::PanelLayoutManager(panel_container); 288 new internal::PanelLayoutManager(panel_container);
290 panel_container_handler_.reset( 289 panel_container_handler_.reset(
291 new ToplevelWindowEventHandler(panel_container)); 290 new ToplevelWindowEventHandler(panel_container));
292 panel_container->SetLayoutManager(panel_layout_manager_); 291 panel_container->SetLayoutManager(panel_layout_manager_);
293 } 292 }
294 if (Shell::GetInstance()->session_state_delegate()->HasActiveUser()) 293 if (Shell::GetInstance()->delegate()->IsUserLoggedIn())
295 shelf_->CreateLauncher(); 294 shelf_->CreateLauncher();
296 295
297 InitKeyboard(); 296 InitKeyboard();
298 } 297 }
299 298
300 void RootWindowController::CreateContainers() { 299 void RootWindowController::CreateContainers() {
301 CreateContainersInRootWindow(root_window_.get()); 300 CreateContainersInRootWindow(root_window_.get());
302 301
303 // Create touch observer HUD if needed. HUD should be created after the 302 // Create touch observer HUD if needed. HUD should be created after the
304 // containers have been created, so that its widget can be added to them. 303 // containers have been created, so that its widget can be added to them.
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 "OverlayContainer", 670 "OverlayContainer",
672 lock_screen_related_containers); 671 lock_screen_related_containers);
673 SetUsesScreenCoordinates(overlay_container); 672 SetUsesScreenCoordinates(overlay_container);
674 673
675 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, 674 CreateContainer(kShellWindowId_PowerButtonAnimationContainer,
676 "PowerButtonAnimationContainer", root_window) ; 675 "PowerButtonAnimationContainer", root_window) ;
677 } 676 }
678 677
679 } // namespace internal 678 } // namespace internal
680 } // namespace ash 679 } // namespace ash
OLDNEW
« no previous file with comments | « trunk/src/ash/desktop_background/desktop_background_view.cc ('k') | trunk/src/ash/root_window_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698