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/common/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 mojom::WindowStyle window_style); |
19 ~CustomFrameViewMus() override; | 20 ~CustomFrameViewMus() override; |
20 | 21 |
21 // CustomFrameViewAsh: | 22 // CustomFrameViewAsh: |
22 void OnPaint(gfx::Canvas* canvas) override; | 23 void OnPaint(gfx::Canvas* canvas) override; |
23 void PaintChildren(const ui::PaintContext& context) override; | 24 void PaintChildren(const ui::PaintContext& context) override; |
24 | 25 |
25 private: | 26 private: |
26 ui::PaintCache paint_cache_; | 27 ui::PaintCache paint_cache_; |
27 | 28 |
28 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewMus); | 29 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewMus); |
29 }; | 30 }; |
30 | 31 |
31 } // namespace mus | 32 } // namespace mus |
32 } // namespace ash | 33 } // namespace ash |
33 | 34 |
34 #endif // ASH_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_ | 35 #endif // ASH_MUS_FRAME_CUSTOM_FRAME_VIEW_MUS_H_ |
OLD | NEW |