| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MASH_WM_FRAME_DEFAULT_HEADER_PAINTER_H_ | 5 #ifndef ASH_MUS_FRAME_DEFAULT_HEADER_PAINTER_H_ |
| 6 #define MASH_WM_FRAME_DEFAULT_HEADER_PAINTER_H_ | 6 #define ASH_MUS_FRAME_DEFAULT_HEADER_PAINTER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/mus/frame/header_painter.h" |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "mash/wm/frame/header_painter.h" | |
| 12 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
| 13 #include "ui/gfx/animation/animation_delegate.h" | 13 #include "ui/gfx/animation/animation_delegate.h" |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 class ImageSkia; | 16 class ImageSkia; |
| 17 class Rect; | 17 class Rect; |
| 18 class SlideAnimation; | 18 class SlideAnimation; |
| 19 } | 19 } |
| 20 namespace views { | 20 namespace views { |
| 21 class View; | 21 class View; |
| 22 class Widget; | 22 class Widget; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace mash { | 25 namespace ash { |
| 26 namespace wm { | 26 namespace mus { |
| 27 | 27 |
| 28 class FrameCaptionButtonContainerView; | 28 class FrameCaptionButtonContainerView; |
| 29 | 29 |
| 30 // Helper class for painting the default window header. | 30 // Helper class for painting the default window header. |
| 31 class DefaultHeaderPainter : public HeaderPainter, | 31 class DefaultHeaderPainter : public HeaderPainter, |
| 32 public gfx::AnimationDelegate { | 32 public gfx::AnimationDelegate { |
| 33 public: | 33 public: |
| 34 DefaultHeaderPainter(); | 34 DefaultHeaderPainter(); |
| 35 ~DefaultHeaderPainter() override; | 35 ~DefaultHeaderPainter() override; |
| 36 | 36 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 Mode mode_; | 104 Mode mode_; |
| 105 | 105 |
| 106 // Whether the header is painted for the first time. | 106 // Whether the header is painted for the first time. |
| 107 bool initial_paint_; | 107 bool initial_paint_; |
| 108 | 108 |
| 109 std::unique_ptr<gfx::SlideAnimation> activation_animation_; | 109 std::unique_ptr<gfx::SlideAnimation> activation_animation_; |
| 110 | 110 |
| 111 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); | 111 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace wm | 114 } // namespace mus |
| 115 } // namespace mash | 115 } // namespace ash |
| 116 | 116 |
| 117 #endif // MASH_WM_FRAME_DEFAULT_HEADER_PAINTER_H_ | 117 #endif // ASH_MUS_FRAME_DEFAULT_HEADER_PAINTER_H_ |
| OLD | NEW |