Index: views/widget/native_widget_win.h |
diff --git a/views/widget/native_widget_win.h b/views/widget/native_widget_win.h |
index 82ae23f7c259238851b56f437839f01482090d2d..6d840f52563e5115cc2f8adf97f1f771e64096ab 100644 |
--- a/views/widget/native_widget_win.h |
+++ b/views/widget/native_widget_win.h |
@@ -332,6 +332,7 @@ class VIEWS_EXPORT NativeWidgetWin : public ui::WindowImpl, |
MSG_WM_COMMAND(OnCommand) |
MSG_WM_CREATE(OnCreate) |
MSG_WM_DESTROY(OnDestroy) |
+ MSG_WM_DEVICECHANGE(OnDeviceChange) |
MSG_WM_DISPLAYCHANGE(OnDisplayChange) |
MSG_WM_ERASEBKGND(OnEraseBkgnd) |
MSG_WM_ENDSESSION(OnEndSession) |
@@ -385,6 +386,7 @@ class VIEWS_EXPORT NativeWidgetWin : public ui::WindowImpl, |
// WARNING: If you override this be sure and invoke super, otherwise we'll |
// leak a few things. |
virtual void OnDestroy(); |
+ virtual LRESULT OnDeviceChange(UINT event_type, DWORD data); |
virtual void OnDisplayChange(UINT bits_per_pixel, CSize screen_size); |
virtual LRESULT OnDwmCompositionChanged(UINT msg, |
WPARAM w_param, |