| 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 <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 CR_MSG_WM_NCCALCSIZE(OnNCCalcSize) | 394 CR_MSG_WM_NCCALCSIZE(OnNCCalcSize) |
| 395 CR_MSG_WM_NCHITTEST(OnNCHitTest) | 395 CR_MSG_WM_NCHITTEST(OnNCHitTest) |
| 396 CR_MSG_WM_NCPAINT(OnNCPaint) | 396 CR_MSG_WM_NCPAINT(OnNCPaint) |
| 397 CR_MSG_WM_NOTIFY(OnNotify) | 397 CR_MSG_WM_NOTIFY(OnNotify) |
| 398 CR_MSG_WM_PAINT(OnPaint) | 398 CR_MSG_WM_PAINT(OnPaint) |
| 399 CR_MSG_WM_SETFOCUS(OnSetFocus) | 399 CR_MSG_WM_SETFOCUS(OnSetFocus) |
| 400 CR_MSG_WM_SETICON(OnSetIcon) | 400 CR_MSG_WM_SETICON(OnSetIcon) |
| 401 CR_MSG_WM_SETTEXT(OnSetText) | 401 CR_MSG_WM_SETTEXT(OnSetText) |
| 402 CR_MSG_WM_SETTINGCHANGE(OnSettingChange) | 402 CR_MSG_WM_SETTINGCHANGE(OnSettingChange) |
| 403 CR_MSG_WM_SIZE(OnSize) | 403 CR_MSG_WM_SIZE(OnSize) |
| 404 CR_MSG_WM_SIZING(OnSizing) |
| 404 CR_MSG_WM_SYSCOMMAND(OnSysCommand) | 405 CR_MSG_WM_SYSCOMMAND(OnSysCommand) |
| 405 CR_MSG_WM_THEMECHANGED(OnThemeChanged) | 406 CR_MSG_WM_THEMECHANGED(OnThemeChanged) |
| 406 CR_MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) | 407 CR_MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) |
| 407 CR_MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) | 408 CR_MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) |
| 408 CR_END_MSG_MAP() | 409 CR_END_MSG_MAP() |
| 409 | 410 |
| 410 // Message Handlers. | 411 // Message Handlers. |
| 411 // This list is in _ALPHABETICAL_ order! | 412 // This list is in _ALPHABETICAL_ order! |
| 412 // TODO(beng): Once this object becomes the WindowImpl, these methods can | 413 // TODO(beng): Once this object becomes the WindowImpl, these methods can |
| 413 // be made private. | 414 // be made private. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 LRESULT OnNotify(int w_param, NMHDR* l_param); | 450 LRESULT OnNotify(int w_param, NMHDR* l_param); |
| 450 void OnPaint(HDC dc); | 451 void OnPaint(HDC dc); |
| 451 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param); | 452 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param); |
| 452 LRESULT OnScrollMessage(UINT message, WPARAM w_param, LPARAM l_param); | 453 LRESULT OnScrollMessage(UINT message, WPARAM w_param, LPARAM l_param); |
| 453 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); | 454 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); |
| 454 void OnSetFocus(HWND last_focused_window); | 455 void OnSetFocus(HWND last_focused_window); |
| 455 LRESULT OnSetIcon(UINT size_type, HICON new_icon); | 456 LRESULT OnSetIcon(UINT size_type, HICON new_icon); |
| 456 LRESULT OnSetText(const wchar_t* text); | 457 LRESULT OnSetText(const wchar_t* text); |
| 457 void OnSettingChange(UINT flags, const wchar_t* section); | 458 void OnSettingChange(UINT flags, const wchar_t* section); |
| 458 void OnSize(UINT param, const gfx::Size& size); | 459 void OnSize(UINT param, const gfx::Size& size); |
| 460 void OnSizing(UINT edge, RECT* rect); |
| 459 void OnSysCommand(UINT notification_code, const gfx::Point& point); | 461 void OnSysCommand(UINT notification_code, const gfx::Point& point); |
| 460 void OnThemeChanged(); | 462 void OnThemeChanged(); |
| 461 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); | 463 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); |
| 462 void OnWindowPosChanging(WINDOWPOS* window_pos); | 464 void OnWindowPosChanging(WINDOWPOS* window_pos); |
| 463 void OnWindowPosChanged(WINDOWPOS* window_pos); | 465 void OnWindowPosChanged(WINDOWPOS* window_pos); |
| 464 | 466 |
| 465 // Receives Windows Session Change notifications. | 467 // Receives Windows Session Change notifications. |
| 466 void OnSessionChange(WPARAM status_code); | 468 void OnSessionChange(WPARAM status_code); |
| 467 | 469 |
| 468 typedef std::vector<ui::TouchEvent> TouchEvents; | 470 typedef std::vector<ui::TouchEvent> TouchEvents; |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 | 677 |
| 676 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 678 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
| 677 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 679 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
| 678 | 680 |
| 679 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 681 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 680 }; | 682 }; |
| 681 | 683 |
| 682 } // namespace views | 684 } // namespace views |
| 683 | 685 |
| 684 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 686 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |