| 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/shell.h" | 5 #include "ash/shell.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/accelerators/focus_manager_factory.h" | 10 #include "ash/accelerators/focus_manager_factory.h" |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 void Shell::SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, | 726 void Shell::SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, |
| 727 aura::RootWindow* root_window) { | 727 aura::RootWindow* root_window) { |
| 728 GetRootWindowController(root_window)->SetShelfAutoHideBehavior(behavior); | 728 GetRootWindowController(root_window)->SetShelfAutoHideBehavior(behavior); |
| 729 } | 729 } |
| 730 | 730 |
| 731 ShelfAutoHideBehavior Shell::GetShelfAutoHideBehavior( | 731 ShelfAutoHideBehavior Shell::GetShelfAutoHideBehavior( |
| 732 aura::RootWindow* root_window) const { | 732 aura::RootWindow* root_window) const { |
| 733 return GetRootWindowController(root_window)->GetShelfAutoHideBehavior(); | 733 return GetRootWindowController(root_window)->GetShelfAutoHideBehavior(); |
| 734 } | 734 } |
| 735 | 735 |
| 736 bool Shell::IsShelfAutoHideMenuHideChecked(aura::RootWindow* root_window) { | |
| 737 return GetRootWindowController(root_window)->GetShelfAutoHideBehavior() == | |
| 738 ash::SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS; | |
| 739 } | |
| 740 | |
| 741 ShelfAutoHideBehavior Shell::GetToggledShelfAutoHideBehavior( | |
| 742 aura::RootWindow* root_window) { | |
| 743 return GetRootWindowController(root_window)-> | |
| 744 GetToggledShelfAutoHideBehavior(); | |
| 745 } | |
| 746 | |
| 747 void Shell::SetShelfAlignment(ShelfAlignment alignment, | 736 void Shell::SetShelfAlignment(ShelfAlignment alignment, |
| 748 aura::RootWindow* root_window) { | 737 aura::RootWindow* root_window) { |
| 749 if (GetRootWindowController(root_window)->SetShelfAlignment(alignment)) | 738 if (GetRootWindowController(root_window)->SetShelfAlignment(alignment)) |
| 750 FOR_EACH_OBSERVER(ShellObserver, observers_, OnShelfAlignmentChanged()); | 739 FOR_EACH_OBSERVER(ShellObserver, observers_, OnShelfAlignmentChanged()); |
| 751 } | 740 } |
| 752 | 741 |
| 753 ShelfAlignment Shell::GetShelfAlignment(aura::RootWindow* root_window) { | 742 ShelfAlignment Shell::GetShelfAlignment(aura::RootWindow* root_window) { |
| 754 return GetRootWindowController(root_window)->GetShelfAlignment(); | 743 return GetRootWindowController(root_window)->GetShelfAlignment(); |
| 755 } | 744 } |
| 756 | 745 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 | 893 |
| 905 bool Shell::CanAcceptEvents() { | 894 bool Shell::CanAcceptEvents() { |
| 906 return true; | 895 return true; |
| 907 } | 896 } |
| 908 | 897 |
| 909 ui::EventTarget* Shell::GetParentTarget() { | 898 ui::EventTarget* Shell::GetParentTarget() { |
| 910 return NULL; | 899 return NULL; |
| 911 } | 900 } |
| 912 | 901 |
| 913 } // namespace ash | 902 } // namespace ash |
| OLD | NEW |