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

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: Plumbed aura gestures, fixed unittests. 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
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 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 GestureEvent::GestureEvent(float x, 1269 GestureEvent::GestureEvent(float x,
1270 float y, 1270 float y,
1271 int flags, 1271 int flags,
1272 base::TimeDelta time_stamp, 1272 base::TimeDelta time_stamp,
1273 const GestureEventDetails& details) 1273 const GestureEventDetails& details)
1274 : LocatedEvent(details.type(), 1274 : LocatedEvent(details.type(),
1275 gfx::PointF(x, y), 1275 gfx::PointF(x, y),
1276 gfx::PointF(x, y), 1276 gfx::PointF(x, y),
1277 time_stamp, 1277 time_stamp,
1278 flags | EF_FROM_TOUCH), 1278 flags | EF_FROM_TOUCH),
1279 details_(details) { 1279 details_(details),
1280 unique_touch_event_id_(0U) {
1281 }
1282
1283 GestureEvent::GestureEvent(float x,
1284 float y,
1285 int flags,
1286 base::TimeDelta time_stamp,
1287 const GestureEventDetails& details,
1288 uint32_t unique_touch_event_id)
1289 : LocatedEvent(details.type(),
1290 gfx::PointF(x, y),
1291 gfx::PointF(x, y),
1292 time_stamp,
1293 flags | EF_FROM_TOUCH),
1294 details_(details),
1295 unique_touch_event_id_(unique_touch_event_id) {
1280 } 1296 }
1281 1297
1282 GestureEvent::~GestureEvent() { 1298 GestureEvent::~GestureEvent() {
1283 } 1299 }
1284 1300
1285 } // namespace ui 1301 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698