Merge "Moved TextureSet::SetImage() to separate devel-api module" into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-script-v8 / src / events / event-object-generator.h
1 #ifndef __DALI_V8PLUGIN_EVENT_OBJECT_GENERATOR_H__
2 #define __DALI_V8PLUGIN_EVENT_OBJECT_GENERATOR_H__
3
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21
22 // EXTERNAL INCLUDES
23 #include <v8.h>
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>
29
30 namespace Dali
31 {
32
33 namespace V8Plugin
34 {
35
36
37 /**
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
41  */
42 namespace EventObjectGenerator
43 {
44
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);
50
51
52
53 };
54
55 } // namespace V8Plugin
56
57 } // namespace Dali
58
59 #endif // header