| 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 CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/common/frame/header_painter.h" | 10 #include "ash/common/frame/header_painter.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void SchedulePaintForTitle() override; | 53 void SchedulePaintForTitle() override; |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 // gfx::AnimationDelegate override: | 56 // gfx::AnimationDelegate override: |
| 57 void AnimationProgressed(const gfx::Animation* animation) override; | 57 void AnimationProgressed(const gfx::Animation* animation) override; |
| 58 | 58 |
| 59 // Paints the frame image for the |active| state based on the current value of | 59 // Paints the frame image for the |active| state based on the current value of |
| 60 // the activation animation. | 60 // the activation animation. |
| 61 void PaintFrameImages(gfx::Canvas* canvas, bool active); | 61 void PaintFrameImages(gfx::Canvas* canvas, bool active); |
| 62 | 62 |
| 63 // Paints highlight around the edge of the header for restored windows. | |
| 64 void PaintHighlightForRestoredWindow(gfx::Canvas* canvas); | |
| 65 | |
| 66 // Paints the title bar, primarily the title string. | 63 // Paints the title bar, primarily the title string. |
| 67 void PaintTitleBar(gfx::Canvas* canvas); | 64 void PaintTitleBar(gfx::Canvas* canvas); |
| 68 | 65 |
| 69 // Updates the size and icons used for the minimize, restore, and close | 66 // Updates the size and icons used for the minimize, restore, and close |
| 70 // buttons. | 67 // buttons. |
| 71 void UpdateCaptionButtons(); | 68 void UpdateCaptionButtons(); |
| 72 | 69 |
| 73 // Returns bounds of the region in |view_| which is painted with the header | 70 // Returns bounds of the region in |view_| which is painted with the header |
| 74 // images. The region is assumed to start at the top left corner of |view_| | 71 // images. The region is assumed to start at the top left corner of |view_| |
| 75 // and to have the same width as |view_|. | 72 // and to have the same width as |view_|. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 98 | 95 |
| 99 // Whether the header should be painted as active. | 96 // Whether the header should be painted as active. |
| 100 Mode mode_; | 97 Mode mode_; |
| 101 | 98 |
| 102 std::unique_ptr<gfx::SlideAnimation> activation_animation_; | 99 std::unique_ptr<gfx::SlideAnimation> activation_animation_; |
| 103 | 100 |
| 104 DISALLOW_COPY_AND_ASSIGN(BrowserHeaderPainterAsh); | 101 DISALLOW_COPY_AND_ASSIGN(BrowserHeaderPainterAsh); |
| 105 }; | 102 }; |
| 106 | 103 |
| 107 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ | 104 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ |
| OLD | NEW |