| 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_COMMON_FRAME_DEFAULT_HEADER_PAINTER_H_ | 5 #ifndef ASH_COMMON_FRAME_DEFAULT_HEADER_PAINTER_H_ |
| 6 #define ASH_COMMON_FRAME_DEFAULT_HEADER_PAINTER_H_ | 6 #define ASH_COMMON_FRAME_DEFAULT_HEADER_PAINTER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 int GetHeaderHeightForPainting() const override; | 48 int GetHeaderHeightForPainting() const override; |
| 49 void SetHeaderHeightForPainting(int height) override; | 49 void SetHeaderHeightForPainting(int height) override; |
| 50 void SchedulePaintForTitle() override; | 50 void SchedulePaintForTitle() override; |
| 51 | 51 |
| 52 // Sets the left header view for the header. Passing NULL removes the view. | 52 // Sets the left header view for the header. Passing NULL removes the view. |
| 53 void UpdateLeftHeaderView(views::View* left_header_view); | 53 void UpdateLeftHeaderView(views::View* left_header_view); |
| 54 | 54 |
| 55 // Sets the active and inactive frame colors. Note the inactive frame color | 55 // Sets the active and inactive frame colors. Note the inactive frame color |
| 56 // will have some transparency added when the frame is drawn. | 56 // will have some transparency added when the frame is drawn. |
| 57 void SetFrameColors(SkColor active_frame_color, SkColor inactive_frame_color); | 57 void SetFrameColors(SkColor active_frame_color, SkColor inactive_frame_color); |
| 58 SkColor GetActiveFrameColor() const; |
| 59 SkColor GetInactiveFrameColor() const; |
| 58 | 60 |
| 59 private: | 61 private: |
| 60 FRIEND_TEST_ALL_PREFIXES(DefaultHeaderPainterTest, TitleIconAlignment); | 62 FRIEND_TEST_ALL_PREFIXES(DefaultHeaderPainterTest, TitleIconAlignment); |
| 61 FRIEND_TEST_ALL_PREFIXES(DefaultHeaderPainterTest, LightIcons); | 63 FRIEND_TEST_ALL_PREFIXES(DefaultHeaderPainterTest, LightIcons); |
| 62 | 64 |
| 63 // gfx::AnimationDelegate override: | 65 // gfx::AnimationDelegate override: |
| 64 void AnimationProgressed(const gfx::Animation* animation) override; | 66 void AnimationProgressed(const gfx::Animation* animation) override; |
| 65 | 67 |
| 66 // Paints highlight around the edge of the header for inactive restored | 68 // Paints highlight around the edge of the header for inactive restored |
| 67 // windows. | 69 // windows. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 bool initial_paint_; | 113 bool initial_paint_; |
| 112 | 114 |
| 113 std::unique_ptr<gfx::SlideAnimation> activation_animation_; | 115 std::unique_ptr<gfx::SlideAnimation> activation_animation_; |
| 114 | 116 |
| 115 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); | 117 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 } // namespace ash | 120 } // namespace ash |
| 119 | 121 |
| 120 #endif // ASH_COMMON_FRAME_DEFAULT_HEADER_PAINTER_H_ | 122 #endif // ASH_COMMON_FRAME_DEFAULT_HEADER_PAINTER_H_ |
| OLD | NEW |