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

Unified Diff: third_party/WebKit/Source/core/input/MouseWheelEventManager.h

Issue 2936023002: MouseWheelEventManager is added to handle wheel events. (Closed)
Patch Set: review comments addressed. Created 3 years, 6 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: third_party/WebKit/Source/core/input/MouseWheelEventManager.h
diff --git a/third_party/WebKit/Source/core/input/MouseWheelEventManager.h b/third_party/WebKit/Source/core/input/MouseWheelEventManager.h
new file mode 100644
index 0000000000000000000000000000000000000000..ecf2e5ae20750706cc8dcc845e5441787b4fdc28
--- /dev/null
+++ b/third_party/WebKit/Source/core/input/MouseWheelEventManager.h
@@ -0,0 +1,35 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MouseWheelEventManager_h
+#define MouseWheelEventManager_h
+
+#include "platform/heap/Handle.h"
+#include "platform/heap/Visitor.h"
+#include "public/platform/WebInputEventResult.h"
+
+namespace blink {
+
+class LocalFrame;
+class ScrollManager;
+class WebMouseWheelEvent;
+
+class MouseWheelEventManager final
+ : public GarbageCollectedFinalized<MouseWheelEventManager> {
+ WTF_MAKE_NONCOPYABLE(MouseWheelEventManager);
+
+ public:
+ explicit MouseWheelEventManager(LocalFrame&, ScrollManager&);
+ DECLARE_TRACE();
+
+ WebInputEventResult HandleWheelEvent(const WebMouseWheelEvent&);
+
+ private:
+ const Member<LocalFrame> frame_;
+ Member<ScrollManager> scroll_manager_;
+};
+
+} // namespace blink
+
+#endif // MouseWheelEventManager_h

Powered by Google App Engine
This is Rietveld 408576698