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

Side by Side 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: Revert changes to hwnd_message_handler.cc and add 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to 300 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to
301 // prevent frame flicker. DefWindowProc handling can otherwise render the 301 // prevent frame flicker. DefWindowProc handling can otherwise render the
302 // classic-look window title bar directly. 302 // classic-look window title bar directly.
303 LRESULT DefWindowProcWithRedrawLock(UINT message, 303 LRESULT DefWindowProcWithRedrawLock(UINT message,
304 WPARAM w_param, 304 WPARAM w_param,
305 LPARAM l_param); 305 LPARAM l_param);
306 306
307 // Lock or unlock the window from being able to redraw itself in response to 307 // Lock or unlock the window from being able to redraw itself in response to
308 // updates to its invalid region. 308 // updates to its invalid region.
309 class ScopedRedrawLock; 309 class ScopedRedrawLock;
310 void LockUpdates(bool force); 310 void LockUpdates();
311 void UnlockUpdates(bool force); 311 void UnlockUpdates();
312 312
313 // Stops ignoring SetWindowPos() requests (see below). 313 // Stops ignoring SetWindowPos() requests (see below).
314 void StopIgnoringPosChanges() { ignore_window_pos_changes_ = false; } 314 void StopIgnoringPosChanges() { ignore_window_pos_changes_ = false; }
315 315
316 // Attempts to force the window to be redrawn, ensuring that it gets 316 // Attempts to force the window to be redrawn, ensuring that it gets
317 // onscreen. 317 // onscreen.
318 void ForceRedrawWindow(int attempts); 318 void ForceRedrawWindow(int attempts);
319 319
320 // Returns whether Windows should help with frame rendering (i.e. we're using 320 // Returns whether Windows should help with frame rendering (i.e. we're using
321 // the glass frame). 321 // the glass frame).
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 700
701 // The factory used with BEGIN_SAFE_MSG_MAP_EX. 701 // The factory used with BEGIN_SAFE_MSG_MAP_EX.
702 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; 702 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_;
703 703
704 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 704 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
705 }; 705 };
706 706
707 } // namespace views 707 } // namespace views
708 708
709 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 709 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698