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

Side by Side Diff: ash/root_window_controller.cc

Issue 11418114: Add policy for ash launcher auto-hide behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 8 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 | « ash/root_window_controller.h ('k') | ash/shell.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/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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 } 479 }
480 480
481 bool RootWindowController::SetShelfAlignment(ShelfAlignment alignment) { 481 bool RootWindowController::SetShelfAlignment(ShelfAlignment alignment) {
482 return shelf_->SetAlignment(alignment); 482 return shelf_->SetAlignment(alignment);
483 } 483 }
484 484
485 ShelfAlignment RootWindowController::GetShelfAlignment() { 485 ShelfAlignment RootWindowController::GetShelfAlignment() {
486 return shelf_->alignment(); 486 return shelf_->alignment();
487 } 487 }
488 488
489 bool RootWindowController::IsShelfAutoHideMenuHideChecked() {
490 return GetShelfAutoHideBehavior() == ash::SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS;
491 }
492
493 ShelfAutoHideBehavior
494 RootWindowController::GetToggledShelfAutoHideBehavior() {
495 return IsShelfAutoHideMenuHideChecked() ?
496 ash::SHELF_AUTO_HIDE_BEHAVIOR_NEVER :
497 ash::SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS;
498 }
499
500 //////////////////////////////////////////////////////////////////////////////// 489 ////////////////////////////////////////////////////////////////////////////////
501 // RootWindowController, private: 490 // RootWindowController, private:
502 491
503 void RootWindowController::CreateContainersInRootWindow( 492 void RootWindowController::CreateContainersInRootWindow(
504 aura::RootWindow* root_window) { 493 aura::RootWindow* root_window) {
505 // These containers are just used by PowerButtonController to animate groups 494 // These containers are just used by PowerButtonController to animate groups
506 // of containers simultaneously without messing up the current transformations 495 // of containers simultaneously without messing up the current transformations
507 // on those containers. These are direct children of the root window; all of 496 // on those containers. These are direct children of the root window; all of
508 // the other containers are their children. 497 // the other containers are their children.
509 498
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 "OverlayContainer", 640 "OverlayContainer",
652 lock_screen_related_containers); 641 lock_screen_related_containers);
653 SetUsesScreenCoordinates(overlay_container); 642 SetUsesScreenCoordinates(overlay_container);
654 643
655 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, 644 CreateContainer(kShellWindowId_PowerButtonAnimationContainer,
656 "PowerButtonAnimationContainer", root_window) ; 645 "PowerButtonAnimationContainer", root_window) ;
657 } 646 }
658 647
659 } // namespace internal 648 } // namespace internal
660 } // namespace ash 649 } // namespace ash
OLDNEW
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698