| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // the resize handle at the edge of the window can be hit. | 62 // the resize handle at the edge of the window can be hit. |
| 63 static const int kWorkspaceAreaVisibleInset; | 63 static const int kWorkspaceAreaVisibleInset; |
| 64 | 64 |
| 65 // When autohidden we extend the touch hit target onto the screen so that the | 65 // When autohidden we extend the touch hit target onto the screen so that the |
| 66 // user can drag the shelf out. | 66 // user can drag the shelf out. |
| 67 static const int kWorkspaceAreaAutoHideInset; | 67 static const int kWorkspaceAreaAutoHideInset; |
| 68 | 68 |
| 69 // Size of the shelf when auto-hidden. | 69 // Size of the shelf when auto-hidden. |
| 70 static const int kAutoHideSize; | 70 static const int kAutoHideSize; |
| 71 | 71 |
| 72 // The size of the shelf when shown (currently only used in alternate |
| 73 // settings see ash::switches::UseAlternateShelfLayout). |
| 74 static const int kShelfSize; |
| 75 |
| 72 explicit ShelfLayoutManager(ShelfWidget* shelf); | 76 explicit ShelfLayoutManager(ShelfWidget* shelf); |
| 73 virtual ~ShelfLayoutManager(); | 77 virtual ~ShelfLayoutManager(); |
| 74 | 78 |
| 75 // Sets the ShelfAutoHideBehavior. See enum description for details. | 79 // Sets the ShelfAutoHideBehavior. See enum description for details. |
| 76 void SetAutoHideBehavior(ShelfAutoHideBehavior behavior); | 80 void SetAutoHideBehavior(ShelfAutoHideBehavior behavior); |
| 77 ShelfAutoHideBehavior auto_hide_behavior() const { | 81 ShelfAutoHideBehavior auto_hide_behavior() const { |
| 78 return auto_hide_behavior_; | 82 return auto_hide_behavior_; |
| 79 } | 83 } |
| 80 | 84 |
| 81 // Sets the alignment. Returns true if the alignment is changed. Otherwise, | 85 // Sets the alignment. Returns true if the alignment is changed. Otherwise, |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 // The bounds of the keyboard. | 350 // The bounds of the keyboard. |
| 347 gfx::Rect keyboard_bounds_; | 351 gfx::Rect keyboard_bounds_; |
| 348 | 352 |
| 349 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 353 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 350 }; | 354 }; |
| 351 | 355 |
| 352 } // namespace internal | 356 } // namespace internal |
| 353 } // namespace ash | 357 } // namespace ash |
| 354 | 358 |
| 355 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 359 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |