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

Side by Side Diff: ash/shell.cc

Issue 10388036: Adds the option of aligning the launcher to the left or right. There (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 8 years, 7 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
« no previous file with comments | « ash/shell.h ('k') | ash/wm/shelf_auto_hide_behavior.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/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
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
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
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | ash/wm/shelf_auto_hide_behavior.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698