| 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 #include "ui/views/test/native_widget_factory.h" | 5 #include "ui/views/test/native_widget_factory.h" |
| 6 | 6 |
| 7 #include "ui/views/mus/window_manager_connection.h" | 7 #include "ui/views/mus/window_manager_connection.h" |
| 8 #include "ui/views/test/test_platform_native_widget.h" |
| 9 #include "ui/views/widget/native_widget_aura.h" |
| 8 | 10 |
| 9 namespace views { | 11 namespace views { |
| 10 namespace test { | 12 namespace test { |
| 11 | 13 |
| 14 NativeWidget* CreatePlatformNativeWidgetImpl( |
| 15 const Widget::InitParams& init_params, |
| 16 Widget* widget, |
| 17 uint32_t type, |
| 18 bool* destroyed) { |
| 19 return new TestPlatformNativeWidget<NativeWidgetAura>( |
| 20 widget, type == kStubCapture, destroyed); |
| 21 } |
| 22 |
| 12 NativeWidget* CreatePlatformDesktopNativeWidgetImpl( | 23 NativeWidget* CreatePlatformDesktopNativeWidgetImpl( |
| 13 const Widget::InitParams& init_params, | 24 const Widget::InitParams& init_params, |
| 14 Widget* widget, | 25 Widget* widget, |
| 15 bool* destroyed) { | 26 bool* destroyed) { |
| 16 return WindowManagerConnection::Get()->CreateNativeWidgetMus( | 27 return WindowManagerConnection::Get()->CreateNativeWidgetMus( |
| 17 std::map<std::string, std::vector<uint8_t>>(), init_params, widget); | 28 std::map<std::string, std::vector<uint8_t>>(), init_params, widget); |
| 18 } | 29 } |
| 19 | 30 |
| 20 } // namespace test | 31 } // namespace test |
| 21 } // namespace views | 32 } // namespace views |
| OLD | NEW |