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

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

Issue 999423003: Set the unique_event_id when converting from TouchEvent to WebTouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 2015 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/base_event_utils.h"
6
7 namespace ui {
8
9 uint64 GetNextTouchEventId() {
10 // Set the first touch event ID to 1 because we set id to 0 for other types
jdduke (slow) 2015/04/21 22:40:16 Should we be asserting that we're on the UI thread
lanwei 2015/04/22 20:51:31 Done.
11 // of events.
12 static uint64 id = 1;
13 if (id==0)
14 id++;
15 return id++;
16 }
17
18 } // namespace ui
19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698