| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 MSG_WM_INPUTLANGCHANGE(OnInputLangChange) | 289 MSG_WM_INPUTLANGCHANGE(OnInputLangChange) |
| 290 MSG_WM_KILLFOCUS(OnKillFocus) | 290 MSG_WM_KILLFOCUS(OnKillFocus) |
| 291 MSG_WM_MOVE(OnMove) | 291 MSG_WM_MOVE(OnMove) |
| 292 MSG_WM_MOVING(OnMoving) | 292 MSG_WM_MOVING(OnMoving) |
| 293 MSG_WM_NCACTIVATE(OnNCActivate) | 293 MSG_WM_NCACTIVATE(OnNCActivate) |
| 294 MSG_WM_NCCALCSIZE(OnNCCalcSize) | 294 MSG_WM_NCCALCSIZE(OnNCCalcSize) |
| 295 MSG_WM_NCHITTEST(OnNCHitTest) | 295 MSG_WM_NCHITTEST(OnNCHitTest) |
| 296 MSG_WM_NCPAINT(OnNCPaint) | 296 MSG_WM_NCPAINT(OnNCPaint) |
| 297 MSG_WM_NOTIFY(OnNotify) | 297 MSG_WM_NOTIFY(OnNotify) |
| 298 MSG_WM_PAINT(OnPaint) | 298 MSG_WM_PAINT(OnPaint) |
| 299 MSG_WM_POWERBROADCAST(OnPowerBroadcast) | |
| 300 MSG_WM_SETFOCUS(OnSetFocus) | 299 MSG_WM_SETFOCUS(OnSetFocus) |
| 301 MSG_WM_SETICON(OnSetIcon) | 300 MSG_WM_SETICON(OnSetIcon) |
| 302 MSG_WM_SETTEXT(OnSetText) | 301 MSG_WM_SETTEXT(OnSetText) |
| 303 MSG_WM_SETTINGCHANGE(OnSettingChange) | 302 MSG_WM_SETTINGCHANGE(OnSettingChange) |
| 304 MSG_WM_SIZE(OnSize) | 303 MSG_WM_SIZE(OnSize) |
| 305 MSG_WM_SYSCOMMAND(OnSysCommand) | 304 MSG_WM_SYSCOMMAND(OnSysCommand) |
| 306 MSG_WM_THEMECHANGED(OnThemeChanged) | 305 MSG_WM_THEMECHANGED(OnThemeChanged) |
| 307 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) | 306 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) |
| 308 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) | 307 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) |
| 309 END_MSG_MAP() | 308 END_MSG_MAP() |
| (...skipping 29 matching lines...) Expand all Loading... |
| 339 void OnMove(const CPoint& point); | 338 void OnMove(const CPoint& point); |
| 340 void OnMoving(UINT param, const RECT* new_bounds); | 339 void OnMoving(UINT param, const RECT* new_bounds); |
| 341 LRESULT OnNCActivate(BOOL active); | 340 LRESULT OnNCActivate(BOOL active); |
| 342 LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); | 341 LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); |
| 343 LRESULT OnNCHitTest(const CPoint& point); | 342 LRESULT OnNCHitTest(const CPoint& point); |
| 344 void OnNCPaint(HRGN rgn); | 343 void OnNCPaint(HRGN rgn); |
| 345 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); | 344 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); |
| 346 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); | 345 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); |
| 347 LRESULT OnNotify(int w_param, NMHDR* l_param); | 346 LRESULT OnNotify(int w_param, NMHDR* l_param); |
| 348 void OnPaint(HDC dc); | 347 void OnPaint(HDC dc); |
| 349 LRESULT OnPowerBroadcast(DWORD power_event, DWORD data); | |
| 350 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param); | 348 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param); |
| 351 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); | 349 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); |
| 352 void OnSetFocus(HWND last_focused_window); | 350 void OnSetFocus(HWND last_focused_window); |
| 353 LRESULT OnSetIcon(UINT size_type, HICON new_icon); | 351 LRESULT OnSetIcon(UINT size_type, HICON new_icon); |
| 354 LRESULT OnSetText(const wchar_t* text); | 352 LRESULT OnSetText(const wchar_t* text); |
| 355 void OnSettingChange(UINT flags, const wchar_t* section); | 353 void OnSettingChange(UINT flags, const wchar_t* section); |
| 356 void OnSize(UINT param, const CSize& size); | 354 void OnSize(UINT param, const CSize& size); |
| 357 void OnSysCommand(UINT notification_code, const CPoint& point); | 355 void OnSysCommand(UINT notification_code, const CPoint& point); |
| 358 void OnThemeChanged(); | 356 void OnThemeChanged(); |
| 359 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); | 357 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 | 460 |
| 463 // True the first time nccalc is called on a sizable widget | 461 // True the first time nccalc is called on a sizable widget |
| 464 bool is_first_nccalc_; | 462 bool is_first_nccalc_; |
| 465 | 463 |
| 466 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 464 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 467 }; | 465 }; |
| 468 | 466 |
| 469 } // namespace views | 467 } // namespace views |
| 470 | 468 |
| 471 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 469 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |