| 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_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| 6 #define ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ | 6 #define ASH_COMMON_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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 ShelfBackgroundType GetShelfBackgroundType() const; | 183 ShelfBackgroundType GetShelfBackgroundType() const; |
| 184 | 184 |
| 185 // Set the height of the ChromeVox panel, which takes away space from the | 185 // Set the height of the ChromeVox panel, which takes away space from the |
| 186 // available work area from the top of the screen. | 186 // available work area from the top of the screen. |
| 187 void SetChromeVoxPanelHeight(int height); | 187 void SetChromeVoxPanelHeight(int height); |
| 188 | 188 |
| 189 private: | 189 private: |
| 190 class UpdateShelfObserver; | 190 class UpdateShelfObserver; |
| 191 friend class PanelLayoutManagerTest; | 191 friend class PanelLayoutManagerTest; |
| 192 friend class ShelfLayoutManagerTest; | 192 friend class ShelfLayoutManagerTest; |
| 193 friend class WebNotificationTrayTest; |
| 193 | 194 |
| 194 struct TargetBounds { | 195 struct TargetBounds { |
| 195 TargetBounds(); | 196 TargetBounds(); |
| 196 ~TargetBounds(); | 197 ~TargetBounds(); |
| 197 | 198 |
| 198 float opacity; | 199 float opacity; |
| 199 float status_opacity; | 200 float status_opacity; |
| 200 gfx::Rect shelf_bounds_in_root; | 201 gfx::Rect shelf_bounds_in_root; |
| 201 gfx::Rect shelf_bounds_in_shelf; | 202 gfx::Rect shelf_bounds_in_shelf; |
| 202 gfx::Rect status_bounds_in_shelf; | 203 gfx::Rect status_bounds_in_shelf; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 // The flag to enforce invisible shelf (as in MD-experiemntal). | 372 // The flag to enforce invisible shelf (as in MD-experiemntal). |
| 372 // TODO(oshima): Remove this when MD immersive is launched. | 373 // TODO(oshima): Remove this when MD immersive is launched. |
| 373 bool invisible_auto_hide_shelf_ = false; | 374 bool invisible_auto_hide_shelf_ = false; |
| 374 | 375 |
| 375 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 376 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 376 }; | 377 }; |
| 377 | 378 |
| 378 } // namespace ash | 379 } // namespace ash |
| 379 | 380 |
| 380 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ | 381 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |