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

Unified Diff: chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.h

Issue 213743017: Remove title and icon from chrome apps native style title bars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed leak in test Created 6 years, 8 months 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 side-by-side diff with in-line comments
Download patch
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..3763b4c748b7e03902acd9a7e043b0ae462ee227
--- /dev/null
+++ b/chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.h
@@ -0,0 +1,44 @@
+// 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 updating the glass of app frames on
+// Windows. 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;
+
+ // Updates the glass frame area by calling the DwmExtendFrameIntoClientArea
+ // Windows function.
+ void UpdateDWMFrame();
+
+ ChromeNativeAppWindowViewsWin* app_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppWindowDesktopWindowTreeHostWin);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_DESKTOP_WINDOW_TREE_HOST_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698