OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FRAME_DEFAULT_HEADER_PAINTER_H_ | 5 #ifndef ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ |
6 #define ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ | 6 #define ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/frame/header_painter.h" | 9 #include "ash/frame/header_painter.h" |
10 #include "base/compiler_specific.h" // override | 10 #include "base/compiler_specific.h" // override |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void LayoutLeftHeaderView(); | 77 void LayoutLeftHeaderView(); |
78 | 78 |
79 // Whether light caption images should be used. This is the case when the | 79 // Whether light caption images should be used. This is the case when the |
80 // background of the frame is dark. | 80 // background of the frame is dark. |
81 bool ShouldUseLightImages(); | 81 bool ShouldUseLightImages(); |
82 | 82 |
83 // Update all the images in the caption buttons. | 83 // Update all the images in the caption buttons. |
84 void UpdateAllButtonImages(); | 84 void UpdateAllButtonImages(); |
85 | 85 |
86 // Updates the size button's images. | 86 // Updates the size button's images. |
87 void UpdateSizeButtonImages(bool use_light_images); | 87 void UpdateSizeButtonImages(); |
88 | 88 |
89 // Returns the header bounds in the coordinates of |view_|. The header is | 89 // Returns the header bounds in the coordinates of |view_|. The header is |
90 // assumed to be positioned at the top left corner of |view_| and to have the | 90 // assumed to be positioned at the top left corner of |view_| and to have the |
91 // same width as |view_|. | 91 // same width as |view_|. |
92 gfx::Rect GetLocalBounds() const; | 92 gfx::Rect GetLocalBounds() const; |
93 | 93 |
94 // Returns the bounds for the title. | 94 // Returns the bounds for the title. |
95 gfx::Rect GetTitleBounds() const; | 95 gfx::Rect GetTitleBounds() const; |
96 | 96 |
97 // Returns whether the frame uses custom frame coloring. | 97 // Returns whether the frame uses custom frame coloring. |
(...skipping 17 matching lines...) Expand all Loading... |
115 bool initial_paint_; | 115 bool initial_paint_; |
116 | 116 |
117 scoped_ptr<gfx::SlideAnimation> activation_animation_; | 117 scoped_ptr<gfx::SlideAnimation> activation_animation_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); | 119 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace ash | 122 } // namespace ash |
123 | 123 |
124 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ | 124 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ |
OLD | NEW |