1 #ifndef __DALI_V8PLUGIN_EVENT_OBJECT_GENERATOR_H__
2 #define __DALI_V8PLUGIN_EVENT_OBJECT_GENERATOR_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
24 #include <dali/public-api/events/touch-data.h>
25 #include <dali/public-api/events/hover-event.h>
26 #include <dali/public-api/events/wheel-event.h>
27 #include <dali/public-api/events/key-event.h>
28 #include <dali/public-api/events/pan-gesture.h>
38 * Used to convert Dali event objects into pure JavaScript objects.
39 * The objects created are not wrappers around a Dali object,
40 * however TouchPoint.Actor is a wrapped actor
42 namespace EventObjectGenerator
45 v8::Handle<v8::Object> CreateTouchData( v8::Isolate* isolate, const TouchData& touch );
46 v8::Handle<v8::Object> CreateHoverEvent( v8::Isolate* isolate, const HoverEvent& hoverEvent);
47 v8::Handle<v8::Object> CreateWheelEvent( v8::Isolate* isolate, const WheelEvent& wheelEvent);
48 v8::Handle<v8::Object> CreateKeyEvent( v8::Isolate* isolate, const KeyEvent& keyEvent);
49 v8::Handle<v8::Object> CreatePanGesture( v8::Isolate* isolate, const PanGesture& panGesture);
55 } // namespace V8Plugin