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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // Returns the AutoHideState. This value is determined from the shelf and | 314 // Returns the AutoHideState. This value is determined from the shelf and |
315 // tray. | 315 // tray. |
316 ShelfAutoHideState CalculateAutoHideState( | 316 ShelfAutoHideState CalculateAutoHideState( |
317 ShelfVisibilityState visibility_state) const; | 317 ShelfVisibilityState visibility_state) const; |
318 | 318 |
319 // Returns true if |window| is a descendant of the shelf. | 319 // Returns true if |window| is a descendant of the shelf. |
320 bool IsShelfWindow(aura::Window* window); | 320 bool IsShelfWindow(aura::Window* window); |
321 | 321 |
322 int GetWorkAreaSize(const State& state, int size) const; | 322 int GetWorkAreaSize(const State& state, int size) const; |
323 | 323 |
| 324 // Returns true if the shelf should be forced to be visible. |
| 325 bool IsShelfForcedToBeVisible() const; |
| 326 |
324 // Return the bounds available in the parent, taking into account the bounds | 327 // Return the bounds available in the parent, taking into account the bounds |
325 // of the keyboard if necessary. | 328 // of the keyboard if necessary. |
326 gfx::Rect GetAvailableBounds() const; | 329 gfx::Rect GetAvailableBounds() const; |
327 | 330 |
328 // Overridden from keyboard::KeyboardControllerObserver: | 331 // Overridden from keyboard::KeyboardControllerObserver: |
329 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE; | 332 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE; |
330 | 333 |
331 // Overridden from DockedWindowLayoutManagerObserver: | 334 // Overridden from DockedWindowLayoutManagerObserver: |
332 virtual void OnDockBoundsChanging( | 335 virtual void OnDockBoundsChanging( |
333 const gfx::Rect& dock_bounds, | 336 const gfx::Rect& dock_bounds, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 | 410 |
408 // The show hide animation duration override or 0 for default. | 411 // The show hide animation duration override or 0 for default. |
409 int duration_override_in_ms_; | 412 int duration_override_in_ms_; |
410 | 413 |
411 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 414 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
412 }; | 415 }; |
413 | 416 |
414 } // namespace ash | 417 } // namespace ash |
415 | 418 |
416 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 419 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
OLD | NEW |