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

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

Issue 11339037: aura-touch: Refactor some code so that both cros and win-aura can share some code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
index 032ef3e96943a3a90cd94a5e9655417bc67680bf..c43cb29e3d7ea9929ad7a21b00c7e220b93e7787 100644
--- a/content/browser/renderer_host/ui_events_helper.h
+++ b/content/browser/renderer_host/ui_events_helper.h
@@ -10,6 +10,7 @@
namespace WebKit {
class WebTouchEvent;
+class WebTouchPoint;
}
namespace ui {
@@ -26,6 +27,15 @@ namespace content {
CONTENT_EXPORT bool MakeUITouchEventsFromWebTouchEvents(
const WebKit::WebTouchEvent& touch,
ScopedVector<ui::TouchEvent>* list);
+
+int EventFlagsToWebEventModifiers(int flags);
+
+// Updates the WebTouchEvent based on the TouchEvent. It returns the updated
+// WebTouchPoint contained in the WebTouchEvent, or NULL if no point was
+// updated.
+WebKit::WebTouchPoint* UpdateWebTouchEventFromUIEvent(
+ ui::TouchEvent* event,
+ WebKit::WebTouchEvent* web_event);
}
#endif // CONTENT_BROWSER_RENDERER_HOST_UI_EVENTS_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698