Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_WIDGET_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_WIDGET_H_ |
| 6 #define ASH_COMMON_SHELF_SHELF_WIDGET_H_ | 6 #define ASH_COMMON_SHELF_SHELF_WIDGET_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 public: | 39 public: |
| 40 ShelfWidget(WmWindow* shelf_container, WmShelf* wm_shelf); | 40 ShelfWidget(WmWindow* shelf_container, WmShelf* wm_shelf); |
| 41 ~ShelfWidget() override; | 41 ~ShelfWidget() override; |
| 42 | 42 |
| 43 void CreateStatusAreaWidget(WmWindow* status_container); | 43 void CreateStatusAreaWidget(WmWindow* status_container); |
| 44 | 44 |
| 45 void OnShelfAlignmentChanged(); | 45 void OnShelfAlignmentChanged(); |
| 46 | 46 |
| 47 // Sets the shelf's background type. | 47 // Sets the shelf's background type. |
| 48 void SetPaintsBackground(ShelfBackgroundType background_type, | 48 void SetPaintsBackground(ShelfBackgroundType background_type, |
| 49 BackgroundAnimatorChangeType change_type); | 49 gfx::AnimationChangeType change_type); |
|
James Cook
2017/02/08 00:31:28
#include for this?
or you could use enum class wh
bruthig
2017/02/10 18:49:10
Neat, I didn't know you could forward declare enum
| |
| 50 ShelfBackgroundType GetBackgroundType() const; | 50 ShelfBackgroundType GetBackgroundType() const; |
| 51 | 51 |
| 52 // Hide the shelf behind a black bar during e.g. a user transition when |hide| | 52 // Hide the shelf behind a black bar during e.g. a user transition when |hide| |
| 53 // is true. The |animation_time_ms| will be used as animation duration. | 53 // is true. The |animation_time_ms| will be used as animation duration. |
| 54 void HideShelfBehindBlackBar(bool hide, int animation_time_ms); | 54 void HideShelfBehindBlackBar(bool hide, int animation_time_ms); |
| 55 bool IsShelfHiddenBehindBlackBar() const; | 55 bool IsShelfHiddenBehindBlackBar() const; |
| 56 | 56 |
| 57 ShelfLayoutManager* shelf_layout_manager() { return shelf_layout_manager_; } | 57 ShelfLayoutManager* shelf_layout_manager() { return shelf_layout_manager_; } |
| 58 StatusAreaWidget* status_area_widget() const { return status_area_widget_; } | 58 StatusAreaWidget* status_area_widget() const { return status_area_widget_; } |
| 59 | 59 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 ShelfView* shelf_view_; | 120 ShelfView* shelf_view_; |
| 121 ShelfBackgroundAnimator background_animator_; | 121 ShelfBackgroundAnimator background_animator_; |
| 122 bool activating_as_fallback_; | 122 bool activating_as_fallback_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(ShelfWidget); | 124 DISALLOW_COPY_AND_ASSIGN(ShelfWidget); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace ash | 127 } // namespace ash |
| 128 | 128 |
| 129 #endif // ASH_COMMON_SHELF_SHELF_WIDGET_H_ | 129 #endif // ASH_COMMON_SHELF_SHELF_WIDGET_H_ |
| OLD | NEW |