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

Unified Diff: Source/core/events/WheelEvent.h

Issue 1227363006: Virtualize EventDispatchMediator creation and cleanup calling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master_event_trusted_main
Patch Set: Rebase Created 5 years, 5 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
« no previous file with comments | « Source/core/events/TouchEvent.cpp ('k') | Source/core/events/WheelEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/WheelEvent.h
diff --git a/Source/core/events/WheelEvent.h b/Source/core/events/WheelEvent.h
index f15fbe31d0fd88eb51d322448e01eeb9789852d3..6659e2d06aff20472853b7f536cc647c96e362a9 100644
--- a/Source/core/events/WheelEvent.h
+++ b/Source/core/events/WheelEvent.h
@@ -51,6 +51,8 @@ public:
return adoptRefWillBeNoop(new WheelEvent);
}
+ static PassRefPtrWillBeRawPtr<WheelEvent> create(const PlatformWheelEvent& platformEvent, PassRefPtrWillBeRawPtr<AbstractView>);
+
static PassRefPtrWillBeRawPtr<WheelEvent> create(const AtomicString& type, const WheelEventInit& initializer)
{
return adoptRefWillBeNoop(new WheelEvent(type, initializer));
@@ -82,6 +84,8 @@ public:
bool isMouseEvent() const override;
bool isWheelEvent() const override;
+ PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -105,9 +109,10 @@ DEFINE_EVENT_TYPE_CASTS(WheelEvent);
class WheelEventDispatchMediator final : public EventDispatchMediator {
public:
- static PassRefPtrWillBeRawPtr<WheelEventDispatchMediator> create(const PlatformWheelEvent&, PassRefPtrWillBeRawPtr<AbstractView>);
+ static PassRefPtrWillBeRawPtr<WheelEventDispatchMediator> create(PassRefPtrWillBeRawPtr<WheelEvent>);
+
private:
- WheelEventDispatchMediator(const PlatformWheelEvent&, PassRefPtrWillBeRawPtr<AbstractView>);
+ explicit WheelEventDispatchMediator(PassRefPtrWillBeRawPtr<WheelEvent>);
WheelEvent& event() const;
bool dispatchEvent(EventDispatcher&) const override;
};
« no previous file with comments | « Source/core/events/TouchEvent.cpp ('k') | Source/core/events/WheelEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698