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 | 8 |
9 #include "ash/accelerators/focus_manager_factory.h" | 9 #include "ash/accelerators/focus_manager_factory.h" |
10 #include "ash/app_list/app_list.h" | 10 #include "ash/app_list/app_list.h" |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 } | 873 } |
874 | 874 |
875 void Shell::SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior) { | 875 void Shell::SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior) { |
876 shelf_->SetAutoHideBehavior(behavior); | 876 shelf_->SetAutoHideBehavior(behavior); |
877 } | 877 } |
878 | 878 |
879 ShelfAutoHideBehavior Shell::GetShelfAutoHideBehavior() const { | 879 ShelfAutoHideBehavior Shell::GetShelfAutoHideBehavior() const { |
880 return shelf_->auto_hide_behavior(); | 880 return shelf_->auto_hide_behavior(); |
881 } | 881 } |
882 | 882 |
| 883 void Shell::SetShelfAlignment(ShelfAlignment alignment) { |
| 884 shelf_->SetAlignment(alignment); |
| 885 } |
| 886 |
| 887 ShelfAlignment Shell::GetShelfAlignment() { |
| 888 return shelf_->alignment(); |
| 889 } |
| 890 |
883 int Shell::GetGridSize() const { | 891 int Shell::GetGridSize() const { |
884 return workspace_controller_->workspace_manager()->grid_size(); | 892 return workspace_controller_->workspace_manager()->grid_size(); |
885 } | 893 } |
886 | 894 |
887 bool Shell::IsInMaximizedMode() const { | 895 bool Shell::IsInMaximizedMode() const { |
888 return workspace_controller_->workspace_manager()->IsInMaximizedMode(); | 896 return workspace_controller_->workspace_manager()->IsInMaximizedMode(); |
889 } | 897 } |
890 | 898 |
891 //////////////////////////////////////////////////////////////////////////////// | 899 //////////////////////////////////////////////////////////////////////////////// |
892 // Shell, private: | 900 // Shell, private: |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 panel_container->SetLayoutManager(panel_layout_manager_); | 942 panel_container->SetLayoutManager(panel_layout_manager_); |
935 } | 943 } |
936 } | 944 } |
937 | 945 |
938 void Shell::DisableWorkspaceGridLayout() { | 946 void Shell::DisableWorkspaceGridLayout() { |
939 if (workspace_controller_.get()) | 947 if (workspace_controller_.get()) |
940 workspace_controller_->workspace_manager()->set_grid_size(0); | 948 workspace_controller_->workspace_manager()->set_grid_size(0); |
941 } | 949 } |
942 | 950 |
943 } // namespace ash | 951 } // namespace ash |
OLD | NEW |