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

Unified Diff: Source/core/events/FocusEvent.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/Event.cpp ('k') | Source/core/events/FocusEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/FocusEvent.h
diff --git a/Source/core/events/FocusEvent.h b/Source/core/events/FocusEvent.h
index d59a7d83b4530c6e064dfc93e9f8be661bc4d08b..bcb1fd7d7768a748b30cfab02f91a3f4636734cd 100644
--- a/Source/core/events/FocusEvent.h
+++ b/Source/core/events/FocusEvent.h
@@ -56,6 +56,8 @@ public:
const AtomicString& interfaceName() const override;
bool isFocusEvent() const override;
+ PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -77,33 +79,6 @@ private:
bool dispatchEvent(EventDispatcher&) const override;
};
-class BlurEventDispatchMediator final : public EventDispatchMediator {
-public:
- static PassRefPtrWillBeRawPtr<BlurEventDispatchMediator> create(PassRefPtrWillBeRawPtr<FocusEvent>);
-private:
- explicit BlurEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
- FocusEvent& event() const { return static_cast<FocusEvent&>(EventDispatchMediator::event()); }
- bool dispatchEvent(EventDispatcher&) const override;
-};
-
-class FocusInEventDispatchMediator final : public EventDispatchMediator {
-public:
- static PassRefPtrWillBeRawPtr<FocusInEventDispatchMediator> create(PassRefPtrWillBeRawPtr<FocusEvent>);
-private:
- explicit FocusInEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
- FocusEvent& event() const { return static_cast<FocusEvent&>(EventDispatchMediator::event()); }
- bool dispatchEvent(EventDispatcher&) const override;
-};
-
-class FocusOutEventDispatchMediator final : public EventDispatchMediator {
-public:
- static PassRefPtrWillBeRawPtr<FocusOutEventDispatchMediator> create(PassRefPtrWillBeRawPtr<FocusEvent>);
-private:
- explicit FocusOutEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
- FocusEvent& event() const { return static_cast<FocusEvent&>(EventDispatchMediator::event()); }
- bool dispatchEvent(EventDispatcher&) const override;
-};
-
} // namespace blink
#endif // FocusEvent_h
« no previous file with comments | « Source/core/events/Event.cpp ('k') | Source/core/events/FocusEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698