| 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..7bbc3794553f86d1c0da273d391da5c11490bc91
|
| --- /dev/null
|
| +++ b/content/browser/android/touch_point.h
|
| @@ -0,0 +1,27 @@
|
| +// 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"
|
| +
|
| +namespace content {
|
| +
|
| +// This class provides a helper method to convert a java object array of touch
|
| +// events into a WebKit::WebTouchEvent.
|
| +class TouchPoint {
|
| + 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_
|
|
|