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

Side by Side Diff: ash/root_window_controller.h

Issue 11418114: Add policy for ash launcher auto-hide behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed- 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 | « no previous file | ash/root_window_controller.cc » ('j') | chrome/app/policy/policy_templates.json » ('J')
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 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_
6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/system/user/login_status.h" 9 #include "ash/system/user/login_status.h"
10 #include "ash/wm/shelf_types.h" 10 #include "ash/wm/shelf_types.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void UpdateShelfVisibility(); 145 void UpdateShelfVisibility();
146 146
147 // Sets/gets the shelf auto-hide behavior. 147 // Sets/gets the shelf auto-hide behavior.
148 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); 148 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior);
149 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; 149 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const;
150 150
151 // Sets/gets the shelf alignemnt. 151 // Sets/gets the shelf alignemnt.
152 bool SetShelfAlignment(ShelfAlignment alignment); 152 bool SetShelfAlignment(ShelfAlignment alignment);
153 ShelfAlignment GetShelfAlignment(); 153 ShelfAlignment GetShelfAlignment();
154 154
155 // Get the shelf's auto hide status.
156 bool IsShelfAutoHideMenuHideChecked();
157 ShelfAutoHideBehavior GetToggledShelfAutoHideBehavior();
158
159 private: 155 private:
160 // Creates each of the special window containers that holds windows of various 156 // Creates each of the special window containers that holds windows of various
161 // types in the shell UI. 157 // types in the shell UI.
162 void CreateContainersInRootWindow(aura::RootWindow* root_window); 158 void CreateContainersInRootWindow(aura::RootWindow* root_window);
163 159
164 scoped_ptr<aura::RootWindow> root_window_; 160 scoped_ptr<aura::RootWindow> root_window_;
165 RootWindowLayoutManager* root_window_layout_; 161 RootWindowLayoutManager* root_window_layout_;
166 162
167 // Widget containing system tray. 163 // Widget containing system tray.
168 StatusAreaWidget* status_area_widget_; 164 StatusAreaWidget* status_area_widget_;
(...skipping 20 matching lines...) Expand all
189 scoped_ptr<ToplevelWindowEventHandler> modal_container_handler_; 185 scoped_ptr<ToplevelWindowEventHandler> modal_container_handler_;
190 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_; 186 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_;
191 187
192 DISALLOW_COPY_AND_ASSIGN(RootWindowController); 188 DISALLOW_COPY_AND_ASSIGN(RootWindowController);
193 }; 189 };
194 190
195 } // namespace internal 191 } // namespace internal
196 } // ash 192 } // ash
197 193
198 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ 194 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | chrome/app/policy/policy_templates.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698