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 30 matching lines...) Expand all Loading... |
41 void OnClose(); | 41 void OnClose(); |
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); |
| 52 void OnInputLangChange(DWORD character_set, HKL input_language_id); |
| 53 void OnMove(const CPoint& point); |
| 54 void OnMoving(UINT param, const RECT* new_bounds); |
| 55 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); |
| 56 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); |
| 57 LRESULT OnPowerBroadcast(DWORD power_event, DWORD data); |
| 58 void OnThemeChanged(); |
| 59 void OnVScroll(int scroll_type, short position, HWND scrollbar); |
51 | 60 |
52 // TODO(beng): Can be removed once this object becomes the WindowImpl. | 61 // TODO(beng): Can be removed once this object becomes the WindowImpl. |
53 bool remove_standard_frame() const { return remove_standard_frame_; } | 62 bool remove_standard_frame() const { return remove_standard_frame_; } |
54 void set_remove_standard_frame(bool remove_standard_frame) { | 63 void set_remove_standard_frame(bool remove_standard_frame) { |
55 remove_standard_frame_ = remove_standard_frame; | 64 remove_standard_frame_ = remove_standard_frame; |
56 } | 65 } |
57 | 66 |
58 private: | 67 private: |
| 68 // TODO(beng): This won't be a style violation once this object becomes the |
| 69 // WindowImpl. |
| 70 HWND hwnd(); |
| 71 |
| 72 // TODO(beng): Remove once this class becomes the WindowImpl. |
| 73 LRESULT DefWindowProcWithRedrawLock(UINT message, |
| 74 WPARAM w_param, |
| 75 LPARAM l_param); |
| 76 |
59 // TODO(beng): Remove once this class becomes the WindowImpl. | 77 // TODO(beng): Remove once this class becomes the WindowImpl. |
60 void SetMsgHandled(BOOL handled); | 78 void SetMsgHandled(BOOL handled); |
61 | 79 |
62 HWNDMessageHandlerDelegate* delegate_; | 80 HWNDMessageHandlerDelegate* delegate_; |
63 | 81 |
64 bool remove_standard_frame_; | 82 bool remove_standard_frame_; |
65 | 83 |
66 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 84 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
67 }; | 85 }; |
68 | 86 |
69 } // namespace views | 87 } // namespace views |
70 | 88 |
71 #endif // UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ | 89 #endif // UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |