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

Unified Diff: Source/platform/PlatformGestureEvent.h

Issue 732483003: Remove GestureScrollUpdateWithoutPropagation event (blink) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 1 month 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/platform/PlatformEvent.h ('k') | Source/platform/scroll/Scrollbar.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PlatformGestureEvent.h
diff --git a/Source/platform/PlatformGestureEvent.h b/Source/platform/PlatformGestureEvent.h
index c72cb1c1e03abe2a51a9737742be9a2a593a5695..2b5fb8f66468229be02b403ef5cbd6db565832b1 100644
--- a/Source/platform/PlatformGestureEvent.h
+++ b/Source/platform/PlatformGestureEvent.h
@@ -52,8 +52,7 @@ public:
memset(&m_data, 0, sizeof(m_data));
if (type == PlatformEvent::GestureScrollBegin
|| type == PlatformEvent::GestureScrollEnd
- || type == PlatformEvent::GestureScrollUpdate
- || type == PlatformEvent::GestureScrollUpdateWithoutPropagation) {
+ || type == PlatformEvent::GestureScrollUpdate) {
m_data.m_scrollUpdate.m_deltaX = deltaX;
m_data.m_scrollUpdate.m_deltaY = deltaY;
m_data.m_scrollUpdate.m_velocityX = velocityX;
@@ -69,15 +68,13 @@ public:
float deltaX() const
{
- ASSERT(m_type == PlatformEvent::GestureScrollUpdate
- || m_type == PlatformEvent::GestureScrollUpdateWithoutPropagation);
+ ASSERT(m_type == PlatformEvent::GestureScrollUpdate);
return m_data.m_scrollUpdate.m_deltaX;
}
float deltaY() const
{
- ASSERT(m_type == PlatformEvent::GestureScrollUpdate
- || m_type == PlatformEvent::GestureScrollUpdateWithoutPropagation);
+ ASSERT(m_type == PlatformEvent::GestureScrollUpdate);
return m_data.m_scrollUpdate.m_deltaY;
}
@@ -89,22 +86,19 @@ public:
float velocityX() const
{
- ASSERT(m_type == PlatformEvent::GestureScrollUpdate
- || m_type == PlatformEvent::GestureScrollUpdateWithoutPropagation);
+ ASSERT(m_type == PlatformEvent::GestureScrollUpdate);
return m_data.m_scrollUpdate.m_velocityX;
}
float velocityY() const
{
- ASSERT(m_type == PlatformEvent::GestureScrollUpdate
- || m_type == PlatformEvent::GestureScrollUpdateWithoutPropagation);
+ ASSERT(m_type == PlatformEvent::GestureScrollUpdate);
return m_data.m_scrollUpdate.m_velocityY;
}
bool preventPropagation() const
{
- ASSERT(m_type == PlatformEvent::GestureScrollUpdate
- || m_type == PlatformEvent::GestureScrollUpdateWithoutPropagation);
+ ASSERT(m_type == PlatformEvent::GestureScrollUpdate);
return m_data.m_scrollUpdate.m_preventPropagation;
}
@@ -130,7 +124,6 @@ public:
case GestureScrollBegin:
case GestureScrollEnd:
case GestureScrollUpdate:
- case GestureScrollUpdateWithoutPropagation:
case GestureFlingStart:
case GesturePinchBegin:
case GesturePinchEnd:
« no previous file with comments | « Source/platform/PlatformEvent.h ('k') | Source/platform/scroll/Scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698