| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_NATIVE_WIDGET_AURA_WIN_H_ |
| #define CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_NATIVE_WIDGET_AURA_WIN_H_ |
| |
| #include "base/basictypes.h" |
| #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
| |
| class BrowserFrame; |
| class BrowserView; |
| class ChromeNativeAppWindowViewsWin; |
| |
| namespace views { |
| class DesktopWindowTreeHost; |
| } |
| |
| namespace wm { |
| class VisibilityController; |
| } |
| |
| // AppWindowDesktopNativeWidgetAura is a DesktopNativeWidgetAura subclass that |
| // handles creating the right type of tree hosts for app windows on Windows. |
| class AppWindowDesktopNativeWidgetAuraWin |
| : public views::DesktopNativeWidgetAura { |
| public: |
| explicit AppWindowDesktopNativeWidgetAuraWin( |
| ChromeNativeAppWindowViewsWin* app_window); |
| |
| protected: |
| ~AppWindowDesktopNativeWidgetAuraWin() override; |
| |
| // Overridden from views::DesktopNativeWidgetAura: |
| void InitNativeWidget(const views::Widget::InitParams& params) override; |
| void Maximize() override; |
| void Minimize() override; |
| |
| private: |
| // Ownership managed by the views system. |
| ChromeNativeAppWindowViewsWin* app_window_; |
| |
| // Owned by superclass DesktopNativeWidgetAura. |
| views::DesktopWindowTreeHost* tree_host_; |
| |
| DISALLOW_COPY_AND_ASSIGN(AppWindowDesktopNativeWidgetAuraWin); |
| }; |
| |
| #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_NATIVE_WIDGET_AURA_WIN_H_ |