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

Side by Side Diff: ui/events/gesture_detection/gesture_event_data.cc

Issue 181833003: [Android] Out with the Android GR, in with the new unified C++ GR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/events/gesture_detection/gesture_event_data.h"
6
7 #include "base/logging.h"
8
9 namespace ui {
10
11 GestureEventData::GestureEventData()
12 : type(GESTURE_TYPE_INVALID), x(0), y(0) {}
13
14 GestureEventData::GestureEventData(GestureEventType type,
15 base::TimeTicks time,
16 float x,
17 float y,
18 const Details& details)
19 : type(type), time(time), x(x), y(y), details(details) {
20 DCHECK_NE(GESTURE_TYPE_INVALID, type);
21 }
22
23 GestureEventData::Details::Details() { memset(this, 0, sizeof(Details)); }
24
25 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/gesture_detection/gesture_event_data.h ('k') | ui/events/gesture_detection/gesture_event_data_packet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698