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

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

Issue 1707233002: Reduce the fullscreen window height by 1px on activation loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes to widget_unittest.cc Created 4 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
« no previous file with comments | « ui/views/widget/widget_interactive_uitest.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 4b7ab4179a0d2ff5e937d9ff4508ace27043c652..3f7b75278ac6fa40a18f8b03517767e59068c8a3 100644
--- a/ui/views/win/hwnd_message_handler.h
+++ b/ui/views/win/hwnd_message_handler.h
@@ -255,7 +255,10 @@ class VIEWS_EXPORT HWNDMessageHandler :
// Called after the WM_ACTIVATE message has been processed by the default
// windows procedure.
- void PostProcessActivateMessage(int activation_state, bool minimized);
+ void PostProcessActivateMessage(
+ int activation_state,
+ bool minimized,
+ HWND window_gaining_or_losing_activation);
// Enables disabled owner windows that may have been disabled due to this
// window's modality.
@@ -502,6 +505,11 @@ class VIEWS_EXPORT HWNDMessageHandler :
WPARAM w_param,
LPARAM l_param);
+ // Helper function for setting the bounds of the HWND. For more information
+ // please refer to the SetBounds() function.
+ void SetBoundsInternal(const gfx::Rect& bounds_in_pixels,
+ bool force_size_changed);
+
HWNDMessageHandlerDelegate* delegate_;
scoped_ptr<FullscreenHandler> fullscreen_handler_;
@@ -632,6 +640,10 @@ class VIEWS_EXPORT HWNDMessageHandler :
// Defaults to false.
bool left_button_down_on_caption_;
+ // Set to true if the window is a background fullscreen window, i.e a
+ // fullscreen window which lost activation. Defaults to false.
+ bool background_fullscreen_hack_;
+
// The WeakPtrFactories below must occur last in the class definition so they
// get destroyed last.
« no previous file with comments | « ui/views/widget/widget_interactive_uitest.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698