Chromium Code Reviews| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 void UpdateSizeButtonImages(); | 78 void UpdateSizeButtonImages(); | 
| 79 | 79 | 
| 80 // Returns the header bounds in the coordinates of |view_|. The header is | 80 // Returns the header bounds in the coordinates of |view_|. The header is | 
| 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 has any custom frame coloring. | |
| 
 
pkotwicz
2015/02/12 02:04:52
Nit: I think that UsesCustomFrameColors() is a sli
 
benwells
2015/02/12 02:36:10
Done.
 
 | |
| 89 bool HasCustomFrameColors() const; | |
| 90 | |
| 88 // Returns the frame color to use when |frame_| is inactive. | 91 // Returns the frame color to use when |frame_| is inactive. | 
| 89 SkColor GetInactiveFrameColor() const; | 92 SkColor GetInactiveFrameColor() const; | 
| 90 | 93 | 
| 91 views::Widget* frame_; | 94 views::Widget* frame_; | 
| 92 views::View* view_; | 95 views::View* view_; | 
| 93 views::View* left_header_view_; // May be NULL. | 96 views::View* left_header_view_; // May be NULL. | 
| 94 int left_view_x_inset_; | 97 int left_view_x_inset_; | 
| 95 SkColor active_frame_color_; | 98 SkColor active_frame_color_; | 
| 96 SkColor inactive_frame_color_; | 99 SkColor inactive_frame_color_; | 
| 97 FrameCaptionButtonContainerView* caption_button_container_; | 100 FrameCaptionButtonContainerView* caption_button_container_; | 
| 98 | 101 | 
| 99 // The height of the header including the header/content separator. | 102 // The height of the header including the header/content separator. | 
| 100 int height_; | 103 int height_; | 
| 101 | 104 | 
| 102 // Whether the header should be painted as active. | 105 // Whether the header should be painted as active. | 
| 103 Mode mode_; | 106 Mode mode_; | 
| 104 | 107 | 
| 105 // Whether the header is painted for the first time. | 108 // Whether the header is painted for the first time. | 
| 106 bool initial_paint_; | 109 bool initial_paint_; | 
| 107 | 110 | 
| 108 scoped_ptr<gfx::SlideAnimation> activation_animation_; | 111 scoped_ptr<gfx::SlideAnimation> activation_animation_; | 
| 109 | 112 | 
| 110 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); | 113 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); | 
| 111 }; | 114 }; | 
| 112 | 115 | 
| 113 } // namespace ash | 116 } // namespace ash | 
| 114 | 117 | 
| 115 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ | 118 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ | 
| OLD | NEW |