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

Unified Diff: third_party/WebKit/Source/platform/PlatformWheelEvent.h

Issue 1894363004: Articulate the cancel behavior in WebMouseWheelEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_all_passive
Patch Set: Rebase Created 4 years, 8 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/platform/PlatformWheelEvent.h
diff --git a/third_party/WebKit/Source/platform/PlatformWheelEvent.h b/third_party/WebKit/Source/platform/PlatformWheelEvent.h
index 66a27a4a7eca2d26c07b3008aebf064e8827ea90..19163dbff69ee3b761dfa0a6887db62cf6d8eb5c 100644
--- a/third_party/WebKit/Source/platform/PlatformWheelEvent.h
+++ b/third_party/WebKit/Source/platform/PlatformWheelEvent.h
@@ -66,6 +66,7 @@ public:
, m_canScroll(true)
, m_resendingPluginId(-1)
, m_railsMode(RailsModeFree)
+ , m_dispatchType(Blocking)
#if OS(MACOSX)
, m_phase(PlatformWheelEventPhaseNone)
, m_momentumPhase(PlatformWheelEventPhaseNone)
@@ -92,7 +93,8 @@ public:
void setCanScroll(bool b) { m_canScroll = b; }
int resendingPluginId() const { return m_resendingPluginId; }
RailsMode getRailsMode() const { return m_railsMode; }
-
+ DispatchType dispatchType() const { return m_dispatchType; }
+ bool cancelable() const { return m_dispatchType == PlatformEvent::Blocking; }
#if OS(MACOSX)
PlatformWheelEventPhase phase() const { return m_phase; }
PlatformWheelEventPhase momentumPhase() const { return m_momentumPhase; }
@@ -112,6 +114,7 @@ protected:
bool m_canScroll;
int m_resendingPluginId;
RailsMode m_railsMode;
+ DispatchType m_dispatchType;
#if OS(MACOSX)
PlatformWheelEventPhase m_phase;
PlatformWheelEventPhase m_momentumPhase;
« no previous file with comments | « third_party/WebKit/Source/core/events/WheelEvent.cpp ('k') | third_party/WebKit/Source/web/WebInputEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698