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 <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 308 |
309 // IME Events. | 309 // IME Events. |
310 CR_MESSAGE_HANDLER_EX(WM_IME_SETCONTEXT, OnImeMessages) | 310 CR_MESSAGE_HANDLER_EX(WM_IME_SETCONTEXT, OnImeMessages) |
311 CR_MESSAGE_HANDLER_EX(WM_IME_STARTCOMPOSITION, OnImeMessages) | 311 CR_MESSAGE_HANDLER_EX(WM_IME_STARTCOMPOSITION, OnImeMessages) |
312 CR_MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeMessages) | 312 CR_MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeMessages) |
313 CR_MESSAGE_HANDLER_EX(WM_IME_ENDCOMPOSITION, OnImeMessages) | 313 CR_MESSAGE_HANDLER_EX(WM_IME_ENDCOMPOSITION, OnImeMessages) |
314 CR_MESSAGE_HANDLER_EX(WM_IME_REQUEST, OnImeMessages) | 314 CR_MESSAGE_HANDLER_EX(WM_IME_REQUEST, OnImeMessages) |
315 CR_MESSAGE_HANDLER_EX(WM_IME_NOTIFY, OnImeMessages) | 315 CR_MESSAGE_HANDLER_EX(WM_IME_NOTIFY, OnImeMessages) |
316 CR_MESSAGE_HANDLER_EX(WM_CHAR, OnImeMessages) | 316 CR_MESSAGE_HANDLER_EX(WM_CHAR, OnImeMessages) |
317 CR_MESSAGE_HANDLER_EX(WM_SYSCHAR, OnImeMessages) | 317 CR_MESSAGE_HANDLER_EX(WM_SYSCHAR, OnImeMessages) |
318 CR_MESSAGE_HANDLER_EX(WM_DEADCHAR, OnImeMessages) | |
319 CR_MESSAGE_HANDLER_EX(WM_SYSDEADCHAR, OnImeMessages) | |
320 | 318 |
321 // Scroll events | 319 // Scroll events |
322 CR_MESSAGE_HANDLER_EX(WM_VSCROLL, OnScrollMessage) | 320 CR_MESSAGE_HANDLER_EX(WM_VSCROLL, OnScrollMessage) |
323 CR_MESSAGE_HANDLER_EX(WM_HSCROLL, OnScrollMessage) | 321 CR_MESSAGE_HANDLER_EX(WM_HSCROLL, OnScrollMessage) |
324 | 322 |
325 // Touch Events. | 323 // Touch Events. |
326 CR_MESSAGE_HANDLER_EX(WM_TOUCH, OnTouchEvent) | 324 CR_MESSAGE_HANDLER_EX(WM_TOUCH, OnTouchEvent) |
327 | 325 |
328 // Uses the general handler macro since the specific handler macro | 326 // Uses the general handler macro since the specific handler macro |
329 // MSG_WM_NCACTIVATE would convert WPARAM type to BOOL type. The high | 327 // MSG_WM_NCACTIVATE would convert WPARAM type to BOOL type. The high |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 }; | 543 }; |
546 | 544 |
547 // This window property if set on the window does not activate the window for a | 545 // This window property if set on the window does not activate the window for a |
548 // touch based WM_MOUSEACTIVATE message. | 546 // touch based WM_MOUSEACTIVATE message. |
549 const wchar_t kIgnoreTouchMouseActivateForWindow[] = | 547 const wchar_t kIgnoreTouchMouseActivateForWindow[] = |
550 L"Chrome.IgnoreMouseActivate"; | 548 L"Chrome.IgnoreMouseActivate"; |
551 | 549 |
552 } // namespace views | 550 } // namespace views |
553 | 551 |
554 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 552 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |