Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_wearable / js-overlay / js_overlay_types.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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  * @file       js_overlay_types.h
19  * @author     Yunchan Cho (yunchan.cho@samsung.com)
20  * @version    0.1
21  * @brief
22  */
23
24 #ifndef _WRT_PLUGINS_JS_OVERLAY_TYPES_H_
25 #define _WRT_PLUGINS_JS_OVERLAY_TYPES_H_
26
27 #include <string>
28
29 namespace WrtPlugins {
30 namespace W3C {
31 // If needed, enum for new custom event should be defined here
32 enum CustomEventType {
33     StorageCustomEvent,
34     ServiceCustomEvent,
35     SoftKeyboardChangeCustomEvent,
36 };
37
38 // Argument structure of SoftKeyboardChangeCustomEvent
39 typedef struct SoftKeyboardChangeArgs {
40     std::string state; // value is 'on' or 'off'
41     int width;
42     int height;
43     SoftKeyboardChangeArgs() :
44         width(0),
45         height(0)
46     {}
47 } SoftKeyboardChangeArgs;
48
49 // If needed, argument structure of other custom events should be defined here
50 } // W3C
51 } // WrtPlugins
52 #endif // _WRT_PLUGINS_JS_OVERLAY_TYPES_H_