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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // assumed to be positioned at the top left corner of |view_| and to have the | 81 // assumed to be positioned at the top left corner of |view_| and to have the |
82 // same width as |view_|. | 82 // same width as |view_|. |
83 gfx::Rect GetLocalBounds() const; | 83 gfx::Rect GetLocalBounds() const; |
84 | 84 |
85 // Returns the bounds for the title. | 85 // Returns the bounds for the title. |
86 gfx::Rect GetTitleBounds() const; | 86 gfx::Rect GetTitleBounds() const; |
87 | 87 |
88 // Returns whether the frame uses custom frame coloring. | 88 // Returns whether the frame uses custom frame coloring. |
89 bool UsesCustomFrameColors() const; | 89 bool UsesCustomFrameColors() const; |
90 | 90 |
91 // Returns the frame color to use when |frame_| is inactive. | |
92 SkColor GetInactiveFrameColor() const; | |
93 | |
94 views::Widget* frame_; | 91 views::Widget* frame_; |
95 views::View* view_; | 92 views::View* view_; |
96 views::View* left_header_view_; // May be NULL. | 93 views::View* left_header_view_; // May be NULL. |
97 int left_view_x_inset_; | 94 int left_view_x_inset_; |
98 SkColor active_frame_color_; | 95 SkColor active_frame_color_; |
99 SkColor inactive_frame_color_; | 96 SkColor inactive_frame_color_; |
100 FrameCaptionButtonContainerView* caption_button_container_; | 97 FrameCaptionButtonContainerView* caption_button_container_; |
101 | 98 |
102 // The height of the header including the header/content separator. | 99 // The height of the header including the header/content separator. |
103 int height_; | 100 int height_; |
104 | 101 |
105 // Whether the header should be painted as active. | 102 // Whether the header should be painted as active. |
106 Mode mode_; | 103 Mode mode_; |
107 | 104 |
108 // Whether the header is painted for the first time. | 105 // Whether the header is painted for the first time. |
109 bool initial_paint_; | 106 bool initial_paint_; |
110 | 107 |
111 scoped_ptr<gfx::SlideAnimation> activation_animation_; | 108 scoped_ptr<gfx::SlideAnimation> activation_animation_; |
112 | 109 |
113 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); | 110 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); |
114 }; | 111 }; |
115 | 112 |
116 } // namespace ash | 113 } // namespace ash |
117 | 114 |
118 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ | 115 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ |
OLD | NEW |