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_COMMON_FRAME_HEADER_VIEW_H_ | 5 #ifndef ASH_COMMON_FRAME_HEADER_VIEW_H_ |
6 #define ASH_COMMON_FRAME_HEADER_VIEW_H_ | 6 #define ASH_COMMON_FRAME_HEADER_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 int GetPreferredHeight() const; | 53 int GetPreferredHeight() const; |
54 | 54 |
55 // Returns the view's minimum width. | 55 // Returns the view's minimum width. |
56 int GetMinimumWidth() const; | 56 int GetMinimumWidth() const; |
57 | 57 |
58 void UpdateAvatarIcon(); | 58 void UpdateAvatarIcon(); |
59 | 59 |
60 void SizeConstraintsChanged(); | 60 void SizeConstraintsChanged(); |
61 | 61 |
62 void SetFrameColors(SkColor active_frame_color, SkColor inactive_frame_color); | 62 void SetFrameColors(SkColor active_frame_color, SkColor inactive_frame_color); |
| 63 SkColor GetActiveFrameColor() const; |
| 64 SkColor GetInactiveFrameColor() const; |
63 | 65 |
64 // views::View: | 66 // views::View: |
65 void Layout() override; | 67 void Layout() override; |
66 void OnPaint(gfx::Canvas* canvas) override; | 68 void OnPaint(gfx::Canvas* canvas) override; |
67 void ChildPreferredSizeChanged(views::View* child) override; | 69 void ChildPreferredSizeChanged(views::View* child) override; |
68 | 70 |
69 // ShellObserver: | 71 // ShellObserver: |
70 void OnOverviewModeStarting() override; | 72 void OnOverviewModeStarting() override; |
71 void OnOverviewModeEnded() override; | 73 void OnOverviewModeEnded() override; |
72 void OnMaximizeModeStarted() override; | 74 void OnMaximizeModeStarted() override; |
(...skipping 30 matching lines...) Expand all Loading... |
103 | 105 |
104 // Has this instance been set as the ImmersiveFullscreenControllerDelegate? | 106 // Has this instance been set as the ImmersiveFullscreenControllerDelegate? |
105 bool is_immersive_delegate_ = true; | 107 bool is_immersive_delegate_ = true; |
106 | 108 |
107 DISALLOW_COPY_AND_ASSIGN(HeaderView); | 109 DISALLOW_COPY_AND_ASSIGN(HeaderView); |
108 }; | 110 }; |
109 | 111 |
110 } // namespace ash | 112 } // namespace ash |
111 | 113 |
112 #endif // ASH_COMMON_FRAME_HEADER_VIEW_H_ | 114 #endif // ASH_COMMON_FRAME_HEADER_VIEW_H_ |
OLD | NEW |