Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Side by Side Diff: ui/views/test/native_widget_factory_mus.cc

Issue 2488393003: Changes views_aura_mus_unittests to create DesktopNativeWidgetAura (Closed)
Patch Set: remove this and fix mac Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/test/native_widget_factory_desktop.cc ('k') | ui/views/test/platform_test_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « ui/views/test/native_widget_factory_desktop.cc ('k') | ui/views/test/platform_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698