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

Unified Diff: ui/events/event.cc

Issue 1461643002: Initialize member variables of ui::ScrollEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | 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 0e7d0f19730d7b324f22dd1c3a7a73c1c1e61d89..cb771b7ea4554af9d632df118d3716e61c721d44 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -918,7 +918,12 @@ std::string KeyEvent::GetCodeString() const {
// ScrollEvent
ScrollEvent::ScrollEvent(const base::NativeEvent& native_event)
- : MouseEvent(native_event) {
+ : MouseEvent(native_event),
+ x_offset_(0.0f),
+ y_offset_(0.0f),
+ x_offset_ordinal_(0.0f),
+ y_offset_ordinal_(0.0f),
+ finger_count_(0) {
if (type() == ET_SCROLL) {
GetScrollOffsets(native_event,
&x_offset_, &y_offset_,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698