OLD | NEW |
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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 } | 478 } |
479 | 479 |
480 bool RootWindowController::SetShelfAlignment(ShelfAlignment alignment) { | 480 bool RootWindowController::SetShelfAlignment(ShelfAlignment alignment) { |
481 return shelf_->SetAlignment(alignment); | 481 return shelf_->SetAlignment(alignment); |
482 } | 482 } |
483 | 483 |
484 ShelfAlignment RootWindowController::GetShelfAlignment() { | 484 ShelfAlignment RootWindowController::GetShelfAlignment() { |
485 return shelf_->alignment(); | 485 return shelf_->alignment(); |
486 } | 486 } |
487 | 487 |
488 bool RootWindowController::IsShelfAutoHideMenuHideChecked() { | |
489 return GetShelfAutoHideBehavior() == ash::SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS; | |
490 } | |
491 | |
492 ShelfAutoHideBehavior | |
493 RootWindowController::GetToggledShelfAutoHideBehavior() { | |
494 return IsShelfAutoHideMenuHideChecked() ? | |
495 ash::SHELF_AUTO_HIDE_BEHAVIOR_NEVER : | |
496 ash::SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS; | |
497 } | |
498 | |
499 //////////////////////////////////////////////////////////////////////////////// | 488 //////////////////////////////////////////////////////////////////////////////// |
500 // RootWindowController, private: | 489 // RootWindowController, private: |
501 | 490 |
502 void RootWindowController::CreateContainersInRootWindow( | 491 void RootWindowController::CreateContainersInRootWindow( |
503 aura::RootWindow* root_window) { | 492 aura::RootWindow* root_window) { |
504 // These containers are just used by PowerButtonController to animate groups | 493 // These containers are just used by PowerButtonController to animate groups |
505 // of containers simultaneously without messing up the current transformations | 494 // of containers simultaneously without messing up the current transformations |
506 // on those containers. These are direct children of the root window; all of | 495 // on those containers. These are direct children of the root window; all of |
507 // the other containers are their children. | 496 // the other containers are their children. |
508 | 497 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 "OverlayContainer", | 635 "OverlayContainer", |
647 lock_screen_related_containers); | 636 lock_screen_related_containers); |
648 SetUsesScreenCoordinates(overlay_container); | 637 SetUsesScreenCoordinates(overlay_container); |
649 | 638 |
650 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, | 639 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, |
651 "PowerButtonAnimationContainer", root_window) ; | 640 "PowerButtonAnimationContainer", root_window) ; |
652 } | 641 } |
653 | 642 |
654 } // namespace internal | 643 } // namespace internal |
655 } // namespace ash | 644 } // namespace ash |
OLD | NEW |