| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 virtual void HandleNativeBlur(HWND focused_window) = 0; | 182 virtual void HandleNativeBlur(HWND focused_window) = 0; |
| 183 | 183 |
| 184 // Called when a mouse event is received. Returns true if the event was | 184 // Called when a mouse event is received. Returns true if the event was |
| 185 // handled by the delegate. | 185 // handled by the delegate. |
| 186 virtual bool HandleMouseEvent(const ui::MouseEvent& event) = 0; | 186 virtual bool HandleMouseEvent(const ui::MouseEvent& event) = 0; |
| 187 | 187 |
| 188 // Called when an untranslated key event is received (i.e. pre-IME | 188 // Called when an untranslated key event is received (i.e. pre-IME |
| 189 // translation). | 189 // translation). |
| 190 virtual void HandleKeyEvent(ui::KeyEvent* event) = 0; | 190 virtual void HandleKeyEvent(ui::KeyEvent* event) = 0; |
| 191 | 191 |
| 192 // Called when the window is being resized. |
| 193 virtual void HandleSizing(UINT edge, RECT* rect) = 0; |
| 194 |
| 192 // Called when a touch event is received. | 195 // Called when a touch event is received. |
| 193 virtual void HandleTouchEvent(const ui::TouchEvent& event) = 0; | 196 virtual void HandleTouchEvent(const ui::TouchEvent& event) = 0; |
| 194 | 197 |
| 195 // Called when an IME message needs to be processed by the delegate. Returns | 198 // Called when an IME message needs to be processed by the delegate. Returns |
| 196 // true if the event was handled and no default processing should be | 199 // true if the event was handled and no default processing should be |
| 197 // performed. | 200 // performed. |
| 198 virtual bool HandleIMEMessage(UINT message, | 201 virtual bool HandleIMEMessage(UINT message, |
| 199 WPARAM w_param, | 202 WPARAM w_param, |
| 200 LPARAM l_param, | 203 LPARAM l_param, |
| 201 LRESULT* result) = 0; | 204 LRESULT* result) = 0; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 // Called when the window size has finished changing. | 245 // Called when the window size has finished changing. |
| 243 virtual void HandleWindowSizeChanged() = 0; | 246 virtual void HandleWindowSizeChanged() = 0; |
| 244 | 247 |
| 245 protected: | 248 protected: |
| 246 virtual ~HWNDMessageHandlerDelegate() {} | 249 virtual ~HWNDMessageHandlerDelegate() {} |
| 247 }; | 250 }; |
| 248 | 251 |
| 249 } // namespace views | 252 } // namespace views |
| 250 | 253 |
| 251 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 254 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
| OLD | NEW |