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

Unified Diff: ui/views/widget/native_widget_win.h

Issue 9254046: Custom frame UI for platform apps on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change DEFICA call sites Created 8 years, 10 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: ui/views/widget/native_widget_win.h
diff --git a/ui/views/widget/native_widget_win.h b/ui/views/widget/native_widget_win.h
index 3094cecb39e0acfd47b512c7cc7a81f240918c28..af67ba1d198e4480621f0ec62aa6fe19e05d3224 100644
--- a/ui/views/widget/native_widget_win.h
+++ b/ui/views/widget/native_widget_win.h
@@ -503,6 +503,10 @@ class VIEWS_EXPORT NativeWidgetWin : public ui::WindowImpl,
// frame windows.
void ResetWindowRegion(bool force);
+ // When removing the standard frame, tells the DWM how much glass we want on
+ // the edges. Currently hardcoded to 10px on all sides.
+ void UpdateDWMFrame();
+
// Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to
// prevent frame flicker. DefWindowProc handling can otherwise render the
// classic-look window title bar directly.
@@ -653,6 +657,8 @@ class VIEWS_EXPORT NativeWidgetWin : public ui::WindowImpl,
// Init time, before the Widget has created the NonClientView.
bool has_non_client_view_;
+ bool remove_standard_frame_;
+
DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
};

Powered by Google App Engine
This is Rietveld 408576698