Merge "(ItemLayout) Remove redundant GetResizeAnimation" into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-script-v8 / src / image / native-image-api.cpp
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include "frame-buffer-image-api.h"
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/images/native-image.h>
23
24 // INTERNAL INCLUDES
25 #include <v8-utils.h>
26 #include <image/image-wrapper.h>
27
28
29 namespace Dali
30 {
31
32 namespace V8Plugin
33 {
34
35 namespace NativeImageApi
36 {
37
38 /**
39  * ## NativeImage **Not Supported**
40  * NativeImage represents an image resource that can be added to ImageActors.
41  * Its data is provided by native resources, such as shared bitmap memory or pixmap from X11 or ECORE-X11, etc.
42  * @class NativeImage
43  * @extends Image
44  */
45
46 /**
47  * **Currently not supported. This is a Place holder**
48  * @constructor
49  * @method NativeImage
50  * @for NativeImage
51  * @return {Object} Image
52  */
53 Image New( const v8::FunctionCallbackInfo< v8::Value >& args )
54 {
55   // return empty image handle
56   return NativeImage();
57 }
58
59 } // NativeImageApi
60
61 } // namespace V8Plugin
62
63 } // namespace Dali