Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: ui/views/widget/hwnd_message_handler.h

Issue 10831394: Move more message handlers from NativeWidgetWin to HWNDMessageHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/views/widget/hwnd_message_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 OnThemeChanged(); 68 void OnThemeChanged();
59 void OnVScroll(int scroll_type, short position, HWND scrollbar); 69 void OnVScroll(int scroll_type, short position, HWND scrollbar);
60 70
61 // TODO(beng): Can be removed once this object becomes the WindowImpl. 71 // TODO(beng): Can be removed once this object becomes the WindowImpl.
62 bool remove_standard_frame() const { return remove_standard_frame_; } 72 bool remove_standard_frame() const { return remove_standard_frame_; }
63 void set_remove_standard_frame(bool remove_standard_frame) { 73 void set_remove_standard_frame(bool remove_standard_frame) {
64 remove_standard_frame_ = remove_standard_frame; 74 remove_standard_frame_ = remove_standard_frame;
65 } 75 }
66 76
67 private: 77 private:
(...skipping 12 matching lines...) Expand all
80 HWNDMessageHandlerDelegate* delegate_; 90 HWNDMessageHandlerDelegate* delegate_;
81 91
82 bool remove_standard_frame_; 92 bool remove_standard_frame_;
83 93
84 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 94 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
85 }; 95 };
86 96
87 } // namespace views 97 } // namespace views
88 98
89 #endif // UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ 99 #endif // UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/widget/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698