| 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 ASH_WM_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_SHELF_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_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" |
| 11 #include "ui/aura/layout_manager.h" | 11 #include "ui/aura/layout_manager.h" |
| 12 #include "ash/ash_export.h" | 12 #include "ash/ash_export.h" |
| 13 #include "ui/gfx/compositor/layer_animation_observer.h" | 13 #include "ui/gfx/compositor/layer_animation_observer.h" |
| 14 #include "ui/gfx/insets.h" | 14 #include "ui/gfx/insets.h" |
| 15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 16 | 16 |
| 17 namespace views { | 17 namespace views { |
| 18 class Widget; | 18 class Widget; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace aura_shell { | 21 namespace ash { |
| 22 namespace internal { | 22 namespace internal { |
| 23 | 23 |
| 24 // ShelfLayoutManager is the layout manager responsible for the launcher and | 24 // ShelfLayoutManager is the layout manager responsible for the launcher and |
| 25 // status widgets. The launcher is given the total available width and told the | 25 // status widgets. The launcher is given the total available width and told the |
| 26 // width of the status area. This allows the launcher to draw the background and | 26 // width of the status area. This allows the launcher to draw the background and |
| 27 // layout to the status area. | 27 // layout to the status area. |
| 28 // To respond to bounds changes in the status area StatusAreaLayoutManager works | 28 // To respond to bounds changes in the status area StatusAreaLayoutManager works |
| 29 // closely with ShelfLayoutManager. | 29 // closely with ShelfLayoutManager. |
| 30 class ASH_EXPORT ShelfLayoutManager : public aura::LayoutManager, | 30 class ASH_EXPORT ShelfLayoutManager : public aura::LayoutManager, |
| 31 public ui::LayerAnimationObserver { | 31 public ui::LayerAnimationObserver { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // Max height needed. | 99 // Max height needed. |
| 100 int max_height_; | 100 int max_height_; |
| 101 | 101 |
| 102 views::Widget* launcher_; | 102 views::Widget* launcher_; |
| 103 views::Widget* status_; | 103 views::Widget* status_; |
| 104 | 104 |
| 105 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 105 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace internal | 108 } // namespace internal |
| 109 } // namespace aura_shell | 109 } // namespace ash |
| 110 | 110 |
| 111 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ | 111 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |