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

Side by Side Diff: ui/events/event.cc

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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 unified diff | Download patch
« no previous file with comments | « ui/events/event.h ('k') | ui/events/gesture_detection/gesture_event_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/events/event.h" 5 #include "ui/events/event.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 10
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 y_offset_ordinal_ *= factor; 1270 y_offset_ordinal_ *= factor;
1271 } 1271 }
1272 1272
1273 //////////////////////////////////////////////////////////////////////////////// 1273 ////////////////////////////////////////////////////////////////////////////////
1274 // GestureEvent 1274 // GestureEvent
1275 1275
1276 GestureEvent::GestureEvent(float x, 1276 GestureEvent::GestureEvent(float x,
1277 float y, 1277 float y,
1278 int flags, 1278 int flags,
1279 base::TimeTicks time_stamp, 1279 base::TimeTicks time_stamp,
1280 const GestureEventDetails& details) 1280 const GestureEventDetails& details,
1281 uint32_t unique_touch_event_id)
1281 : LocatedEvent(details.type(), 1282 : LocatedEvent(details.type(),
1282 gfx::PointF(x, y), 1283 gfx::PointF(x, y),
1283 gfx::PointF(x, y), 1284 gfx::PointF(x, y),
1284 time_stamp, 1285 time_stamp,
1285 flags | EF_FROM_TOUCH), 1286 flags | EF_FROM_TOUCH),
1286 details_(details) {} 1287 details_(details),
1288 unique_touch_event_id_(unique_touch_event_id) {}
1287 1289
1288 GestureEvent::~GestureEvent() { 1290 GestureEvent::~GestureEvent() {
1289 } 1291 }
1290 1292
1291 } // namespace ui 1293 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/event.h ('k') | ui/events/gesture_detection/gesture_event_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698