| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 : public ShellObserver, | 53 : public ShellObserver, |
| 54 public ::wm::ActivationChangeObserver, | 54 public ::wm::ActivationChangeObserver, |
| 55 public keyboard::KeyboardControllerObserver, | 55 public keyboard::KeyboardControllerObserver, |
| 56 public LockStateObserver, | 56 public LockStateObserver, |
| 57 public wm::WmSnapToPixelLayoutManager, | 57 public wm::WmSnapToPixelLayoutManager, |
| 58 public SessionObserver { | 58 public SessionObserver { |
| 59 public: | 59 public: |
| 60 ShelfLayoutManager(ShelfWidget* shelf_widget, Shelf* shelf); | 60 ShelfLayoutManager(ShelfWidget* shelf_widget, Shelf* shelf); |
| 61 ~ShelfLayoutManager() override; | 61 ~ShelfLayoutManager() override; |
| 62 | 62 |
| 63 // Called when the AppList status changes. |
| 64 void OnAppListIsActive(); |
| 65 |
| 63 bool updating_bounds() const { return updating_bounds_; } | 66 bool updating_bounds() const { return updating_bounds_; } |
| 64 | 67 |
| 65 // Clears internal data for shutdown process. | 68 // Clears internal data for shutdown process. |
| 66 void PrepareForShutdown(); | 69 void PrepareForShutdown(); |
| 67 | |
| 68 // Returns whether the shelf and its contents (shelf, status) are visible | 70 // Returns whether the shelf and its contents (shelf, status) are visible |
| 69 // on the screen. | 71 // on the screen. |
| 70 bool IsVisible() const; | 72 bool IsVisible() const; |
| 71 | 73 |
| 72 // Returns the ideal bounds of the shelf assuming it is visible. | 74 // Returns the ideal bounds of the shelf assuming it is visible. |
| 73 gfx::Rect GetIdealBounds(); | 75 gfx::Rect GetIdealBounds(); |
| 74 | 76 |
| 75 // Returns the preferred size of the shelf for the target visibility state. | 77 // Returns the preferred size of the shelf for the target visibility state. |
| 76 gfx::Size GetPreferredSize(); | 78 gfx::Size GetPreferredSize(); |
| 77 | 79 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 keyboard::KeyboardControllerObserver> | 367 keyboard::KeyboardControllerObserver> |
| 366 keyboard_observer_; | 368 keyboard_observer_; |
| 367 ScopedSessionObserver scoped_session_observer_; | 369 ScopedSessionObserver scoped_session_observer_; |
| 368 | 370 |
| 369 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 371 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 370 }; | 372 }; |
| 371 | 373 |
| 372 } // namespace ash | 374 } // namespace ash |
| 373 | 375 |
| 374 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 376 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |