| 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_SHELF_SHELF_H_ | 5 #ifndef ASH_SHELF_SHELF_H_ |
| 6 #define ASH_SHELF_SHELF_H_ | 6 #define ASH_SHELF_SHELF_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 void AddObserver(ShelfObserver* observer); | 127 void AddObserver(ShelfObserver* observer); |
| 128 void RemoveObserver(ShelfObserver* observer); | 128 void RemoveObserver(ShelfObserver* observer); |
| 129 | 129 |
| 130 void NotifyShelfIconPositionsChanged(); | 130 void NotifyShelfIconPositionsChanged(); |
| 131 StatusAreaWidget* GetStatusAreaWidget() const; | 131 StatusAreaWidget* GetStatusAreaWidget() const; |
| 132 | 132 |
| 133 void SetVirtualKeyboardBoundsForTesting(const gfx::Rect& bounds); | 133 void SetVirtualKeyboardBoundsForTesting(const gfx::Rect& bounds); |
| 134 ShelfLockingManager* GetShelfLockingManagerForTesting(); | 134 ShelfLockingManager* GetShelfLockingManagerForTesting(); |
| 135 ShelfView* GetShelfViewForTesting(); | 135 ShelfView* GetShelfViewForTesting(); |
| 136 | 136 |
| 137 // Called when the app list is active. |
| 138 void OnAppListIsActive(bool is_active); |
| 139 |
| 137 protected: | 140 protected: |
| 138 // ShelfLayoutManagerObserver: | 141 // ShelfLayoutManagerObserver: |
| 139 void WillDeleteShelfLayoutManager() override; | 142 void WillDeleteShelfLayoutManager() override; |
| 140 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; | 143 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; |
| 141 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override; | 144 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override; |
| 142 void OnBackgroundUpdated(ShelfBackgroundType background_type, | 145 void OnBackgroundUpdated(ShelfBackgroundType background_type, |
| 143 AnimationChangeType change_type) override; | 146 AnimationChangeType change_type) override; |
| 144 | 147 |
| 145 private: | 148 private: |
| 146 class AutoHideEventHandler; | 149 class AutoHideEventHandler; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 168 // Forwards touch gestures on a bezel sensor to the shelf. | 171 // Forwards touch gestures on a bezel sensor to the shelf. |
| 169 // TODO(mash): Facilitate simliar functionality in mash: crbug.com/636647 | 172 // TODO(mash): Facilitate simliar functionality in mash: crbug.com/636647 |
| 170 std::unique_ptr<ShelfBezelEventHandler> bezel_event_handler_; | 173 std::unique_ptr<ShelfBezelEventHandler> bezel_event_handler_; |
| 171 | 174 |
| 172 DISALLOW_COPY_AND_ASSIGN(Shelf); | 175 DISALLOW_COPY_AND_ASSIGN(Shelf); |
| 173 }; | 176 }; |
| 174 | 177 |
| 175 } // namespace ash | 178 } // namespace ash |
| 176 | 179 |
| 177 #endif // ASH_SHELF_SHELF_H_ | 180 #endif // ASH_SHELF_SHELF_H_ |
| OLD | NEW |