| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/views/test/native_widget_factory.h" | |
| 6 | |
| 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" | |
| 10 | |
| 11 namespace views { | |
| 12 namespace test { | |
| 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 | |
| 23 NativeWidget* CreatePlatformDesktopNativeWidgetImpl( | |
| 24 const Widget::InitParams& init_params, | |
| 25 Widget* widget, | |
| 26 bool* destroyed) { | |
| 27 return WindowManagerConnection::Get()->CreateNativeWidgetMus( | |
| 28 std::map<std::string, std::vector<uint8_t>>(), init_params, widget); | |
| 29 } | |
| 30 | |
| 31 } // namespace test | |
| 32 } // namespace views | |
| OLD | NEW |