[M49_2623] Chromium upversion to m49_2623 branch.
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / public / ewk_enums.h
1 // Copyright 2013 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ewk_enums_h
6 #define ewk_enums_h
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 /// Represents types of gesture.
13 enum _Ewk_Gesture_Type {
14     EWK_GESTURE_TAP,
15     EWK_GESTURE_LONG_PRESS,
16     EWK_GESTURE_PAN,
17     EWK_GESTURE_FLICK,
18     EWK_GESTURE_PINCH
19 };
20 /// Creates a type name for @a _Ewk_Gesture_Type.
21 typedef enum _Ewk_Gesture_Type Ewk_Gesture_Type;
22
23 //#if ENABLE(TIZEN_ORIENTATION_EVENTS)
24 enum _Ewk_Screen_Orientation {
25     EWK_SCREEN_ORIENTATION_PORTRAIT_PRIMARY = 1,
26     EWK_SCREEN_ORIENTATION_LANDSCAPE_PRIMARY = 1 << 1,
27     EWK_SCREEN_ORIENTATION_PORTRAIT_SECONDARY = 1 << 2,
28     EWK_SCREEN_ORIENTATION_LANDSCAPE_SECONDARY = 1 << 3
29 };
30 typedef enum _Ewk_Screen_Orientation Ewk_Screen_Orientation;
31 //#endif
32
33 /**
34  * \enum    Ewk_Cache_Model
35  *
36  * @brief   Contains option for cache model
37  */
38 enum _Ewk_Cache_Model {
39     /// Use the smallest cache capacity.
40     EWK_CACHE_MODEL_DOCUMENT_VIEWER,
41     /// Use bigger cache capacity than EWK_CACHE_MODEL_DOCUMENT_VIEWER.
42     EWK_CACHE_MODEL_DOCUMENT_BROWSER,
43     /// Use the biggest cache capacity.
44     EWK_CACHE_MODEL_PRIMARY_WEBBROWSER
45 };
46
47 /// Creates a type name for the Ewk_Cache_Model.
48 typedef enum _Ewk_Cache_Model Ewk_Cache_Model;
49
50 #ifdef __cplusplus
51 }
52 #endif
53
54 #endif // ewk_enums_h