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

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: Move the fullscreen hacks to HWNDMessageHandler 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
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..0dc180677b8a54a2085d9cceadb707abb8e395d8 100644
--- a/ui/views/win/hwnd_message_handler.h
+++ b/ui/views/win/hwnd_message_handler.h
@@ -206,6 +206,16 @@ class VIEWS_EXPORT HWNDMessageHandler :
// Updates the window style to reflect whether it can be resized or maximized.
void SizeConstraintsChanged();
+ // Setter getter combination for a background fullscreen window, i.e a
sky 2016/02/19 22:30:50 You no longer need the setter/getter.
+ // fullscreen window which lost activation.
+ void set_background_fullscreen_hack(bool set_background_fullscreen) {
+ background_fullscreen_hack_ = set_background_fullscreen;
+ }
+
+ bool background_fullscreen_hack() const {
+ return background_fullscreen_hack_;
+ }
+
private:
typedef std::set<DWORD> TouchIDs;
@@ -255,7 +265,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.
@@ -632,6 +645,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.

Powered by Google App Engine
This is Rietveld 408576698