Chromium Code Reviews| 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_WIN_HWND_MESSAGE_HANDLER_H_ | 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 6 #define UI_VIEWS_WIN_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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 287 MSG_WM_NCACTIVATE(OnNCActivate) | 287 MSG_WM_NCACTIVATE(OnNCActivate) |
| 288 MSG_WM_NCCALCSIZE(OnNCCalcSize) | 288 MSG_WM_NCCALCSIZE(OnNCCalcSize) |
| 289 MSG_WM_NCHITTEST(OnNCHitTest) | 289 MSG_WM_NCHITTEST(OnNCHitTest) |
| 290 MSG_WM_NCPAINT(OnNCPaint) | 290 MSG_WM_NCPAINT(OnNCPaint) |
| 291 MSG_WM_NOTIFY(OnNotify) | 291 MSG_WM_NOTIFY(OnNotify) |
| 292 MSG_WM_PAINT(OnPaint) | 292 MSG_WM_PAINT(OnPaint) |
| 293 MSG_WM_SETFOCUS(OnSetFocus) | 293 MSG_WM_SETFOCUS(OnSetFocus) |
| 294 MSG_WM_SETICON(OnSetIcon) | 294 MSG_WM_SETICON(OnSetIcon) |
| 295 MSG_WM_SETTEXT(OnSetText) | 295 MSG_WM_SETTEXT(OnSetText) |
| 296 MSG_WM_SETTINGCHANGE(OnSettingChange) | 296 MSG_WM_SETTINGCHANGE(OnSettingChange) |
| 297 MSG_WM_SHOWWINDOW(OnShowWindow) | |
|
Ben Goodger (Google)
2013/04/17 18:22:12
is this message sent under every situation that a
ananta
2013/04/18 19:15:30
Sadly no. It gets called for SetWindowPost with SW
| |
| 297 MSG_WM_SIZE(OnSize) | 298 MSG_WM_SIZE(OnSize) |
| 298 MSG_WM_SYSCOMMAND(OnSysCommand) | 299 MSG_WM_SYSCOMMAND(OnSysCommand) |
| 299 MSG_WM_THEMECHANGED(OnThemeChanged) | 300 MSG_WM_THEMECHANGED(OnThemeChanged) |
| 300 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) | 301 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) |
| 301 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) | 302 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) |
| 302 END_MSG_MAP() | 303 END_MSG_MAP() |
| 303 | 304 |
| 304 // Message Handlers. | 305 // Message Handlers. |
| 305 // This list is in _ALPHABETICAL_ order! | 306 // This list is in _ALPHABETICAL_ order! |
| 306 // TODO(beng): Once this object becomes the WindowImpl, these methods can | 307 // TODO(beng): Once this object becomes the WindowImpl, these methods can |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 344 void OnSetFocus(HWND last_focused_window); | 345 void OnSetFocus(HWND last_focused_window); |
| 345 LRESULT OnSetIcon(UINT size_type, HICON new_icon); | 346 LRESULT OnSetIcon(UINT size_type, HICON new_icon); |
| 346 LRESULT OnSetText(const wchar_t* text); | 347 LRESULT OnSetText(const wchar_t* text); |
| 347 void OnSettingChange(UINT flags, const wchar_t* section); | 348 void OnSettingChange(UINT flags, const wchar_t* section); |
| 348 void OnSize(UINT param, const CSize& size); | 349 void OnSize(UINT param, const CSize& size); |
| 349 void OnSysCommand(UINT notification_code, const CPoint& point); | 350 void OnSysCommand(UINT notification_code, const CPoint& point); |
| 350 void OnThemeChanged(); | 351 void OnThemeChanged(); |
| 351 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); | 352 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); |
| 352 void OnWindowPosChanging(WINDOWPOS* window_pos); | 353 void OnWindowPosChanging(WINDOWPOS* window_pos); |
| 353 void OnWindowPosChanged(WINDOWPOS* window_pos); | 354 void OnWindowPosChanged(WINDOWPOS* window_pos); |
| 355 void OnShowWindow(BOOL visible, int lparam); | |
| 354 | 356 |
| 355 HWNDMessageHandlerDelegate* delegate_; | 357 HWNDMessageHandlerDelegate* delegate_; |
| 356 | 358 |
| 357 scoped_ptr<FullscreenHandler> fullscreen_handler_; | 359 scoped_ptr<FullscreenHandler> fullscreen_handler_; |
| 358 | 360 |
| 359 base::WeakPtrFactory<HWNDMessageHandler> close_widget_factory_; | 361 base::WeakPtrFactory<HWNDMessageHandler> close_widget_factory_; |
| 360 | 362 |
| 361 bool remove_standard_frame_; | 363 bool remove_standard_frame_; |
| 362 | 364 |
| 363 bool use_system_default_icon_; | 365 bool use_system_default_icon_; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 454 | 456 |
| 455 // True the first time nccalc is called on a sizable widget | 457 // True the first time nccalc is called on a sizable widget |
| 456 bool is_first_nccalc_; | 458 bool is_first_nccalc_; |
| 457 | 459 |
| 458 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 460 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 459 }; | 461 }; |
| 460 | 462 |
| 461 } // namespace views | 463 } // namespace views |
| 462 | 464 |
| 463 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 465 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |