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

Side by Side Diff: ui/views/win/hwnd_message_handler.h

Issue 59043012: Get rid of the 1-pixel client inset hack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 7 years, 1 month 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 | Annotate | Revision Log
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 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // or subsequently. 245 // or subsequently.
246 void ClientAreaSizeChanged(); 246 void ClientAreaSizeChanged();
247 247
248 // Returns the insets of the client area relative to the non-client area of 248 // Returns the insets of the client area relative to the non-client area of
249 // the window. 249 // the window.
250 bool GetClientAreaInsets(gfx::Insets* insets) const; 250 bool GetClientAreaInsets(gfx::Insets* insets) const;
251 251
252 // Resets the window region for the current widget bounds if necessary. 252 // Resets the window region for the current widget bounds if necessary.
253 // If |force| is true, the window region is reset to NULL even for native 253 // If |force| is true, the window region is reset to NULL even for native
254 // frame windows. 254 // frame windows.
255 void ResetWindowRegion(bool force); 255 void ResetWindowRegion(bool force, bool redraw);
256 256
257 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to 257 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to
258 // prevent frame flicker. DefWindowProc handling can otherwise render the 258 // prevent frame flicker. DefWindowProc handling can otherwise render the
259 // classic-look window title bar directly. 259 // classic-look window title bar directly.
260 LRESULT DefWindowProcWithRedrawLock(UINT message, 260 LRESULT DefWindowProcWithRedrawLock(UINT message,
261 WPARAM w_param, 261 WPARAM w_param,
262 LPARAM l_param); 262 LPARAM l_param);
263 263
264 // Notifies any owned windows that we're closing. 264 // Notifies any owned windows that we're closing.
265 void NotifyOwnedWindowsParentClosing(); 265 void NotifyOwnedWindowsParentClosing();
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 521
522 // Generates touch-ids for touch-events. 522 // Generates touch-ids for touch-events.
523 ui::SequentialIDGenerator id_generator_; 523 ui::SequentialIDGenerator id_generator_;
524 524
525 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 525 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
526 }; 526 };
527 527
528 } // namespace views 528 } // namespace views
529 529
530 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 530 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698