Chromium Code Reviews| 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 "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/launcher/launcher.h" | 9 #include "ash/launcher/launcher.h" |
| 10 #include "ash/shelf/background_animator.h" | 10 #include "ash/shelf/background_animator.h" |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 273 // of the keyboard if necessary. | 273 // of the keyboard if necessary. |
| 274 gfx::Rect GetAvailableBounds() const; | 274 gfx::Rect GetAvailableBounds() const; |
| 275 | 275 |
| 276 // Overridden from keyboard::KeyboardControllerObserver: | 276 // Overridden from keyboard::KeyboardControllerObserver: |
| 277 virtual void OnKeyboardBoundsChanging( | 277 virtual void OnKeyboardBoundsChanging( |
| 278 const gfx::Rect& keyboard_bounds) OVERRIDE; | 278 const gfx::Rect& keyboard_bounds) OVERRIDE; |
| 279 | 279 |
| 280 // Generates insets for inward edge based on the current shelf alignment. | 280 // Generates insets for inward edge based on the current shelf alignment. |
| 281 gfx::Insets GetInsetsForAlignment(int distance) const; | 281 gfx::Insets GetInsetsForAlignment(int distance) const; |
| 282 | 282 |
| 283 // Tests if currently in immersive mode. | |
| 284 bool IsInImmersiveMode() const; | |
|
James Cook
2013/05/22 12:04:22
ash/ has no knowledge of immersive mode. That's a
rharrison
2013/05/22 20:20:02
Done.
| |
| 285 | |
| 283 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from | 286 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from |
| 284 // our destructor. We avoid that as at the time we're deleted Shell is being | 287 // our destructor. We avoid that as at the time we're deleted Shell is being |
| 285 // deleted too. | 288 // deleted too. |
| 286 aura::RootWindow* root_window_; | 289 aura::RootWindow* root_window_; |
| 287 | 290 |
| 288 // True when inside LayoutShelf method. Used to prevent calling LayoutShelf | 291 // True when inside LayoutShelf method. Used to prevent calling LayoutShelf |
| 289 // again from SetChildBounds(). | 292 // again from SetChildBounds(). |
| 290 bool in_layout_; | 293 bool in_layout_; |
| 291 | 294 |
| 292 // See description above setter. | 295 // See description above setter. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 336 // The bounds of the keyboard. | 339 // The bounds of the keyboard. |
| 337 gfx::Rect keyboard_bounds_; | 340 gfx::Rect keyboard_bounds_; |
| 338 | 341 |
| 339 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 342 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 340 }; | 343 }; |
| 341 | 344 |
| 342 } // namespace internal | 345 } // namespace internal |
| 343 } // namespace ash | 346 } // namespace ash |
| 344 | 347 |
| 345 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 348 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |