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

Unified Diff: ui/events/gesture_event_details.h

Issue 2950913002: Added new features tests to AppListPresenterDelegateUnittests. (Closed)
Patch Set: Added new features tests to AppListPresenterDelegateUnittests. Added early test returns for Config:… Created 3 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 | « ui/app_list/views/app_list_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_event_details.h
diff --git a/ui/events/gesture_event_details.h b/ui/events/gesture_event_details.h
index 2b066d56188c5a7ae999492165d8e74b81b8734f..d826d478352408fdc71d8b38cd86687f10ca2389 100644
--- a/ui/events/gesture_event_details.h
+++ b/ui/events/gesture_event_details.h
@@ -97,7 +97,7 @@ struct EVENTS_BASE_EXPORT GestureEventDetails {
}
float velocity_y() const {
- DCHECK_EQ(ET_SCROLL_FLING_START, type_);
+ DCHECK(ET_SCROLL_FLING_START == type_ || ET_GESTURE_SCROLL_UPDATE == type_);
sadrul 2017/06/20 20:43:38 Where do we set the velocity for SCROLL_UPDATE?
newcomer 2017/06/20 21:23:34 It seems like it is not set: https://cs.chromium.o
sadrul 2017/06/20 21:39:00 I think that code wants scroll_y(), and it happens
newcomer 2017/06/20 23:42:43 Oh, interesting. Done! Thanks for your help.
return data_.fling_velocity.y;
}
« no previous file with comments | « ui/app_list/views/app_list_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698