| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // Synchronously paints the invalid contents of the Widget. | 222 // Synchronously paints the invalid contents of the Widget. |
| 223 void RedrawInvalidRect(); | 223 void RedrawInvalidRect(); |
| 224 | 224 |
| 225 // Synchronously updates the invalid contents of the Widget. Valid for | 225 // Synchronously updates the invalid contents of the Widget. Valid for |
| 226 // layered windows only. | 226 // layered windows only. |
| 227 void RedrawLayeredWindowContents(); | 227 void RedrawLayeredWindowContents(); |
| 228 | 228 |
| 229 | 229 |
| 230 // Message Handlers ---------------------------------------------------------- | 230 // Message Handlers ---------------------------------------------------------- |
| 231 | 231 |
| 232 BEGIN_MSG_MAP_EX(NativeWidgetWin) | 232 BEGIN_MSG_MAP_EX(HWNDMessageHandler) |
| 233 // Range handlers must go first! | 233 // Range handlers must go first! |
| 234 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) | 234 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |
| 235 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) | 235 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) |
| 236 | 236 |
| 237 // Reflected message handler | 237 // Reflected message handler |
| 238 MESSAGE_HANDLER_EX(base::win::kReflectedMessage, OnReflectedMessage) | 238 MESSAGE_HANDLER_EX(base::win::kReflectedMessage, OnReflectedMessage) |
| 239 | 239 |
| 240 // CustomFrameWindow hacks | 240 // CustomFrameWindow hacks |
| 241 MESSAGE_HANDLER_EX(WM_NCUAHDRAWCAPTION, OnNCUAHDrawCaption) | 241 MESSAGE_HANDLER_EX(WM_NCUAHDRAWCAPTION, OnNCUAHDrawCaption) |
| 242 MESSAGE_HANDLER_EX(WM_NCUAHDRAWFRAME, OnNCUAHDrawFrame) | 242 MESSAGE_HANDLER_EX(WM_NCUAHDRAWFRAME, OnNCUAHDrawFrame) |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 // True if we are allowed to update the layered window from the DIB backing | 457 // True if we are allowed to update the layered window from the DIB backing |
| 458 // store if necessary. | 458 // store if necessary. |
| 459 bool can_update_layered_window_; | 459 bool can_update_layered_window_; |
| 460 | 460 |
| 461 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 461 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 462 }; | 462 }; |
| 463 | 463 |
| 464 } // namespace views | 464 } // namespace views |
| 465 | 465 |
| 466 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 466 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |