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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 67 | 67 |
| 68 // Paints the title bar, primarily the title string. | 68 // Paints the title bar, primarily the title string. |
| 69 void PaintTitleBar(gfx::Canvas* canvas); | 69 void PaintTitleBar(gfx::Canvas* canvas); |
| 70 | 70 |
| 71 // Paints the header/content separator. | 71 // Paints the header/content separator. |
| 72 void PaintHeaderContentSeparator(gfx::Canvas* canvas); | 72 void PaintHeaderContentSeparator(gfx::Canvas* canvas); |
| 73 | 73 |
| 74 // Layout the left header view. | 74 // Layout the left header view. |
| 75 void LayoutLeftHeaderView(); | 75 void LayoutLeftHeaderView(); |
| 76 | 76 |
| 77 // Whether light caption images should be used. This is the case when the | |
| 78 // background of the frame is dark. | |
|
pkotwicz
2015/02/17 18:56:42
Nit: "caption images" -> "caption button images"
| |
| 79 bool ShouldUseLightImages(); | |
| 80 | |
| 81 // Update all the images in the caption buttons. | |
| 82 void UpdateAllButtonImages(); | |
| 83 | |
| 77 // Updates the size button's images. | 84 // Updates the size button's images. |
| 78 void UpdateSizeButtonImages(); | 85 void UpdateSizeButtonImages(bool use_light_images); |
| 79 | 86 |
| 80 // Returns the header bounds in the coordinates of |view_|. The header is | 87 // 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 | 88 // assumed to be positioned at the top left corner of |view_| and to have the |
| 82 // same width as |view_|. | 89 // same width as |view_|. |
| 83 gfx::Rect GetLocalBounds() const; | 90 gfx::Rect GetLocalBounds() const; |
| 84 | 91 |
| 85 // Returns the bounds for the title. | 92 // Returns the bounds for the title. |
| 86 gfx::Rect GetTitleBounds() const; | 93 gfx::Rect GetTitleBounds() const; |
| 87 | 94 |
| 88 // Returns the frame color to use when |frame_| is inactive. | 95 // Returns the frame color to use when |frame_| is inactive. |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 106 bool initial_paint_; | 113 bool initial_paint_; |
| 107 | 114 |
| 108 scoped_ptr<gfx::SlideAnimation> activation_animation_; | 115 scoped_ptr<gfx::SlideAnimation> activation_animation_; |
| 109 | 116 |
| 110 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); | 117 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); |
| 111 }; | 118 }; |
| 112 | 119 |
| 113 } // namespace ash | 120 } // namespace ash |
| 114 | 121 |
| 115 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ | 122 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ |
| OLD | NEW |