OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // Stops the auto hide timer and clears | 254 // Stops the auto hide timer and clears |
255 // |mouse_over_shelf_when_auto_hide_timer_started_|. | 255 // |mouse_over_shelf_when_auto_hide_timer_started_|. |
256 void StopAutoHideTimer(); | 256 void StopAutoHideTimer(); |
257 | 257 |
258 // Returns the bounds of an additional region which can trigger showing the | 258 // Returns the bounds of an additional region which can trigger showing the |
259 // shelf. This region exists to make it easier to trigger showing the shelf | 259 // shelf. This region exists to make it easier to trigger showing the shelf |
260 // when the shelf is auto hidden and the shelf is on the boundary between | 260 // when the shelf is auto hidden and the shelf is on the boundary between |
261 // two displays. | 261 // two displays. |
262 gfx::Rect GetAutoHideShowShelfRegionInScreen() const; | 262 gfx::Rect GetAutoHideShowShelfRegionInScreen() const; |
263 | 263 |
| 264 // Returns true if at least one window is visible. |
| 265 bool HasVisibleWindow() const; |
| 266 |
264 // Returns the AutoHideState. This value is determined from the shelf and | 267 // Returns the AutoHideState. This value is determined from the shelf and |
265 // tray. | 268 // tray. |
266 ShelfAutoHideState CalculateAutoHideState( | 269 ShelfAutoHideState CalculateAutoHideState( |
267 ShelfVisibilityState visibility_state) const; | 270 ShelfVisibilityState visibility_state) const; |
268 | 271 |
269 // Returns true if |window| is a descendant of the shelf. | 272 // Returns true if |window| is a descendant of the shelf. |
270 bool IsShelfWindow(WmWindow* window); | 273 bool IsShelfWindow(WmWindow* window); |
271 | 274 |
272 int GetWorkAreaInsets(const State& state, int size) const; | 275 int GetWorkAreaInsets(const State& state, int size) const; |
273 | 276 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 ScopedObserver<keyboard::KeyboardController, | 363 ScopedObserver<keyboard::KeyboardController, |
361 keyboard::KeyboardControllerObserver> | 364 keyboard::KeyboardControllerObserver> |
362 keyboard_observer_; | 365 keyboard_observer_; |
363 | 366 |
364 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 367 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
365 }; | 368 }; |
366 | 369 |
367 } // namespace ash | 370 } // namespace ash |
368 | 371 |
369 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 372 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
OLD | NEW |