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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 virtual bool HandleMouseEvent(const ui::MouseEvent& event) = 0; | 178 virtual bool HandleMouseEvent(const ui::MouseEvent& event) = 0; |
179 | 179 |
180 // Called when a translated key event is received (i.e. post IME translation.) | 180 // Called when a translated key event is received (i.e. post IME translation.) |
181 // Returns true if the event was handled by the delegate. | 181 // Returns true if the event was handled by the delegate. |
182 virtual bool HandleKeyEvent(const ui::KeyEvent& event) = 0; | 182 virtual bool HandleKeyEvent(const ui::KeyEvent& event) = 0; |
183 | 183 |
184 // Called when an untranslated key event is received (i.e. pre-IME | 184 // Called when an untranslated key event is received (i.e. pre-IME |
185 // translation). Returns true if the event was sent to the input method. | 185 // translation). Returns true if the event was sent to the input method. |
186 virtual bool HandleUntranslatedKeyEvent(const ui::KeyEvent& event) = 0; | 186 virtual bool HandleUntranslatedKeyEvent(const ui::KeyEvent& event) = 0; |
187 | 187 |
188 // Called when a touch event is received. Returns true if the event was | 188 // Called when a touch event is received. |
189 // handled by the delegate. | 189 virtual void HandleTouchEvent(const ui::TouchEvent& event) = 0; |
190 virtual bool HandleTouchEvent(const ui::TouchEvent& event) = 0; | |
191 | 190 |
192 // Called when an IME message needs to be processed by the delegate. Returns | 191 // Called when an IME message needs to be processed by the delegate. Returns |
193 // true if the event was handled and no default processing should be | 192 // true if the event was handled and no default processing should be |
194 // performed. | 193 // performed. |
195 virtual bool HandleIMEMessage(UINT message, | 194 virtual bool HandleIMEMessage(UINT message, |
196 WPARAM w_param, | 195 WPARAM w_param, |
197 LPARAM l_param, | 196 LPARAM l_param, |
198 LRESULT* result) = 0; | 197 LRESULT* result) = 0; |
199 | 198 |
200 // Called when the system input language changes. | 199 // Called when the system input language changes. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 WPARAM w_param, | 234 WPARAM w_param, |
236 LPARAM l_param) = 0; | 235 LPARAM l_param) = 0; |
237 | 236 |
238 protected: | 237 protected: |
239 virtual ~HWNDMessageHandlerDelegate() {} | 238 virtual ~HWNDMessageHandlerDelegate() {} |
240 }; | 239 }; |
241 | 240 |
242 } // namespace views | 241 } // namespace views |
243 | 242 |
244 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 243 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
OLD | NEW |