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

Unified Diff: ui/views/win/hwnd_message_handler.h

Issue 484963002: Fix a long standing painting problem seen in the tabstrip on Windows Desktop Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review comments Created 6 years, 4 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
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.h
diff --git a/ui/views/win/hwnd_message_handler.h b/ui/views/win/hwnd_message_handler.h
index 4109599dc601d6147aa4aef692b4c881cd413caa..03680b03127a60e119e8239e901a87684f1f8258 100644
--- a/ui/views/win/hwnd_message_handler.h
+++ b/ui/views/win/hwnd_message_handler.h
@@ -203,6 +203,8 @@ class VIEWS_EXPORT HWNDMessageHandler :
use_system_default_icon_ = use_system_default_icon;
}
+ void SetFullscreen(bool fullscreen);
+
private:
typedef std::set<DWORD> TouchIDs;
@@ -483,6 +485,9 @@ class VIEWS_EXPORT HWNDMessageHandler :
int message_time,
LPARAM l_param);
+ // Provides functionality to transition a frame to DWM.
+ void PerformDwmTransition();
+
HWNDMessageHandlerDelegate* delegate_;
scoped_ptr<FullscreenHandler> fullscreen_handler_;
@@ -612,6 +617,14 @@ class VIEWS_EXPORT HWNDMessageHandler :
// HandleMouseEventInternal function as to why this is needed.
long last_mouse_hwheel_time_;
+ // On Windows Vista and beyond, if we are transitioning from custom frame
+ // to Aero(glass) we delay setting the DWM related properties in full
+ // screen mode as DWM is not supported in full screen windows. We perform
+ // the DWM related operations when the window comes out of fullscreen mode.
+ // This member variable is set to true if the window is transitioning to
+ // glass. Defaults to false.
+ bool dwm_transition_desired_;
+
DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
};
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698