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 #ifndef ASH_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 245 |
246 const ScreenAsh* screen() { return screen_; } | 246 const ScreenAsh* screen() { return screen_; } |
247 | 247 |
248 // Force the shelf to query for it's current visibility state. | 248 // Force the shelf to query for it's current visibility state. |
249 void UpdateShelfVisibility(); | 249 void UpdateShelfVisibility(); |
250 | 250 |
251 // Sets/gets the shelf auto-hide behavior. | 251 // Sets/gets the shelf auto-hide behavior. |
252 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); | 252 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); |
253 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; | 253 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; |
254 | 254 |
| 255 void SetShelfAlignment(ShelfAlignment alignment); |
| 256 ShelfAlignment GetShelfAlignment(); |
| 257 |
255 // TODO(sky): don't expose this! | 258 // TODO(sky): don't expose this! |
256 internal::ShelfLayoutManager* shelf() const { return shelf_; } | 259 internal::ShelfLayoutManager* shelf() const { return shelf_; } |
257 | 260 |
258 SystemTray* tray() const { return tray_.get(); } | 261 SystemTray* tray() const { return tray_.get(); } |
259 | 262 |
260 // Returns the size of the grid. | 263 // Returns the size of the grid. |
261 int GetGridSize() const; | 264 int GetGridSize() const; |
262 | 265 |
263 // Returns true if in maximized or fullscreen mode. | 266 // Returns true if in maximized or fullscreen mode. |
264 bool IsInMaximizedMode() const; | 267 bool IsInMaximizedMode() const; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 384 |
382 // Used by ash/shell. | 385 // Used by ash/shell. |
383 content::BrowserContext* browser_context_; | 386 content::BrowserContext* browser_context_; |
384 | 387 |
385 DISALLOW_COPY_AND_ASSIGN(Shell); | 388 DISALLOW_COPY_AND_ASSIGN(Shell); |
386 }; | 389 }; |
387 | 390 |
388 } // namespace ash | 391 } // namespace ash |
389 | 392 |
390 #endif // ASH_SHELL_H_ | 393 #endif // ASH_SHELL_H_ |
OLD | NEW |