| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ |
| 6 #define UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ | 6 #define UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 bool in_layout() const { return in_layout_; } | 33 bool in_layout() const { return in_layout_; } |
| 34 | 34 |
| 35 // Stops any animations and sets the bounds of the launcher and status | 35 // Stops any animations and sets the bounds of the launcher and status |
| 36 // widgets. | 36 // widgets. |
| 37 void LayoutShelf(); | 37 void LayoutShelf(); |
| 38 | 38 |
| 39 // Sets the visbility of the shelf to |visible|. | 39 // Sets the visbility of the shelf to |visible|. |
| 40 void SetVisible(bool visible); | 40 void SetVisible(bool visible); |
| 41 | 41 |
| 42 gfx::Rect GetLauncherBounds() const; |
| 43 |
| 42 // Overridden from aura::LayoutManager: | 44 // Overridden from aura::LayoutManager: |
| 43 virtual void OnWindowResized() OVERRIDE; | 45 virtual void OnWindowResized() OVERRIDE; |
| 44 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; | 46 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; |
| 45 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; | 47 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; |
| 46 virtual void OnChildWindowVisibilityChanged(aura::Window* child, | 48 virtual void OnChildWindowVisibilityChanged(aura::Window* child, |
| 47 bool visible) OVERRIDE; | 49 bool visible) OVERRIDE; |
| 48 virtual void SetChildBounds(aura::Window* child, | 50 virtual void SetChildBounds(aura::Window* child, |
| 49 const gfx::Rect& requested_bounds) OVERRIDE; | 51 const gfx::Rect& requested_bounds) OVERRIDE; |
| 50 | 52 |
| 51 private: | 53 private: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 views::Widget* launcher_; | 94 views::Widget* launcher_; |
| 93 views::Widget* status_; | 95 views::Widget* status_; |
| 94 | 96 |
| 95 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 97 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 96 }; | 98 }; |
| 97 | 99 |
| 98 } // namespace internal | 100 } // namespace internal |
| 99 } // namespace aura_shell | 101 } // namespace aura_shell |
| 100 | 102 |
| 101 #endif // UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ | 103 #endif // UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |