Chromium Code Reviews| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 void AddObserver(ShelfObserver* observer); | 128 void AddObserver(ShelfObserver* observer); |
| 129 void RemoveObserver(ShelfObserver* observer); | 129 void RemoveObserver(ShelfObserver* observer); |
| 130 | 130 |
| 131 void NotifyShelfIconPositionsChanged(); | 131 void NotifyShelfIconPositionsChanged(); |
| 132 StatusAreaWidget* GetStatusAreaWidget() const; | 132 StatusAreaWidget* GetStatusAreaWidget() const; |
| 133 | 133 |
| 134 void SetVirtualKeyboardBoundsForTesting(const gfx::Rect& bounds); | 134 void SetVirtualKeyboardBoundsForTesting(const gfx::Rect& bounds); |
| 135 ShelfLockingManager* GetShelfLockingManagerForTesting(); | 135 ShelfLockingManager* GetShelfLockingManagerForTesting(); |
| 136 ShelfView* GetShelfViewForTesting(); | 136 ShelfView* GetShelfViewForTesting(); |
| 137 | 137 |
| 138 // Notifies ShelfLayoutManager that the app list is active in order to | |
|
vadimt
2017/05/26 01:27:56
You either call it NotifyXXX and keep the comment
newcomer
2017/05/26 17:11:27
Done.
| |
| 139 // restrict the background behavior. | |
| 140 void OnAppListIsActive(bool hideBackground); | |
| 141 | |
| 138 protected: | 142 protected: |
| 139 // ShelfLayoutManagerObserver: | 143 // ShelfLayoutManagerObserver: |
| 140 void WillDeleteShelfLayoutManager() override; | 144 void WillDeleteShelfLayoutManager() override; |
| 141 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; | 145 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; |
| 142 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override; | 146 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override; |
| 143 void OnBackgroundUpdated(ShelfBackgroundType background_type, | 147 void OnBackgroundUpdated(ShelfBackgroundType background_type, |
| 144 AnimationChangeType change_type) override; | 148 AnimationChangeType change_type) override; |
| 145 | 149 |
| 146 private: | 150 private: |
| 147 class AutoHideEventHandler; | 151 class AutoHideEventHandler; |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 169 // Forwards touch gestures on a bezel sensor to the shelf. | 173 // Forwards touch gestures on a bezel sensor to the shelf. |
| 170 // TODO(mash): Facilitate simliar functionality in mash: crbug.com/636647 | 174 // TODO(mash): Facilitate simliar functionality in mash: crbug.com/636647 |
| 171 std::unique_ptr<ShelfBezelEventHandler> bezel_event_handler_; | 175 std::unique_ptr<ShelfBezelEventHandler> bezel_event_handler_; |
| 172 | 176 |
| 173 DISALLOW_COPY_AND_ASSIGN(Shelf); | 177 DISALLOW_COPY_AND_ASSIGN(Shelf); |
| 174 }; | 178 }; |
| 175 | 179 |
| 176 } // namespace ash | 180 } // namespace ash |
| 177 | 181 |
| 178 #endif // ASH_SHELF_SHELF_H_ | 182 #endif // ASH_SHELF_SHELF_H_ |
| OLD | NEW |