OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |