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_AURA_ROOT_WINDOW_HOST_WIN_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_ | 6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ui/aura/root_window_host.h" | 9 #include "ui/aura/root_window_host.h" |
10 #include "ui/base/win/window_impl.h" | 10 #include "ui/base/win/window_impl.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) | 56 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) |
57 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) | 57 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) |
58 MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyEvent) | 58 MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyEvent) |
59 MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyEvent) | 59 MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyEvent) |
60 MESSAGE_HANDLER_EX(WM_CHAR, OnKeyEvent) | 60 MESSAGE_HANDLER_EX(WM_CHAR, OnKeyEvent) |
61 MESSAGE_HANDLER_EX(WM_SYSCHAR, OnKeyEvent) | 61 MESSAGE_HANDLER_EX(WM_SYSCHAR, OnKeyEvent) |
62 MESSAGE_HANDLER_EX(WM_IME_CHAR, OnKeyEvent) | 62 MESSAGE_HANDLER_EX(WM_IME_CHAR, OnKeyEvent) |
63 MESSAGE_HANDLER_EX(WM_NCACTIVATE, OnNCActivate) | 63 MESSAGE_HANDLER_EX(WM_NCACTIVATE, OnNCActivate) |
64 | 64 |
65 MSG_WM_CLOSE(OnClose) | 65 MSG_WM_CLOSE(OnClose) |
| 66 MSG_WM_MOVE(OnMove) |
66 MSG_WM_PAINT(OnPaint) | 67 MSG_WM_PAINT(OnPaint) |
67 MSG_WM_SIZE(OnSize) | 68 MSG_WM_SIZE(OnSize) |
68 END_MSG_MAP() | 69 END_MSG_MAP() |
69 | 70 |
70 void OnClose(); | 71 void OnClose(); |
71 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param); | 72 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param); |
72 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param); | 73 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param); |
73 LRESULT OnCaptureChanged(UINT message, WPARAM w_param, LPARAM l_param); | 74 LRESULT OnCaptureChanged(UINT message, WPARAM w_param, LPARAM l_param); |
74 LRESULT OnNCActivate(UINT message, WPARAM w_param, LPARAM l_param); | 75 LRESULT OnNCActivate(UINT message, WPARAM w_param, LPARAM l_param); |
| 76 void OnMove(const CPoint& point); |
75 void OnPaint(HDC dc); | 77 void OnPaint(HDC dc); |
76 void OnSize(UINT param, const CSize& size); | 78 void OnSize(UINT param, const CSize& size); |
77 | 79 |
78 RootWindowHostDelegate* delegate_; | 80 RootWindowHostDelegate* delegate_; |
79 | 81 |
80 bool fullscreen_; | 82 bool fullscreen_; |
81 bool has_capture_; | 83 bool has_capture_; |
82 RECT saved_window_rect_; | 84 RECT saved_window_rect_; |
83 DWORD saved_window_style_; | 85 DWORD saved_window_style_; |
84 DWORD saved_window_ex_style_; | 86 DWORD saved_window_ex_style_; |
85 | 87 |
86 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); | 88 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); |
87 }; | 89 }; |
88 | 90 |
89 } // namespace aura | 91 } // namespace aura |
90 | 92 |
91 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ | 93 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
OLD | NEW |