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