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

Unified Diff: ui/events/event.cc

Issue 2454323002: MacViews: Reveal scrollbars when resting on the trackpad. (Closed)
Patch Set: rebase for r432358 Created 4 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 | « ui/events/event.h ('k') | ui/events/test/event_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index e82747ba32183cca73e95264af1af5345ebc8051..dc212a5faa902d6c09284c8a24d7cea4a1a61ed9 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -1388,13 +1388,15 @@ ScrollEvent::ScrollEvent(EventType type,
float y_offset,
float x_offset_ordinal,
float y_offset_ordinal,
- int finger_count)
+ int finger_count,
+ EventMomentumPhase momentum_phase)
: MouseEvent(type, location, location, time_stamp, flags, 0),
x_offset_(x_offset),
y_offset_(y_offset),
x_offset_ordinal_(x_offset_ordinal),
y_offset_ordinal_(y_offset_ordinal),
- finger_count_(finger_count) {
+ finger_count_(finger_count),
+ momentum_phase_(momentum_phase) {
CHECK(IsScrollEvent());
latency()->set_source_event_type(ui::SourceEventType::WHEEL);
}
« no previous file with comments | « ui/events/event.h ('k') | ui/events/test/event_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698