| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 CR_MSG_WM_NCPAINT(OnNCPaint) | 416 CR_MSG_WM_NCPAINT(OnNCPaint) |
| 417 CR_MSG_WM_NOTIFY(OnNotify) | 417 CR_MSG_WM_NOTIFY(OnNotify) |
| 418 CR_MSG_WM_PAINT(OnPaint) | 418 CR_MSG_WM_PAINT(OnPaint) |
| 419 CR_MSG_WM_SETFOCUS(OnSetFocus) | 419 CR_MSG_WM_SETFOCUS(OnSetFocus) |
| 420 CR_MSG_WM_SETICON(OnSetIcon) | 420 CR_MSG_WM_SETICON(OnSetIcon) |
| 421 CR_MSG_WM_SETTEXT(OnSetText) | 421 CR_MSG_WM_SETTEXT(OnSetText) |
| 422 CR_MSG_WM_SETTINGCHANGE(OnSettingChange) | 422 CR_MSG_WM_SETTINGCHANGE(OnSettingChange) |
| 423 CR_MSG_WM_SIZE(OnSize) | 423 CR_MSG_WM_SIZE(OnSize) |
| 424 CR_MSG_WM_SYSCOMMAND(OnSysCommand) | 424 CR_MSG_WM_SYSCOMMAND(OnSysCommand) |
| 425 CR_MSG_WM_THEMECHANGED(OnThemeChanged) | 425 CR_MSG_WM_THEMECHANGED(OnThemeChanged) |
| 426 CR_MSG_WM_TIMECHANGE(OnTimeChange) |
| 426 CR_MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) | 427 CR_MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) |
| 427 CR_MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) | 428 CR_MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) |
| 428 CR_END_MSG_MAP() | 429 CR_END_MSG_MAP() |
| 429 | 430 |
| 430 // Message Handlers. | 431 // Message Handlers. |
| 431 // This list is in _ALPHABETICAL_ order! | 432 // This list is in _ALPHABETICAL_ order! |
| 432 // TODO(beng): Once this object becomes the WindowImpl, these methods can | 433 // TODO(beng): Once this object becomes the WindowImpl, these methods can |
| 433 // be made private. | 434 // be made private. |
| 434 void OnActivateApp(BOOL active, DWORD thread_id); | 435 void OnActivateApp(BOOL active, DWORD thread_id); |
| 435 // TODO(beng): return BOOL is temporary until this object becomes a | 436 // TODO(beng): return BOOL is temporary until this object becomes a |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param); | 474 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param); |
| 474 LRESULT OnScrollMessage(UINT message, WPARAM w_param, LPARAM l_param); | 475 LRESULT OnScrollMessage(UINT message, WPARAM w_param, LPARAM l_param); |
| 475 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); | 476 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); |
| 476 void OnSetFocus(HWND last_focused_window); | 477 void OnSetFocus(HWND last_focused_window); |
| 477 LRESULT OnSetIcon(UINT size_type, HICON new_icon); | 478 LRESULT OnSetIcon(UINT size_type, HICON new_icon); |
| 478 LRESULT OnSetText(const wchar_t* text); | 479 LRESULT OnSetText(const wchar_t* text); |
| 479 void OnSettingChange(UINT flags, const wchar_t* section); | 480 void OnSettingChange(UINT flags, const wchar_t* section); |
| 480 void OnSize(UINT param, const gfx::Size& size); | 481 void OnSize(UINT param, const gfx::Size& size); |
| 481 void OnSysCommand(UINT notification_code, const gfx::Point& point); | 482 void OnSysCommand(UINT notification_code, const gfx::Point& point); |
| 482 void OnThemeChanged(); | 483 void OnThemeChanged(); |
| 484 void OnTimeChange(); |
| 483 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); | 485 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); |
| 484 void OnWindowPosChanging(WINDOWPOS* window_pos); | 486 void OnWindowPosChanging(WINDOWPOS* window_pos); |
| 485 void OnWindowPosChanged(WINDOWPOS* window_pos); | 487 void OnWindowPosChanged(WINDOWPOS* window_pos); |
| 486 LRESULT OnWindowSizingFinished(UINT message, WPARAM w_param, LPARAM l_param); | 488 LRESULT OnWindowSizingFinished(UINT message, WPARAM w_param, LPARAM l_param); |
| 487 | 489 |
| 488 // Receives Windows Session Change notifications. | 490 // Receives Windows Session Change notifications. |
| 489 void OnSessionChange(WPARAM status_code); | 491 void OnSessionChange(WPARAM status_code); |
| 490 | 492 |
| 491 typedef std::vector<ui::TouchEvent> TouchEvents; | 493 typedef std::vector<ui::TouchEvent> TouchEvents; |
| 492 // Helper to handle the list of touch events passed in. We need this because | 494 // Helper to handle the list of touch events passed in. We need this because |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 | 711 |
| 710 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 712 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
| 711 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 713 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
| 712 | 714 |
| 713 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 715 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 714 }; | 716 }; |
| 715 | 717 |
| 716 } // namespace views | 718 } // namespace views |
| 717 | 719 |
| 718 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 720 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |