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

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

Issue 2542533002: Don't check autohide taskbar for WS_EX_TOPMOST when we are querying the autohide state. (Closed)
Patch Set: Added comments Created 4 years 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 0eaa84fbd2904eea782b259422301f431b202ae4..a03b2bcc4b83bfcd1587e375674c7a0dab334d34 100644
--- a/ui/views/win/hwnd_message_handler.h
+++ b/ui/views/win/hwnd_message_handler.h
@@ -63,6 +63,10 @@ const int WM_NCUAHDRAWFRAME = 0xAF;
// WM_WINDOWPOSCHANGED won't be received.
const int WM_WINDOWSIZINGFINISHED = WM_USER;
+// Message used by the shell to send us notification messages related to the
+// taskbar.
+const int WM_APPBAR_NOTIFICATION_MESSAGE = WM_APP + 1;
+
// IsMsgHandled() and BEGIN_SAFE_MSG_MAP_EX are a modified version of
// BEGIN_MSG_MAP_EX. The main difference is it uses a WeakPtrFactory member
// (|weak_factory|) that is used in _ProcessWindowMessage() and changing
@@ -424,6 +428,7 @@ class VIEWS_EXPORT HWNDMessageHandler :
CR_MSG_WM_THEMECHANGED(OnThemeChanged)
CR_MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged)
CR_MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging)
+ CR_MESSAGE_HANDLER_EX(WM_APPBAR_NOTIFICATION_MESSAGE, OnAppBarMessage)
CR_END_MSG_MAP()
// Message Handlers.
@@ -482,6 +487,7 @@ class VIEWS_EXPORT HWNDMessageHandler :
void OnWindowPosChanging(WINDOWPOS* window_pos);
void OnWindowPosChanged(WINDOWPOS* window_pos);
LRESULT OnWindowSizingFinished(UINT message, WPARAM w_param, LPARAM l_param);
+ LRESULT OnAppBarMessage(UINT message, WPARAM w_param, LPARAM l_param);
// Receives Windows Session Change notifications.
void OnSessionChange(WPARAM status_code);

Powered by Google App Engine
This is Rietveld 408576698