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_WIDGET_HWND_MESSAGE_HANDLER_H_ | 5 #ifndef UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ |
6 #define UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ | 6 #define UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlmisc.h> | 10 #include <atlmisc.h> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 void OnCommand(UINT notification_code, int command, HWND window); | 42 void OnCommand(UINT notification_code, int command, HWND window); |
43 void OnDestroy(); | 43 void OnDestroy(); |
44 void OnDisplayChange(UINT bits_per_pixel, const CSize& screen_size); | 44 void OnDisplayChange(UINT bits_per_pixel, const CSize& screen_size); |
45 void OnDwmCompositionChanged(UINT msg, WPARAM w_param, LPARAM l_param); | 45 void OnDwmCompositionChanged(UINT msg, WPARAM w_param, LPARAM l_param); |
46 void OnEndSession(BOOL ending, UINT logoff); | 46 void OnEndSession(BOOL ending, UINT logoff); |
47 void OnEnterSizeMove(); | 47 void OnEnterSizeMove(); |
48 LRESULT OnEraseBkgnd(HDC dc); | 48 LRESULT OnEraseBkgnd(HDC dc); |
49 void OnExitMenuLoop(BOOL is_track_popup_menu); | 49 void OnExitMenuLoop(BOOL is_track_popup_menu); |
50 void OnExitSizeMove(); | 50 void OnExitSizeMove(); |
51 LRESULT OnImeMessages(UINT message, WPARAM w_param, LPARAM l_param); | 51 LRESULT OnImeMessages(UINT message, WPARAM w_param, LPARAM l_param); |
52 void OnInitMenu(HMENU menu); | |
53 void OnInitMenuPopup(); | |
54 void OnInputLangChange(DWORD character_set, HKL input_language_id); | 52 void OnInputLangChange(DWORD character_set, HKL input_language_id); |
55 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param); | |
56 void OnKillFocus(HWND focused_window); | |
57 void OnMove(const CPoint& point); | 53 void OnMove(const CPoint& point); |
58 void OnMoving(UINT param, const RECT* new_bounds); | 54 void OnMoving(UINT param, const RECT* new_bounds); |
59 LRESULT OnNCHitTest(const CPoint& point); | |
60 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); | 55 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); |
61 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); | 56 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); |
62 LRESULT OnPowerBroadcast(DWORD power_event, DWORD data); | 57 LRESULT OnPowerBroadcast(DWORD power_event, DWORD data); |
63 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param); | |
64 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); | |
65 void OnSetFocus(HWND last_focused_window); | |
66 LRESULT OnSetIcon(UINT size_type, HICON new_icon); | |
67 LRESULT OnSetText(const wchar_t* text); | |
68 void OnSize(UINT param, const CSize& size); | 58 void OnSize(UINT param, const CSize& size); |
69 void OnThemeChanged(); | 59 void OnThemeChanged(); |
70 void OnVScroll(int scroll_type, short position, HWND scrollbar); | 60 void OnVScroll(int scroll_type, short position, HWND scrollbar); |
71 | 61 |
72 // TODO(beng): Can be removed once this object becomes the WindowImpl. | 62 // TODO(beng): Can be removed once this object becomes the WindowImpl. |
73 bool remove_standard_frame() const { return remove_standard_frame_; } | 63 bool remove_standard_frame() const { return remove_standard_frame_; } |
74 void set_remove_standard_frame(bool remove_standard_frame) { | 64 void set_remove_standard_frame(bool remove_standard_frame) { |
75 remove_standard_frame_ = remove_standard_frame; | 65 remove_standard_frame_ = remove_standard_frame; |
76 } | 66 } |
77 | 67 |
(...skipping 18 matching lines...) Expand all Loading... |
96 HWNDMessageHandlerDelegate* delegate_; | 86 HWNDMessageHandlerDelegate* delegate_; |
97 | 87 |
98 bool remove_standard_frame_; | 88 bool remove_standard_frame_; |
99 | 89 |
100 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 90 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
101 }; | 91 }; |
102 | 92 |
103 } // namespace views | 93 } // namespace views |
104 | 94 |
105 #endif // UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ | 95 #endif // UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |