ewebkit2  1.11.0
Web engine based on WebKit2 for EFL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ewk_context_menu_item.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Samsung Electronics. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
14  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
17  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24  */
25 
31 #ifndef ewk_context_menu_item_h
32 #define ewk_context_menu_item_h
33 
34 #include <Eina.h>
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
45 typedef struct EwkObject Ewk_Context_Menu;
46 
48 typedef struct EwkContextMenuItem Ewk_Context_Menu_Item;
49 
54 typedef enum {
55  EWK_ACTION_TYPE,
56  EWK_CHECKABLE_ACTION_TYPE,
57  EWK_SEPARATOR_TYPE,
58  EWK_SUBMENU_TYPE
60 
65 typedef enum {
66  EWK_CONTEXT_MENU_ITEM_TAG_NO_ACTION,
67  EWK_CONTEXT_MENU_ITEM_TAG_OPEN_LINK_IN_NEW_WINDOW,
68  EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_LINK_TO_DISK,
69  EWK_CONTEXT_MENU_ITEM_TAG_COPY_LINK_TO_CLIPBOARD,
70  EWK_CONTEXT_MENU_ITEM_TAG_OPEN_IMAGE_IN_NEW_WINDOW,
71  EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_IMAGE_TO_DISK,
72  EWK_CONTEXT_MENU_ITEM_TAG_COPY_IMAGE_TO_CLIPBOARD,
73  EWK_CONTEXT_MENU_ITEM_TAG_COPY_IMAGE_URL_TO_CLIPBOARD,
74  EWK_CONTEXT_MENU_ITEM_TAG_OPEN_FRAME_IN_NEW_WINDOW,
75  EWK_CONTEXT_MENU_ITEM_TAG_COPY,
76  EWK_CONTEXT_MENU_ITEM_TAG_GO_BACK,
77  EWK_CONTEXT_MENU_ITEM_TAG_GO_FORWARD,
78  EWK_CONTEXT_MENU_ITEM_TAG_STOP,
79  EWK_CONTEXT_MENU_ITEM_TAG_RELOAD,
80  EWK_CONTEXT_MENU_ITEM_TAG_CUT,
81  EWK_CONTEXT_MENU_ITEM_TAG_PASTE,
82  EWK_CONTEXT_MENU_ITEM_TAG_SELECT_ALL,
83  EWK_CONTEXT_MENU_ITEM_TAG_SPELLING_GUESS,
84  EWK_CONTEXT_MENU_ITEM_TAG_NO_GUESSES_FOUND,
85  EWK_CONTEXT_MENU_ITEM_TAG_IGNORE_SPELLING,
86  EWK_CONTEXT_MENU_ITEM_TAG_LEARN_SPELLING,
87  EWK_CONTEXT_MENU_ITEM_TAG_OTHER,
88  EWK_CONTEXT_MENU_ITEM_TAG_SEARCH_IN_SPOTLIGHT,
89  EWK_CONTEXT_MENU_ITEM_TAG_SEARCH_WEB,
90  EWK_CONTEXT_MENU_ITEM_TAG_LOOK_UP_IN_DICTIONARY,
91  EWK_CONTEXT_MENU_ITEM_TAG_OPEN_WITH_DEFAULT_APPLICATION,
92  EWK_CONTEXT_MENU_ITEM_PDFACTUAL_SIZE,
93  EWK_CONTEXT_MENU_ITEM_PDFZOOM_IN,
94  EWK_CONTEXT_MENU_ITEM_PDFZOOM_OUT,
95  EWK_CONTEXT_MENU_ITEM_PDFAUTO_SIZE,
96  EWK_CONTEXT_MENU_ITEM_PDFSINGLE_PAGE,
97  EWK_CONTEXT_MENU_ITEM_PDFFACING_PAGES,
98  EWK_CONTEXT_MENU_ITEM_PDFCONTINUOUS,
99  EWK_CONTEXT_MENU_ITEM_PDFNEXT_PAGE,
100  EWK_CONTEXT_MENU_ITEM_PDFPREVIOUS_PAGE,
101  EWK_CONTEXT_MENU_ITEM_TAG_OPEN_LINK = 2000,
102  EWK_CONTEXT_MENU_ITEM_TAG_IGNORE_GRAMMAR,
104  EWK_CONTEXT_MENU_ITEM_TAG_SHOW_SPELLING_PANEL,
105  EWK_CONTEXT_MENU_ITEM_TAG_CHECK_SPELLING,
106  EWK_CONTEXT_MENU_ITEM_TAG_CHECK_SPELLING_WHILE_TYPING,
107  EWK_CONTEXT_MENU_ITEM_TAG_CHECK_GRAMMAR_WITH_SPELLING,
109  EWK_CONTEXT_MENU_ITEM_TAG_SHOW_FONTS,
110  EWK_CONTEXT_MENU_ITEM_TAG_BOLD,
111  EWK_CONTEXT_MENU_ITEM_TAG_ITALIC,
112  EWK_CONTEXT_MENU_ITEM_TAG_UNDERLINE,
113  EWK_CONTEXT_MENU_ITEM_TAG_OUTLINE,
114  EWK_CONTEXT_MENU_ITEM_TAG_STYLES,
115  EWK_CONTEXT_MENU_ITEM_TAG_SHOW_COLORS,
117  EWK_CONTEXT_MENU_ITEM_TAG_START_SPEAKING,
118  EWK_CONTEXT_MENU_ITEM_TAG_STOP_SPEAKING,
120  EWK_CONTEXT_MENU_ITEM_TAG_DEFAULT_DIRECTION,
121  EWK_CONTEXT_MENU_ITEM_TAG_LEFT_TO_RIGHT,
122  EWK_CONTEXT_MENU_ITEM_TAG_RIGHT_TO_LEFT,
123  EWK_CONTEXT_MENU_ITEM_TAG_PDFSINGLE_PAGE_SCROLLING,
124  EWK_CONTEXT_MENU_ITEM_TAG_PDFFACING_PAGES_SCROLLING,
125  EWK_CONTEXT_MENU_ITEM_TAG_INSPECT_ELEMENT,
127  EWK_CONTEXT_MENU_ITEM_TAG_TEXT_DIRECTION_DEFAULT,
128  EWK_CONTEXT_MENU_ITEM_TAG_TEXT_DIRECTION_LEFT_TO_RIGHT,
129  EWK_CONTEXT_MENU_ITEM_TAG_TEXT_DIRECTION_RIGHT_TO_LEFT,
130  EWK_CONTEXT_MENU_ITEM_OPEN_MEDIA_IN_NEW_WINDOW,
131  EWK_CONTEXT_MENU_ITEM_TAG_DOWNLOAD_MEDIA_TO_DISK,
132  EWK_CONTEXT_MENU_ITEM_TAG_COPY_MEDIA_LINK_TO_CLIPBOARD,
133  EWK_CONTEXT_MENU_ITEM_TAG_TOGGLE_MEDIA_CONTROLS,
134  EWK_CONTEXT_MENU_ITEM_TAG_TOGGLE_MEDIA_LOOP,
135  EWK_CONTEXT_MENU_ITEM_TAG_ENTER_VIDEO_FULLSCREEN,
136  EWK_CONTEXT_MENU_ITEM_TAG_MEDIA_PLAY_PAUSE,
137  EWK_CONTEXT_MENU_ITEM_TAG_MEDIA_MUTE,
138  EWK_CONTEXT_MENU_ITEM_BASE_APPLICATION_TAG = 10000
140 
153 EAPI Ewk_Context_Menu_Item *ewk_context_menu_item_new(Ewk_Context_Menu_Item_Type type, Ewk_Context_Menu_Item_Action action, const char *title, Eina_Bool checked, Eina_Bool enabled);
154 
166 EAPI Ewk_Context_Menu_Item *ewk_context_menu_item_new_with_submenu(Ewk_Context_Menu_Item_Action action, const char *title, Eina_Bool enabled, Ewk_Context_Menu *submenu);
167 
177 
188 
198 
209 
218 EAPI const char *ewk_context_menu_item_title_get(const Ewk_Context_Menu_Item *o);
219 
229 EAPI Eina_Bool ewk_context_menu_item_title_set(Ewk_Context_Menu_Item *o, const char *title);
230 
238 
246 EAPI Eina_Bool ewk_context_menu_item_checked_set(Ewk_Context_Menu_Item *o, Eina_Bool checked);
247 
257 
267 EAPI Eina_Bool ewk_context_menu_item_enabled_set(Ewk_Context_Menu_Item *o, Eina_Bool enabled);
268 
277 
286 
287 #ifdef __cplusplus
288 }
289 #endif
290 
291 #endif /* ewk_context_menu_item_h */