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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; | 319 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; |
320 | 320 |
321 // Overridden from DockedWindowLayoutManagerObserver: | 321 // Overridden from DockedWindowLayoutManagerObserver: |
322 void OnDockBoundsChanging( | 322 void OnDockBoundsChanging( |
323 const gfx::Rect& dock_bounds, | 323 const gfx::Rect& dock_bounds, |
324 DockedWindowLayoutManagerObserver::Reason reason) override; | 324 DockedWindowLayoutManagerObserver::Reason reason) override; |
325 | 325 |
326 // Called when the LoginUI changes from visible to invisible. | 326 // Called when the LoginUI changes from visible to invisible. |
327 void UpdateShelfVisibilityAfterLoginUIChange(); | 327 void UpdateShelfVisibilityAfterLoginUIChange(); |
328 | 328 |
| 329 // Returns true when |alignment_| is locked. This can be caused by the screen |
| 330 // being locked, or when adding a user. Returns false when transitioning to a |
| 331 // user session, and while the session is active. |
| 332 bool IsAlignmentLocked() const; |
| 333 |
329 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from | 334 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from |
330 // our destructor. We avoid that as at the time we're deleted Shell is being | 335 // our destructor. We avoid that as at the time we're deleted Shell is being |
331 // deleted too. | 336 // deleted too. |
332 aura::Window* root_window_; | 337 aura::Window* root_window_; |
333 | 338 |
334 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling | 339 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling |
335 // UpdateBoundsAndOpacity() again from SetChildBounds(). | 340 // UpdateBoundsAndOpacity() again from SetChildBounds(). |
336 bool updating_bounds_; | 341 bool updating_bounds_; |
337 | 342 |
338 // See description above setter. | 343 // See description above setter. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 | 401 |
397 // The show hide animation duration override or 0 for default. | 402 // The show hide animation duration override or 0 for default. |
398 int duration_override_in_ms_; | 403 int duration_override_in_ms_; |
399 | 404 |
400 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 405 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
401 }; | 406 }; |
402 | 407 |
403 } // namespace ash | 408 } // namespace ash |
404 | 409 |
405 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 410 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
OLD | NEW |