| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_ | 5 #ifndef ASH_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_ |
| 6 #define ASH_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_ | 6 #define ASH_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_ |
| 7 | 7 |
| 8 #include "ash/common/frame/custom_frame_view_ash.h" | 8 #include "ash/frame/custom_frame_view_ash.h" |
| 9 #include "ui/compositor/paint_cache.h" | 9 #include "ui/compositor/paint_cache.h" |
| 10 | 10 |
| 11 namespace ash { | 11 namespace ash { |
| 12 namespace mus { | 12 namespace mus { |
| 13 | 13 |
| 14 class CustomFrameViewMus : public CustomFrameViewAsh { | 14 class CustomFrameViewMus : public CustomFrameViewAsh { |
| 15 public: | 15 public: |
| 16 CustomFrameViewMus(views::Widget* widget, | 16 CustomFrameViewMus(views::Widget* widget, |
| 17 ImmersiveFullscreenControllerDelegate* immersive_delegate, | 17 ImmersiveFullscreenControllerDelegate* immersive_delegate, |
| 18 bool enable_immersive); | 18 bool enable_immersive); |
| 19 ~CustomFrameViewMus() override; | 19 ~CustomFrameViewMus() override; |
| 20 | 20 |
| 21 // CustomFrameViewAsh: | 21 // CustomFrameViewAsh: |
| 22 void OnPaint(gfx::Canvas* canvas) override; | 22 void OnPaint(gfx::Canvas* canvas) override; |
| 23 void PaintChildren(const ui::PaintContext& context) override; | 23 void PaintChildren(const ui::PaintContext& context) override; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 ui::PaintCache paint_cache_; | 26 ui::PaintCache paint_cache_; |
| 27 | 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewMus); | 28 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewMus); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace mus | 31 } // namespace mus |
| 32 } // namespace ash | 32 } // namespace ash |
| 33 | 33 |
| 34 #endif // ASH_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_ | 34 #endif // ASH_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_ |
| OLD | NEW |