| 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_DELEGATE_H_ | 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
| 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/views/views_export.h" | 8 #include "ui/views/views_export.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // Called to forward a WM_NOTIFY message to the tooltip manager. | 210 // Called to forward a WM_NOTIFY message to the tooltip manager. |
| 211 virtual bool HandleTooltipNotify(int w_param, | 211 virtual bool HandleTooltipNotify(int w_param, |
| 212 NMHDR* l_param, | 212 NMHDR* l_param, |
| 213 LRESULT* l_result) = 0; | 213 LRESULT* l_result) = 0; |
| 214 | 214 |
| 215 // Called to forward mouse events to the tooltip manager. | 215 // Called to forward mouse events to the tooltip manager. |
| 216 virtual void HandleTooltipMouseMove(UINT message, | 216 virtual void HandleTooltipMouseMove(UINT message, |
| 217 WPARAM w_param, | 217 WPARAM w_param, |
| 218 LPARAM l_param) = 0; | 218 LPARAM l_param) = 0; |
| 219 | 219 |
| 220 // Invoked on entering/exiting a menu loop. |
| 221 virtual void HandleMenuLoop(bool in_menu_loop) = 0; |
| 222 |
| 220 // Catch-all message handling and filtering. Called before | 223 // Catch-all message handling and filtering. Called before |
| 221 // HWNDMessageHandler's built-in handling, which may pre-empt some | 224 // HWNDMessageHandler's built-in handling, which may pre-empt some |
| 222 // expectations in Views/Aura if messages are consumed. Returns true if the | 225 // expectations in Views/Aura if messages are consumed. Returns true if the |
| 223 // message was consumed by the delegate and should not be processed further | 226 // message was consumed by the delegate and should not be processed further |
| 224 // by the HWNDMessageHandler. In this case, |result| is returned. |result| is | 227 // by the HWNDMessageHandler. In this case, |result| is returned. |result| is |
| 225 // not modified otherwise. | 228 // not modified otherwise. |
| 226 virtual bool PreHandleMSG(UINT message, | 229 virtual bool PreHandleMSG(UINT message, |
| 227 WPARAM w_param, | 230 WPARAM w_param, |
| 228 LPARAM l_param, | 231 LPARAM l_param, |
| 229 LRESULT* result) = 0; | 232 LRESULT* result) = 0; |
| 230 | 233 |
| 231 // Like PreHandleMSG, but called after HWNDMessageHandler's built-in handling | 234 // Like PreHandleMSG, but called after HWNDMessageHandler's built-in handling |
| 232 // has run and after DefWindowProc. | 235 // has run and after DefWindowProc. |
| 233 virtual void PostHandleMSG(UINT message, | 236 virtual void PostHandleMSG(UINT message, |
| 234 WPARAM w_param, | 237 WPARAM w_param, |
| 235 LPARAM l_param) = 0; | 238 LPARAM l_param) = 0; |
| 236 | 239 |
| 237 protected: | 240 protected: |
| 238 virtual ~HWNDMessageHandlerDelegate() {} | 241 virtual ~HWNDMessageHandlerDelegate() {} |
| 239 }; | 242 }; |
| 240 | 243 |
| 241 } // namespace views | 244 } // namespace views |
| 242 | 245 |
| 243 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 246 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
| OLD | NEW |