Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: views/widget/native_widget_win.h

Issue 8523021: Send WM_DEVICECHANGE message through SystemMonitor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698