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

Unified Diff: ui/events/base_event_utils.h

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 side-by-side diff with in-line comments
Download patch
Index: ui/events/base_event_utils.h
diff --git a/ui/events/base_event_utils.h b/ui/events/base_event_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..9907faeecc0f51b8b5f9b358a0c90520e957f404
--- /dev/null
+++ b/ui/events/base_event_utils.h
@@ -0,0 +1,18 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_EVENTS_BASE_EVENT_UTILS_H_
+#define UI_EVENTS_BASE_EVENT_UTILS_H_
+
+#include "base/basictypes.h"
+#include "ui/events/events_base_export.h"
+
+namespace ui {
+
+// Generate an unique identifier for events.
+EVENTS_BASE_EXPORT uint32 GetNextTouchEventId();
+
sadrul 2015/04/23 16:56:23 Why not add this in event_utils.h instead?
tdresser 2015/04/23 17:13:19 Is event_utils.h included on Android?
sadrul 2015/04/23 17:16:28 If it's not, can it be?
lanwei 2015/04/24 20:21:09 I add a comment to clarify that event_utils.h will
+} // namespace ui
+
+#endif // UI_EVENTS_BASE_EVENT_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698