// Copyright 2015 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 REMOTING_CLIENT_JNI_JNI_TOUCH_EVENT_DATA_H_ #define REMOTING_CLIENT_JNI_JNI_TOUCH_EVENT_DATA_H_ #include #include "base/android/scoped_java_ref.h" #include "base/macros.h" namespace remoting { namespace protocol { class TouchEventPoint; } class JniTouchEventData { public: JniTouchEventData(); ~JniTouchEventData(); // Register C++ methods exposed to Java using JNI. static bool RegisterJni(JNIEnv* env); // Copies touch point data from a Java object to a C++ object. static void CopyTouchPointData( JNIEnv* env, const base::android::ScopedJavaLocalRef& java_object, protocol::TouchEventPoint* touch_event_point); private: DISALLOW_COPY_AND_ASSIGN(JniTouchEventData); }; } // namespace remoting #endif // REMOTING_CLIENT_JNI_JNI_TOUCH_EVENT_DATA_H_