1 // Copyright 2014 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 "chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.h" 6 7 #include "chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.h" 8 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views_win.h" 9 #include "ui/aura/window.h" 10 11 AppWindowDesktopNativeWidgetAuraWin::AppWindowDesktopNativeWidgetAuraWin( 12 ChromeNativeAppWindowViewsWin* app_window) 13 : views::DesktopNativeWidgetAura(app_window->widget()), 14 app_window_(app_window) { 15 GetNativeWindow()->SetName("AppWindowAura"); 16 } 17 18 AppWindowDesktopNativeWidgetAuraWin::~AppWindowDesktopNativeWidgetAuraWin() { 19 } 20 21 void AppWindowDesktopNativeWidgetAuraWin::InitNativeWidget( 22 const views::Widget::InitParams& params) { 23 views::Widget::InitParams modified_params = params; 24 modified_params.desktop_window_tree_host = 25 new AppWindowDesktopWindowTreeHostWin(app_window_, this); 26 DesktopNativeWidgetAura::InitNativeWidget(modified_params); 27 } 28