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

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

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