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

Side by Side Diff: ash/root_window_controller.cc

Issue 11830008: ash/immersive mode: Hide the launcher when entering immersive mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: window property Created 7 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
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_switches.h" 9 #include "ash/ash_switches.h"
10 #include "ash/desktop_background/desktop_background_widget_controller.h" 10 #include "ash/desktop_background/desktop_background_widget_controller.h"
(...skipping 13 matching lines...) Expand all
24 #include "ash/wm/panel_window_event_filter.h" 24 #include "ash/wm/panel_window_event_filter.h"
25 #include "ash/wm/property_util.h" 25 #include "ash/wm/property_util.h"
26 #include "ash/wm/root_window_layout_manager.h" 26 #include "ash/wm/root_window_layout_manager.h"
27 #include "ash/wm/screen_dimmer.h" 27 #include "ash/wm/screen_dimmer.h"
28 #include "ash/wm/shelf_layout_manager.h" 28 #include "ash/wm/shelf_layout_manager.h"
29 #include "ash/wm/status_area_layout_manager.h" 29 #include "ash/wm/status_area_layout_manager.h"
30 #include "ash/wm/system_background_controller.h" 30 #include "ash/wm/system_background_controller.h"
31 #include "ash/wm/system_modal_container_layout_manager.h" 31 #include "ash/wm/system_modal_container_layout_manager.h"
32 #include "ash/wm/toplevel_window_event_handler.h" 32 #include "ash/wm/toplevel_window_event_handler.h"
33 #include "ash/wm/window_properties.h" 33 #include "ash/wm/window_properties.h"
34 #include "ash/wm/workspace/workspace.h"
34 #include "ash/wm/workspace_controller.h" 35 #include "ash/wm/workspace_controller.h"
35 #include "base/command_line.h" 36 #include "base/command_line.h"
36 #include "base/time.h" 37 #include "base/time.h"
37 #include "ui/aura/client/activation_client.h" 38 #include "ui/aura/client/activation_client.h"
38 #include "ui/aura/client/aura_constants.h" 39 #include "ui/aura/client/aura_constants.h"
39 #include "ui/aura/client/capture_client.h" 40 #include "ui/aura/client/capture_client.h"
40 #include "ui/aura/client/focus_client.h" 41 #include "ui/aura/client/focus_client.h"
41 #include "ui/aura/client/tooltip_client.h" 42 #include "ui/aura/client/tooltip_client.h"
42 #include "ui/aura/root_window.h" 43 #include "ui/aura/root_window.h"
43 #include "ui/aura/window.h" 44 #include "ui/aura/window.h"
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 } 506 }
506 507
507 bool RootWindowController::SetShelfAlignment(ShelfAlignment alignment) { 508 bool RootWindowController::SetShelfAlignment(ShelfAlignment alignment) {
508 return shelf_->SetAlignment(alignment); 509 return shelf_->SetAlignment(alignment);
509 } 510 }
510 511
511 ShelfAlignment RootWindowController::GetShelfAlignment() { 512 ShelfAlignment RootWindowController::GetShelfAlignment() {
512 return shelf_->GetAlignment(); 513 return shelf_->GetAlignment();
513 } 514 }
514 515
516 bool RootWindowController::IsImmersiveMode() const {
517 return workspace_controller_->GetActiveWorkspace()->IsImmersiveMode();
518 }
519
515 //////////////////////////////////////////////////////////////////////////////// 520 ////////////////////////////////////////////////////////////////////////////////
516 // RootWindowController, private: 521 // RootWindowController, private:
517 522
518 void RootWindowController::CreateContainersInRootWindow( 523 void RootWindowController::CreateContainersInRootWindow(
519 aura::RootWindow* root_window) { 524 aura::RootWindow* root_window) {
520 // These containers are just used by PowerButtonController to animate groups 525 // These containers are just used by PowerButtonController to animate groups
521 // of containers simultaneously without messing up the current transformations 526 // of containers simultaneously without messing up the current transformations
522 // on those containers. These are direct children of the root window; all of 527 // on those containers. These are direct children of the root window; all of
523 // the other containers are their children. 528 // the other containers are their children.
524 529
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 "OverlayContainer", 671 "OverlayContainer",
667 lock_screen_related_containers); 672 lock_screen_related_containers);
668 SetUsesScreenCoordinates(overlay_container); 673 SetUsesScreenCoordinates(overlay_container);
669 674
670 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, 675 CreateContainer(kShellWindowId_PowerButtonAnimationContainer,
671 "PowerButtonAnimationContainer", root_window) ; 676 "PowerButtonAnimationContainer", root_window) ;
672 } 677 }
673 678
674 } // namespace internal 679 } // namespace internal
675 } // namespace ash 680 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698