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); |
}; |