| 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_SHELF_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // user can drag the shelf out. | 67 // user can drag the shelf out. |
| 68 static const int kWorkspaceAreaAutoHideInset; | 68 static const int kWorkspaceAreaAutoHideInset; |
| 69 | 69 |
| 70 // Size of the shelf when auto-hidden. | 70 // Size of the shelf when auto-hidden. |
| 71 static const int kAutoHideSize; | 71 static const int kAutoHideSize; |
| 72 | 72 |
| 73 // The size of the shelf when shown (currently only used in alternate | 73 // The size of the shelf when shown (currently only used in alternate |
| 74 // settings see ash::switches::UseAlternateShelfLayout). | 74 // settings see ash::switches::UseAlternateShelfLayout). |
| 75 static const int kShelfSize; | 75 static const int kShelfSize; |
| 76 | 76 |
| 77 // Returns the preferred size for the shelf (either kLauncherPreferredSize or |
| 78 // kShelfSize). |
| 79 static int GetPreferredShelfSize(); |
| 80 |
| 77 explicit ShelfLayoutManager(ShelfWidget* shelf); | 81 explicit ShelfLayoutManager(ShelfWidget* shelf); |
| 78 virtual ~ShelfLayoutManager(); | 82 virtual ~ShelfLayoutManager(); |
| 79 | 83 |
| 80 // Sets the ShelfAutoHideBehavior. See enum description for details. | 84 // Sets the ShelfAutoHideBehavior. See enum description for details. |
| 81 void SetAutoHideBehavior(ShelfAutoHideBehavior behavior); | 85 void SetAutoHideBehavior(ShelfAutoHideBehavior behavior); |
| 82 ShelfAutoHideBehavior auto_hide_behavior() const { | 86 ShelfAutoHideBehavior auto_hide_behavior() const { |
| 83 return auto_hide_behavior_; | 87 return auto_hide_behavior_; |
| 84 } | 88 } |
| 85 | 89 |
| 86 // Sets the alignment. Returns true if the alignment is changed. Otherwise, | 90 // Sets the alignment. Returns true if the alignment is changed. Otherwise, |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 // The bounds of the keyboard. | 358 // The bounds of the keyboard. |
| 355 gfx::Rect keyboard_bounds_; | 359 gfx::Rect keyboard_bounds_; |
| 356 | 360 |
| 357 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 361 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 358 }; | 362 }; |
| 359 | 363 |
| 360 } // namespace internal | 364 } // namespace internal |
| 361 } // namespace ash | 365 } // namespace ash |
| 362 | 366 |
| 363 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 367 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |