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

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: add namespace for newly upstreamed 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
« no previous file with comments | « content/app/android/content_jni_registrar.cc ('k') | content/browser/android/touch_point.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..33ddf8ee0abfac62f6767c1c8f0335e37f3dac06
--- /dev/null
+++ b/content/browser/android/touch_point.h
@@ -0,0 +1,25 @@
+// 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>
John Grabowski 2012/06/14 23:48:10 Quick question: will content shell ever use touch
qinmin 2012/06/15 00:14:02 According to Ted, the answer is yes. On 2012/06/1
John Grabowski 2012/06/18 18:37:29 If the answer is yes, this header needs to be in c
+
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
+
+namespace content {
+
+class TouchPoint {
John Grabowski 2012/06/14 23:48:10 Class comment per style guide
qinmin 2012/06/15 00:14:02 Done.
+ public:
+ static void BuildWebTouchEvent(JNIEnv* env, jint type, jlong time_ms,
+ jobjectArray pts, WebKit::WebTouchEvent& event);
+};
+
+bool RegisterTouchPoint(JNIEnv* env);
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_ANDROID_CHROME_VIEW_H_
« no previous file with comments | « content/app/android/content_jni_registrar.cc ('k') | content/browser/android/touch_point.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698