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

Unified Diff: Source/core/events/MouseRelatedEvent.cpp

Issue 453493002: Improve detection of touch events when hiding media controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@autoHideControls
Patch Set: Added multimodal tests and NotFromInput synthetic type. Created 6 years, 4 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: Source/core/events/MouseRelatedEvent.cpp
diff --git a/Source/core/events/MouseRelatedEvent.cpp b/Source/core/events/MouseRelatedEvent.cpp
index 9b7f32ec3a37666eff6bb73e64b3b17a7e226d55..e4cbcdabc2421cf404c3ce96bb30887f2441cb58 100644
--- a/Source/core/events/MouseRelatedEvent.cpp
+++ b/Source/core/events/MouseRelatedEvent.cpp
@@ -35,6 +35,7 @@ namespace blink {
MouseRelatedEvent::MouseRelatedEvent()
: m_isSimulated(false)
, m_hasCachedRelativePosition(false)
+ , m_syntheticEventType(PlatformMouseEvent::NotSyntheticOrIndistinguishable)
{
}
@@ -52,14 +53,15 @@ static LayoutSize contentsScrollOffset(AbstractView* abstractView)
return LayoutSize(frameView->scrollX() / scaleFactor, frameView->scrollY() / scaleFactor);
}
-MouseRelatedEvent::MouseRelatedEvent(const AtomicString& eventType, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> abstractView,
- int detail, const IntPoint& screenLocation, const IntPoint& windowLocation,
- const IntPoint& movementDelta,
- bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool isSimulated)
+MouseRelatedEvent::MouseRelatedEvent(const AtomicString& eventType, bool canBubble, bool cancelable,
+ PassRefPtrWillBeRawPtr<AbstractView> abstractView, int detail, const IntPoint& screenLocation,
+ const IntPoint& windowLocation, const IntPoint& movementDelta, bool ctrlKey, bool altKey,
+ bool shiftKey, bool metaKey, bool isSimulated, PlatformMouseEvent::SyntheticEventType syntheticEventType)
: UIEventWithKeyState(eventType, canBubble, cancelable, abstractView, detail, ctrlKey, altKey, shiftKey, metaKey)
, m_screenLocation(screenLocation)
, m_movementDelta(movementDelta)
, m_isSimulated(isSimulated)
+ , m_syntheticEventType(syntheticEventType)
{
LayoutPoint adjustedPageLocation;
LayoutPoint scrollPosition;

Powered by Google App Engine
This is Rietveld 408576698