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

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

Issue 10828395: 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void OnMoving(UINT param, const RECT* new_bounds); 58 void OnMoving(UINT param, const RECT* new_bounds);
59 LRESULT OnNCHitTest(const CPoint& point); 59 LRESULT OnNCHitTest(const CPoint& point);
60 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); 60 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param);
61 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); 61 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param);
62 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); 63 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param);
64 LRESULT OnSetCursor(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); 65 void OnSetFocus(HWND last_focused_window);
66 LRESULT OnSetIcon(UINT size_type, HICON new_icon); 66 LRESULT OnSetIcon(UINT size_type, HICON new_icon);
67 LRESULT OnSetText(const wchar_t* text); 67 LRESULT OnSetText(const wchar_t* text);
68 void OnSize(UINT param, const CSize& size);
68 void OnThemeChanged(); 69 void OnThemeChanged();
69 void OnVScroll(int scroll_type, short position, HWND scrollbar); 70 void OnVScroll(int scroll_type, short position, HWND scrollbar);
70 71
71 // TODO(beng): Can be removed once this object becomes the WindowImpl. 72 // TODO(beng): Can be removed once this object becomes the WindowImpl.
72 bool remove_standard_frame() const { return remove_standard_frame_; } 73 bool remove_standard_frame() const { return remove_standard_frame_; }
73 void set_remove_standard_frame(bool remove_standard_frame) { 74 void set_remove_standard_frame(bool remove_standard_frame) {
74 remove_standard_frame_ = remove_standard_frame; 75 remove_standard_frame_ = remove_standard_frame;
75 } 76 }
76 77
78 // Resets the window region for the current widget bounds if necessary.
79 // If |force| is true, the window region is reset to NULL even for native
80 // frame windows.
81 void ResetWindowRegion(bool force);
82
77 private: 83 private:
78 // TODO(beng): This won't be a style violation once this object becomes the 84 // TODO(beng): This won't be a style violation once this object becomes the
79 // WindowImpl. 85 // WindowImpl.
80 HWND hwnd(); 86 HWND hwnd();
81 87
82 // TODO(beng): Remove once this class becomes the WindowImpl. 88 // TODO(beng): Remove once this class becomes the WindowImpl.
83 LRESULT DefWindowProcWithRedrawLock(UINT message, 89 LRESULT DefWindowProcWithRedrawLock(UINT message,
84 WPARAM w_param, 90 WPARAM w_param,
85 LPARAM l_param); 91 LPARAM l_param);
86 92
87 // TODO(beng): Remove once this class becomes the WindowImpl. 93 // TODO(beng): Remove once this class becomes the WindowImpl.
88 void SetMsgHandled(BOOL handled); 94 void SetMsgHandled(BOOL handled);
89 95
90 HWNDMessageHandlerDelegate* delegate_; 96 HWNDMessageHandlerDelegate* delegate_;
91 97
92 bool remove_standard_frame_; 98 bool remove_standard_frame_;
93 99
94 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 100 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
95 }; 101 };
96 102
97 } // namespace views 103 } // namespace views
98 104
99 #endif // UI_VIEWS_WIDGET_HWND_MESSAGE_HANDLER_H_ 105 #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