Tizen 2.1 base
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / API / efl / tizen / ewk_popup_picker.h
1 /*
2  * Copyright (C) 2012 Samsung Electronics
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB.  If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef ewk_popup_picker_h
21 #define ewk_popup_picker_h
22
23 typedef struct _Evas_Object Evas_Object;
24 typedef struct _Elm_Object_Item Elm_Object_Item;
25 typedef struct _Eina_List Eina_List;
26
27 namespace WebKit {
28 class WebPopupMenuProxyTizen;
29 }
30
31 struct _Ewk_Popup_Picker {
32     Evas_Object* container;
33     Evas_Object* parent;
34     Evas_Object* popupList;
35     Elm_Object_Item* firstItem;
36     int selectedIndex;
37 };
38 typedef struct _Ewk_Popup_Picker Ewk_Popup_Picker;
39
40 Ewk_Popup_Picker* ewk_popup_picker_new(Evas_Object* parent, Eina_List* items, int selectedIndex);
41 void ewk_popup_picker_resize(Ewk_Popup_Picker* picker);
42 void ewk_popup_picker_del(Ewk_Popup_Picker* picker);
43
44 #if ENABLE(TIZEN_WEBKIT2_POPUP_INTERNAL)
45 void ewk_popup_picker_update(Evas_Object* parent, Ewk_Popup_Picker* picker, Eina_List* items, int selectedIndex);
46 #endif
47
48 #endif // ewk_popup_picker_h