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 <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlmisc.h> | 10 #include <atlmisc.h> |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 void RedrawLayeredWindowContents(); | 228 void RedrawLayeredWindowContents(); |
229 | 229 |
230 | 230 |
231 // Message Handlers ---------------------------------------------------------- | 231 // Message Handlers ---------------------------------------------------------- |
232 | 232 |
233 BEGIN_MSG_MAP_EX(HWNDMessageHandler) | 233 BEGIN_MSG_MAP_EX(HWNDMessageHandler) |
234 // Range handlers must go first! | 234 // Range handlers must go first! |
235 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) | 235 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |
236 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) | 236 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) |
237 | 237 |
238 // Reflected message handler | |
239 MESSAGE_HANDLER_EX(base::win::kReflectedMessage, OnReflectedMessage) | |
240 | |
241 // CustomFrameWindow hacks | 238 // CustomFrameWindow hacks |
242 MESSAGE_HANDLER_EX(WM_NCUAHDRAWCAPTION, OnNCUAHDrawCaption) | 239 MESSAGE_HANDLER_EX(WM_NCUAHDRAWCAPTION, OnNCUAHDrawCaption) |
243 MESSAGE_HANDLER_EX(WM_NCUAHDRAWFRAME, OnNCUAHDrawFrame) | 240 MESSAGE_HANDLER_EX(WM_NCUAHDRAWFRAME, OnNCUAHDrawFrame) |
244 | 241 |
245 // Vista and newer | 242 // Vista and newer |
246 MESSAGE_HANDLER_EX(WM_DWMCOMPOSITIONCHANGED, OnDwmCompositionChanged) | 243 MESSAGE_HANDLER_EX(WM_DWMCOMPOSITIONCHANGED, OnDwmCompositionChanged) |
247 | 244 |
248 // Non-atlcrack.h handlers | 245 // Non-atlcrack.h handlers |
249 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject) | 246 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject) |
250 | 247 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 | 460 |
464 // True the first time nccalc is called on a sizable widget | 461 // True the first time nccalc is called on a sizable widget |
465 bool is_first_nccalc_; | 462 bool is_first_nccalc_; |
466 | 463 |
467 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 464 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
468 }; | 465 }; |
469 | 466 |
470 } // namespace views | 467 } // namespace views |
471 | 468 |
472 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 469 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |