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

Unified Diff: content/browser/android/touch_point.h

Issue 10532148: Adding java TouchPoint class for android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding native side and JNI binding code Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/touch_point.h
diff --git a/content/browser/android/touch_point.h b/content/browser/android/touch_point.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb64eb1b62a9c81a97dc5881d6c461a303a1407b
--- /dev/null
+++ b/content/browser/android/touch_point.h
@@ -0,0 +1,21 @@
+// 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_ANDROID_TOUCH_POINT_H_
+#define CONTENT_BROWSER_ANDROID_TOUCH_POINT_H_
+#pragma once
+
+#include <jni.h>
+
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
+
+class TouchPoint {
Yaron 2012/06/14 21:56:27 New code should be content namespace
qinmin 2012/06/14 22:20:58 Done.
+ public:
+ static void BuildWebTouchEvent(JNIEnv* env, jint type, jlong time_ms,
+ jobjectArray pts, WebKit::WebTouchEvent& event);
+};
+
+bool RegisterTouchPoint(JNIEnv* env);
+
+#endif // CONTENT_BROWSER_ANDROID_CHROME_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698