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

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

Issue 2936023002: MouseWheelEventManager is added to handle wheel events. (Closed)
Patch Set: 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..dc0fef2ff20ffe163215733ae7581c2ebde233de
--- /dev/null
+++ b/third_party/WebKit/Source/core/input/MouseWheelEventManager.h
@@ -0,0 +1,36 @@
+// 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 "core/CoreExport.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 CORE_EXPORT MouseWheelEventManager final
bokan 2017/06/14 15:23:29 I don't think we need CORE_EXPORT
sahel 2017/06/14 15:56:34 Done.
+ : 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