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; | |
65 | 63 |
66 // views::View: | 64 // views::View: |
67 void Layout() override; | 65 void Layout() override; |
68 void OnPaint(gfx::Canvas* canvas) override; | 66 void OnPaint(gfx::Canvas* canvas) override; |
69 void ChildPreferredSizeChanged(views::View* child) override; | 67 void ChildPreferredSizeChanged(views::View* child) override; |
70 | 68 |
71 // ShellObserver: | 69 // ShellObserver: |
72 void OnOverviewModeStarting() override; | 70 void OnOverviewModeStarting() override; |
73 void OnOverviewModeEnded() override; | 71 void OnOverviewModeEnded() override; |
74 void OnMaximizeModeStarted() override; | 72 void OnMaximizeModeStarted() override; |
(...skipping 30 matching lines...) Expand all Loading... |
105 | 103 |
106 // Has this instance been set as the ImmersiveFullscreenControllerDelegate? | 104 // Has this instance been set as the ImmersiveFullscreenControllerDelegate? |
107 bool is_immersive_delegate_ = true; | 105 bool is_immersive_delegate_ = true; |
108 | 106 |
109 DISALLOW_COPY_AND_ASSIGN(HeaderView); | 107 DISALLOW_COPY_AND_ASSIGN(HeaderView); |
110 }; | 108 }; |
111 | 109 |
112 } // namespace ash | 110 } // namespace ash |
113 | 111 |
114 #endif // ASH_COMMON_FRAME_HEADER_VIEW_H_ | 112 #endif // ASH_COMMON_FRAME_HEADER_VIEW_H_ |
OLD | NEW |