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

Unified Diff: ui/views/win/hwnd_message_handler.h

Issue 1283913002: Improve scroll performance on Windows 10 with high precision touchpads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't pass wheel messages to DirectManipulation from views if it is coming from the child Created 5 years, 4 months 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: ui/views/win/hwnd_message_handler.h
diff --git a/ui/views/win/hwnd_message_handler.h b/ui/views/win/hwnd_message_handler.h
index 79374fd3d0f9ca3605432dd47522ccffe1be39c5..f67319e68d21f0cc2a60530789384cdeeba6646a 100644
--- a/ui/views/win/hwnd_message_handler.h
+++ b/ui/views/win/hwnd_message_handler.h
@@ -23,6 +23,7 @@
#include "ui/events/event.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/sequential_id_generator.h"
+#include "ui/gfx/win/direct_manipulation.h"
sky 2015/08/11 23:45:02 forward declare the class and include in the .cc.
ananta 2015/08/12 00:41:58 Done.
#include "ui/gfx/win/window_impl.h"
#include "ui/views/views_export.h"
@@ -593,6 +594,11 @@ class VIEWS_EXPORT HWNDMessageHandler :
// The factory used with BEGIN_SAFE_MSG_MAP_EX.
base::WeakPtrFactory<HWNDMessageHandler> weak_factory_;
+ // This class provides functionality to register the legacy window as a
+ // Direct Manipulation consumer. This allows us to support smooth scroll
+ // in Chrome on Windows 10.
+ scoped_ptr<gfx::win::DirectManipulationHelper> direct_manipulation_helper_;
+
DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
};

Powered by Google App Engine
This is Rietveld 408576698