| 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_WIDGET_NATIVE_WIDGET_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlapp.h> | 10 #include <atlapp.h> |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // Reflected message handler | 286 // Reflected message handler |
| 287 MESSAGE_HANDLER_EX(base::win::kReflectedMessage, OnReflectedMessage) | 287 MESSAGE_HANDLER_EX(base::win::kReflectedMessage, OnReflectedMessage) |
| 288 | 288 |
| 289 // CustomFrameWindow hacks | 289 // CustomFrameWindow hacks |
| 290 MESSAGE_HANDLER_EX(WM_NCUAHDRAWCAPTION, OnNCUAHDrawCaption) | 290 MESSAGE_HANDLER_EX(WM_NCUAHDRAWCAPTION, OnNCUAHDrawCaption) |
| 291 MESSAGE_HANDLER_EX(WM_NCUAHDRAWFRAME, OnNCUAHDrawFrame) | 291 MESSAGE_HANDLER_EX(WM_NCUAHDRAWFRAME, OnNCUAHDrawFrame) |
| 292 | 292 |
| 293 // Vista and newer | 293 // Vista and newer |
| 294 MESSAGE_HANDLER_EX(WM_DWMCOMPOSITIONCHANGED, OnDwmCompositionChanged) | 294 MESSAGE_HANDLER_EX(WM_DWMCOMPOSITIONCHANGED, OnDwmCompositionChanged) |
| 295 | 295 |
| 296 // Windows 7 and newer |
| 297 MESSAGE_HANDLER_EX(WM_DWMSENDICONICTHUMBNAIL, |
| 298 OnDwmSendIconicThumbnail) |
| 299 MESSAGE_HANDLER_EX(WM_DWMSENDICONICLIVEPREVIEWBITMAP, |
| 300 OnDwmSendIconicLivePreviewBitmap) |
| 301 |
| 296 // Non-atlcrack.h handlers | 302 // Non-atlcrack.h handlers |
| 297 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject) | 303 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject) |
| 298 | 304 |
| 299 // Mouse events. | 305 // Mouse events. |
| 300 MESSAGE_HANDLER_EX(WM_MOUSEACTIVATE, OnMouseActivate) | 306 MESSAGE_HANDLER_EX(WM_MOUSEACTIVATE, OnMouseActivate) |
| 301 MESSAGE_HANDLER_EX(WM_MOUSELEAVE, OnMouseRange) | 307 MESSAGE_HANDLER_EX(WM_MOUSELEAVE, OnMouseRange) |
| 302 MESSAGE_HANDLER_EX(WM_NCMOUSELEAVE, OnMouseRange) | 308 MESSAGE_HANDLER_EX(WM_NCMOUSELEAVE, OnMouseRange) |
| 303 MESSAGE_HANDLER_EX(WM_SETCURSOR, OnSetCursor); | 309 MESSAGE_HANDLER_EX(WM_SETCURSOR, OnSetCursor); |
| 304 | 310 |
| 305 // Key events. | 311 // Key events. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 virtual void OnClose(); | 384 virtual void OnClose(); |
| 379 virtual void OnCommand(UINT notification_code, int command_id, HWND window); | 385 virtual void OnCommand(UINT notification_code, int command_id, HWND window); |
| 380 virtual LRESULT OnCreate(CREATESTRUCT* create_struct); | 386 virtual LRESULT OnCreate(CREATESTRUCT* create_struct); |
| 381 // WARNING: If you override this be sure and invoke super, otherwise we'll | 387 // WARNING: If you override this be sure and invoke super, otherwise we'll |
| 382 // leak a few things. | 388 // leak a few things. |
| 383 virtual void OnDestroy(); | 389 virtual void OnDestroy(); |
| 384 virtual void OnDisplayChange(UINT bits_per_pixel, CSize screen_size); | 390 virtual void OnDisplayChange(UINT bits_per_pixel, CSize screen_size); |
| 385 virtual LRESULT OnDwmCompositionChanged(UINT msg, | 391 virtual LRESULT OnDwmCompositionChanged(UINT msg, |
| 386 WPARAM w_param, | 392 WPARAM w_param, |
| 387 LPARAM l_param); | 393 LPARAM l_param); |
| 394 virtual LRESULT OnDwmSendIconicThumbnail(UINT msg, |
| 395 WPARAM w_param, |
| 396 LPARAM l_param); |
| 397 virtual LRESULT OnDwmSendIconicLivePreviewBitmap(UINT msg, |
| 398 WPARAM w_param, |
| 399 LPARAM l_param); |
| 388 virtual void OnEndSession(BOOL ending, UINT logoff); | 400 virtual void OnEndSession(BOOL ending, UINT logoff); |
| 389 virtual void OnEnterSizeMove(); | 401 virtual void OnEnterSizeMove(); |
| 390 virtual LRESULT OnEraseBkgnd(HDC dc); | 402 virtual LRESULT OnEraseBkgnd(HDC dc); |
| 391 virtual void OnExitMenuLoop(BOOL is_track_popup_menu); | 403 virtual void OnExitMenuLoop(BOOL is_track_popup_menu); |
| 392 virtual void OnExitSizeMove(); | 404 virtual void OnExitSizeMove(); |
| 393 virtual LRESULT OnGetObject(UINT uMsg, WPARAM w_param, LPARAM l_param); | 405 virtual LRESULT OnGetObject(UINT uMsg, WPARAM w_param, LPARAM l_param); |
| 394 virtual void OnGetMinMaxInfo(MINMAXINFO* minmax_info); | 406 virtual void OnGetMinMaxInfo(MINMAXINFO* minmax_info); |
| 395 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar); | 407 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar); |
| 396 virtual LRESULT OnImeMessages(UINT message, WPARAM w_param, LPARAM l_param); | 408 virtual LRESULT OnImeMessages(UINT message, WPARAM w_param, LPARAM l_param); |
| 397 virtual void OnInitMenu(HMENU menu); | 409 virtual void OnInitMenu(HMENU menu); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 bool has_non_client_view_; | 665 bool has_non_client_view_; |
| 654 | 666 |
| 655 bool remove_standard_frame_; | 667 bool remove_standard_frame_; |
| 656 | 668 |
| 657 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 669 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
| 658 }; | 670 }; |
| 659 | 671 |
| 660 } // namespace views | 672 } // namespace views |
| 661 | 673 |
| 662 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 674 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| OLD | NEW |