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 UI_VIEWS_MUS_WINDOW_MANAGER_CONSTANTS_CONVERTERS_H_ | 5 #ifndef UI_VIEWS_MUS_WINDOW_MANAGER_CONSTANTS_CONVERTERS_H_ |
6 #define UI_VIEWS_MUS_WINDOW_MANAGER_CONSTANTS_CONVERTERS_H_ | 6 #define UI_VIEWS_MUS_WINDOW_MANAGER_CONSTANTS_CONVERTERS_H_ |
7 | 7 |
8 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" | 8 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" |
9 #include "ui/views/mus/mus_export.h" | 9 #include "ui/views/mus/mus_export.h" |
10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
11 | 11 |
12 namespace ui { | |
13 class Window; | |
14 } | |
15 | |
16 namespace mojo { | 12 namespace mojo { |
17 | 13 |
18 template <> | 14 template <> |
19 struct VIEWS_MUS_EXPORT | 15 struct VIEWS_MUS_EXPORT |
20 TypeConverter<ui::mojom::WindowType, views::Widget::InitParams::Type> { | 16 TypeConverter<ui::mojom::WindowType, views::Widget::InitParams::Type> { |
21 static ui::mojom::WindowType Convert(views::Widget::InitParams::Type type); | 17 static ui::mojom::WindowType Convert(views::Widget::InitParams::Type type); |
22 }; | 18 }; |
23 | 19 |
24 } // namespace mojo | 20 } // namespace mojo |
25 | 21 |
26 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONSTANTS_CONVERTERS_H_ | 22 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONSTANTS_CONVERTERS_H_ |
OLD | NEW |