Chromium Code Reviews| Index: chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.h |
| diff --git a/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.h b/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4815b2260943500b2872fc3c06f610140f5f277f |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.h |
| @@ -0,0 +1,42 @@ |
| +// 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_WINDOW_TREE_HOST_WIN_H_ |
| +#define CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |
| + |
| +#include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" |
| + |
| +namespace views { |
| +class DesktopNativeWidgetAura; |
| +} |
| + |
| +class ChromeNativeAppWindowViewsWin; |
| + |
| +// AppWindowDesktopWindowTreeHostWin handles update the glass of Windows |
|
tapted
2014/04/03 19:40:24
nit: `handles updates to the glass`?
sky
2014/04/03 19:43:56
nit: fix 'handles update'. Maybe you meant 'handle
benwells
2014/04/04 06:50:43
Done.
benwells
2014/04/04 06:50:43
Done.
|
| +// app frames. It is used for all desktop app windows on Windows, but is |
| +// only actively doing anything when a glass window frame is being used. |
| +class AppWindowDesktopWindowTreeHostWin |
| + : public views::DesktopWindowTreeHostWin { |
| + public: |
| + AppWindowDesktopWindowTreeHostWin( |
| + ChromeNativeAppWindowViewsWin* app_window, |
| + views::DesktopNativeWidgetAura* desktop_native_widget_aura); |
| + virtual ~AppWindowDesktopWindowTreeHostWin(); |
| + |
| + private: |
| + // Overridden from DesktopWindowTreeHostWin: |
| + virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE; |
| + virtual void HandleFrameChanged() OVERRIDE; |
| + virtual void PostHandleMSG(UINT message, |
| + WPARAM w_param, |
| + LPARAM l_param) OVERRIDE; |
| + |
| + void UpdateDWMFrame(); |
|
sky
2014/04/03 19:43:56
Description?
benwells
2014/04/04 06:50:43
Done.
|
| + |
| + ChromeNativeAppWindowViewsWin* app_window_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AppWindowDesktopWindowTreeHostWin); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |