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

Unified Diff: content/browser/renderer_host/ui_events_helper.h

Issue 11188012: gesture recognizer: Remove the touch-event queue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 2 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: content/browser/renderer_host/ui_events_helper.h
diff --git a/content/browser/renderer_host/ui_events_helper.h b/content/browser/renderer_host/ui_events_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb0d36083803438a8e83577015f8b3b2856f2bd6
--- /dev/null
+++ b/content/browser/renderer_host/ui_events_helper.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_
+#define CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_
+
+#include "base/memory/scoped_vector.h"
+
+namespace WebKit {
+class WebTouchEvent;
+}
+
+namespace ui {
+class TouchEvent;
+}
+
+namespace content {
+
+// Creates a list of ui::TouchEvents out of a single WebTouchEvent.
+// A WebTouchEvent can contain information about a number of WebTouchPoints,
+// whereas a ui::TouchEvent contains information about a single touch-point. So
+// it is possible to create more than one ui::TouchEvents out of a single
+// WebTouchEvent.
+bool MakeUITouchEventsFromWebTouchEvents(const WebKit::WebTouchEvent& touch,
+ ScopedVector<ui::TouchEvent>* list);
+}
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_
« no previous file with comments | « content/browser/renderer_host/touch_event_queue.cc ('k') | content/browser/renderer_host/ui_events_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698