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(); |
52 void OnInputLangChange(DWORD character_set, HKL input_language_id); | 54 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); |
53 void OnMove(const CPoint& point); | 57 void OnMove(const CPoint& point); |
54 void OnMoving(UINT param, const RECT* new_bounds); | 58 void OnMoving(UINT param, const RECT* new_bounds); |
| 59 LRESULT OnNCHitTest(const CPoint& point); |
55 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); | 60 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); |
56 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); | 61 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); |
57 LRESULT OnPowerBroadcast(DWORD power_event, DWORD data); | 62 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); |
58 void OnSize(UINT param, const CSize& size); | 68 void OnSize(UINT param, const CSize& size); |
59 void OnThemeChanged(); | 69 void OnThemeChanged(); |
60 void OnVScroll(int scroll_type, short position, HWND scrollbar); | 70 void OnVScroll(int scroll_type, short position, HWND scrollbar); |
61 | 71 |
62 // TODO(beng): Can be removed once this object becomes the WindowImpl. | 72 // TODO(beng): Can be removed once this object becomes the WindowImpl. |
63 bool remove_standard_frame() const { return remove_standard_frame_; } | 73 bool remove_standard_frame() const { return remove_standard_frame_; } |
64 void set_remove_standard_frame(bool remove_standard_frame) { | 74 void set_remove_standard_frame(bool remove_standard_frame) { |
65 remove_standard_frame_ = remove_standard_frame; | 75 remove_standard_frame_ = remove_standard_frame; |
66 } | 76 } |
67 | 77 |
(...skipping 18 matching lines...) Expand all Loading... |
86 HWNDMessageHandlerDelegate* delegate_; | 96 HWNDMessageHandlerDelegate* delegate_; |
87 | 97 |
88 bool remove_standard_frame_; | 98 bool remove_standard_frame_; |
89 | 99 |
90 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 100 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
91 }; | 101 }; |
92 | 102 |
93 } // namespace views | 103 } // namespace views |
94 | 104 |
95 #endif // UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ | 105 #endif // UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |