| 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 // Return the bounds available in the parent, taking into account the bounds | |
| 325 // of the keyboard if necessary. | |
| 326 gfx::Rect GetAvailableBounds() const; | |
| 327 | |
| 328 // Overridden from keyboard::KeyboardControllerObserver: | 324 // Overridden from keyboard::KeyboardControllerObserver: |
| 329 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE; | 325 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE; |
| 330 | 326 |
| 331 // Overridden from DockedWindowLayoutManagerObserver: | 327 // Overridden from DockedWindowLayoutManagerObserver: |
| 332 virtual void OnDockBoundsChanging( | 328 virtual void OnDockBoundsChanging( |
| 333 const gfx::Rect& dock_bounds, | 329 const gfx::Rect& dock_bounds, |
| 334 DockedWindowLayoutManagerObserver::Reason reason) OVERRIDE; | 330 DockedWindowLayoutManagerObserver::Reason reason) OVERRIDE; |
| 335 | 331 |
| 336 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from | 332 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from |
| 337 // our destructor. We avoid that as at the time we're deleted Shell is being | 333 // our destructor. We avoid that as at the time we're deleted Shell is being |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 | 403 |
| 408 // The show hide animation duration override or 0 for default. | 404 // The show hide animation duration override or 0 for default. |
| 409 int duration_override_in_ms_; | 405 int duration_override_in_ms_; |
| 410 | 406 |
| 411 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 407 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 412 }; | 408 }; |
| 413 | 409 |
| 414 } // namespace ash | 410 } // namespace ash |
| 415 | 411 |
| 416 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 412 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |