| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_AURA_WM_SHELF_AURA_H_ | 5 #ifndef ASH_AURA_WM_SHELF_AURA_H_ |
| 6 #define ASH_AURA_WM_SHELF_AURA_H_ | 6 #define ASH_AURA_WM_SHELF_AURA_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/common/shelf/wm_shelf.h" | 9 #include "ash/common/shelf/wm_shelf.h" |
| 10 #include "ash/shelf/shelf_icon_observer.h" | 10 #include "ash/shelf/shelf_icon_observer.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 void ResetShelfLayoutManager(); | 38 void ResetShelfLayoutManager(); |
| 39 | 39 |
| 40 // WmShelf: | 40 // WmShelf: |
| 41 WmWindow* GetWindow() override; | 41 WmWindow* GetWindow() override; |
| 42 ShelfAlignment GetAlignment() const override; | 42 ShelfAlignment GetAlignment() const override; |
| 43 void SetAlignment(ShelfAlignment alignment) override; | 43 void SetAlignment(ShelfAlignment alignment) override; |
| 44 ShelfAutoHideBehavior GetAutoHideBehavior() const override; | 44 ShelfAutoHideBehavior GetAutoHideBehavior() const override; |
| 45 void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) override; | 45 void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) override; |
| 46 ShelfAutoHideState GetAutoHideState() const override; |
| 46 ShelfBackgroundType GetBackgroundType() const override; | 47 ShelfBackgroundType GetBackgroundType() const override; |
| 47 void UpdateVisibilityState() override; | 48 void UpdateVisibilityState() override; |
| 48 ShelfVisibilityState GetVisibilityState() const override; | 49 ShelfVisibilityState GetVisibilityState() const override; |
| 50 gfx::Rect GetUserWorkAreaBounds() const override; |
| 49 void UpdateIconPositionForWindow(WmWindow* window) override; | 51 void UpdateIconPositionForWindow(WmWindow* window) override; |
| 50 gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window) override; | 52 gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window) override; |
| 51 void AddObserver(WmShelfObserver* observer) override; | 53 void AddObserver(WmShelfObserver* observer) override; |
| 52 void RemoveObserver(WmShelfObserver* observer) override; | 54 void RemoveObserver(WmShelfObserver* observer) override; |
| 53 | 55 |
| 54 // ShelfLayoutManagerObserver: | 56 // ShelfLayoutManagerObserver: |
| 55 void WillDeleteShelfLayoutManager() override; | 57 void WillDeleteShelfLayoutManager() override; |
| 58 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override; |
| 56 void OnBackgroundUpdated(ShelfBackgroundType background_type, | 59 void OnBackgroundUpdated(ShelfBackgroundType background_type, |
| 57 BackgroundAnimatorChangeType change_type) override; | 60 BackgroundAnimatorChangeType change_type) override; |
| 58 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; | 61 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; |
| 59 | 62 |
| 60 // ShelfIconObserver: | 63 // ShelfIconObserver: |
| 61 void OnShelfIconPositionsChanged() override; | 64 void OnShelfIconPositionsChanged() override; |
| 62 | 65 |
| 63 // May be null during login. | 66 // May be null during login and during initialization of a secondary display. |
| 64 Shelf* shelf_ = nullptr; | 67 Shelf* shelf_ = nullptr; |
| 65 | 68 |
| 66 // Cached separately because it may be destroyed before |shelf_|. | 69 // Cached separately because it may be destroyed before |shelf_|. |
| 67 ShelfLayoutManager* shelf_layout_manager_ = nullptr; | 70 ShelfLayoutManager* shelf_layout_manager_ = nullptr; |
| 68 | 71 |
| 69 base::ObserverList<WmShelfObserver> observers_; | 72 base::ObserverList<WmShelfObserver> observers_; |
| 70 | 73 |
| 71 DISALLOW_COPY_AND_ASSIGN(WmShelfAura); | 74 DISALLOW_COPY_AND_ASSIGN(WmShelfAura); |
| 72 }; | 75 }; |
| 73 | 76 |
| 74 } // namespace ash | 77 } // namespace ash |
| 75 | 78 |
| 76 #endif // ASH_AURA_WM_SHELF_AURA_H_ | 79 #endif // ASH_AURA_WM_SHELF_AURA_H_ |
| OLD | NEW |