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

Unified Diff: trunk/Source/core/events/MouseEvent.h

Issue 1184693003: Revert 196987 "Don't invoke default actions for MouseEvents gene..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 5 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
« no previous file with comments | « trunk/Source/core/events/EventDispatcher.cpp ('k') | trunk/Source/core/events/MouseEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/events/MouseEvent.h
===================================================================
--- trunk/Source/core/events/MouseEvent.h (revision 197019)
+++ trunk/Source/core/events/MouseEvent.h (working copy)
@@ -79,9 +79,6 @@
bool fromTouch() const { return m_syntheticEventType == PlatformMouseEvent::FromTouch; }
- bool fromScript() const { return m_syntheticEventType == PlatformMouseEvent::FromScript; }
- void setFromScript() { m_syntheticEventType = PlatformMouseEvent::FromScript; }
-
virtual const AtomicString& interfaceName() const override;
virtual bool isMouseEvent() const override;
@@ -123,13 +120,16 @@
class MouseEventDispatchMediator final : public EventDispatchMediator {
public:
- static PassRefPtrWillBeRawPtr<MouseEventDispatchMediator> create(PassRefPtrWillBeRawPtr<MouseEvent>);
+ enum MouseEventType { SyntheticMouseEvent, NonSyntheticMouseEvent};
+ static PassRefPtrWillBeRawPtr<MouseEventDispatchMediator> create(PassRefPtrWillBeRawPtr<MouseEvent>, MouseEventType = NonSyntheticMouseEvent);
private:
- explicit MouseEventDispatchMediator(PassRefPtrWillBeRawPtr<MouseEvent>);
+ explicit MouseEventDispatchMediator(PassRefPtrWillBeRawPtr<MouseEvent>, MouseEventType);
MouseEvent& event() const;
virtual bool dispatchEvent(EventDispatcher&) const override;
+ bool isSyntheticMouseEvent() const { return m_mouseEventType == SyntheticMouseEvent; }
+ MouseEventType m_mouseEventType;
};
DEFINE_EVENT_TYPE_CASTS(MouseEvent);
« no previous file with comments | « trunk/Source/core/events/EventDispatcher.cpp ('k') | trunk/Source/core/events/MouseEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698