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_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 "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
10 #include "ash/launcher/launcher.h" | 10 #include "ash/launcher/launcher.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 return launcher_ ? launcher_->widget() : NULL; | 87 return launcher_ ? launcher_->widget() : NULL; |
88 } | 88 } |
89 views::Widget* status() { return status_; } | 89 views::Widget* status() { return status_; } |
90 | 90 |
91 bool in_layout() const { return in_layout_; } | 91 bool in_layout() const { return in_layout_; } |
92 | 92 |
93 // See description above field. | 93 // See description above field. |
94 int shelf_height() const { return shelf_height_; } | 94 int shelf_height() const { return shelf_height_; } |
95 | 95 |
96 // Returns whether the shelf and its contents (launcher, status) are visible | 96 // Returns whether the shelf and its contents (launcher, status) are visible |
97 // on the screen. | 97 // on the screen and have non-empty bounds. |
98 bool IsVisible() const; | 98 bool IsVisible() const; |
99 | 99 |
100 // Returns the bounds the specified window should be when maximized. | 100 // Returns the bounds the specified window should be when maximized. |
101 gfx::Rect GetMaximizedWindowBounds(aura::Window* window) const; | 101 gfx::Rect GetMaximizedWindowBounds(aura::Window* window) const; |
102 gfx::Rect GetUnmaximizedWorkAreaBounds(aura::Window* window) const; | 102 gfx::Rect GetUnmaximizedWorkAreaBounds(aura::Window* window) const; |
103 | 103 |
104 // The launcher is typically created after the layout manager. | 104 // The launcher is typically created after the layout manager. |
105 void SetLauncher(Launcher* launcher); | 105 void SetLauncher(Launcher* launcher); |
106 Launcher* launcher() { return launcher_; } | 106 Launcher* launcher() { return launcher_; } |
107 | 107 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // trigger showing the launcher. | 227 // trigger showing the launcher. |
228 scoped_ptr<AutoHideEventFilter> event_filter_; | 228 scoped_ptr<AutoHideEventFilter> event_filter_; |
229 | 229 |
230 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 230 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
231 }; | 231 }; |
232 | 232 |
233 } // namespace internal | 233 } // namespace internal |
234 } // namespace ash | 234 } // namespace ash |
235 | 235 |
236 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ | 236 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
OLD | NEW |