OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AURA_DESKTOP_HOST_WIN_H_ | 5 #ifndef UI_AURA_DESKTOP_HOST_WIN_H_ |
6 #define UI_AURA_DESKTOP_HOST_WIN_H_ | 6 #define UI_AURA_DESKTOP_HOST_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/aura/desktop_host.h" | 10 #include "ui/aura/desktop_host.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 BEGIN_MSG_MAP_EX(DesktopHostWin) | 33 BEGIN_MSG_MAP_EX(DesktopHostWin) |
34 // Range handlers must go first! | 34 // Range handlers must go first! |
35 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) | 35 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |
36 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) | 36 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) |
37 | 37 |
38 // Key events. | 38 // Key events. |
39 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) | 39 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) |
40 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) | 40 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) |
41 MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyEvent) | 41 MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyEvent) |
42 MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyEvent) | 42 MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyEvent) |
| 43 MESSAGE_HANDLER_EX(WM_CHAR, OnKeyEvent) |
| 44 MESSAGE_HANDLER_EX(WM_SYSCHAR, OnKeyEvent) |
| 45 MESSAGE_HANDLER_EX(WM_IME_CHAR, OnKeyEvent) |
43 | 46 |
44 MSG_WM_CLOSE(OnClose) | 47 MSG_WM_CLOSE(OnClose) |
45 MSG_WM_PAINT(OnPaint) | 48 MSG_WM_PAINT(OnPaint) |
46 MSG_WM_SIZE(OnSize) | 49 MSG_WM_SIZE(OnSize) |
47 END_MSG_MAP() | 50 END_MSG_MAP() |
48 | 51 |
49 void OnClose(); | 52 void OnClose(); |
50 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param); | 53 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param); |
51 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param); | 54 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param); |
52 void OnPaint(HDC dc); | 55 void OnPaint(HDC dc); |
53 void OnSize(UINT param, const CSize& size); | 56 void OnSize(UINT param, const CSize& size); |
54 | 57 |
55 Desktop* desktop_; | 58 Desktop* desktop_; |
56 | 59 |
57 DISALLOW_COPY_AND_ASSIGN(DesktopHostWin); | 60 DISALLOW_COPY_AND_ASSIGN(DesktopHostWin); |
58 }; | 61 }; |
59 | 62 |
60 } // namespace aura | 63 } // namespace aura |
61 | 64 |
62 #endif // UI_AURA_DESKTOP_HOST_WIN_H_ | 65 #endif // UI_AURA_DESKTOP_HOST_WIN_H_ |
OLD | NEW |