1 | /* |
2 | * Copyright (C) 2012 Igalia S.L. |
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 | #if !defined(__WEBKIT2_H_INSIDE__) && !defined(WEBKIT2_COMPILATION) && !defined(__WEBKIT_WEB_EXTENSION_H_INSIDE__) |
21 | #error "Only <webkit2/webkit2.h> can be included directly." |
22 | #endif |
23 | |
24 | #include <glib.h> |
25 | |
26 | #ifndef WebKitContextMenuActions_h |
27 | #define |
28 | |
29 | G_BEGIN_DECLS |
30 | |
31 | /** |
32 | * WebKitContextMenuAction: |
33 | * @WEBKIT_CONTEXT_MENU_ACTION_NO_ACTION: No action, used by separator menu items. |
34 | * @WEBKIT_CONTEXT_MENU_ACTION_OPEN_LINK: Open current link. |
35 | * @WEBKIT_CONTEXT_MENU_ACTION_OPEN_LINK_IN_NEW_WINDOW: Open current link in a new window. |
36 | * @WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_LINK_TO_DISK: Download link destination. |
37 | * @WEBKIT_CONTEXT_MENU_ACTION_COPY_LINK_TO_CLIPBOARD: Copy link location to the clipboard. |
38 | * @WEBKIT_CONTEXT_MENU_ACTION_OPEN_IMAGE_IN_NEW_WINDOW: Open current image in a new window. |
39 | * @WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_IMAGE_TO_DISK: Download current image. |
40 | * @WEBKIT_CONTEXT_MENU_ACTION_COPY_IMAGE_TO_CLIPBOARD: Copy current image to the clipboard. |
41 | * @WEBKIT_CONTEXT_MENU_ACTION_COPY_IMAGE_URL_TO_CLIPBOARD: Copy current image location to the clipboard. |
42 | * @WEBKIT_CONTEXT_MENU_ACTION_OPEN_FRAME_IN_NEW_WINDOW: Open current frame in a new window. |
43 | * @WEBKIT_CONTEXT_MENU_ACTION_GO_BACK: Load the previous history item. |
44 | * @WEBKIT_CONTEXT_MENU_ACTION_GO_FORWARD: Load the next history item. |
45 | * @WEBKIT_CONTEXT_MENU_ACTION_STOP: Stop any ongoing loading operation. |
46 | * @WEBKIT_CONTEXT_MENU_ACTION_RELOAD: Reload the contents of current view. |
47 | * @WEBKIT_CONTEXT_MENU_ACTION_COPY: Copy current selection the clipboard. |
48 | * @WEBKIT_CONTEXT_MENU_ACTION_CUT: Cut current selection to the clipboard. |
49 | * @WEBKIT_CONTEXT_MENU_ACTION_PASTE: Paste clipboard contents. |
50 | * @WEBKIT_CONTEXT_MENU_ACTION_DELETE: Delete current selection. |
51 | * @WEBKIT_CONTEXT_MENU_ACTION_SELECT_ALL: Select all text. |
52 | * @WEBKIT_CONTEXT_MENU_ACTION_INPUT_METHODS: Input methods menu. |
53 | * @WEBKIT_CONTEXT_MENU_ACTION_UNICODE: Unicode menu. |
54 | * @WEBKIT_CONTEXT_MENU_ACTION_SPELLING_GUESS: A proposed replacement for a misspelled word. |
55 | * @WEBKIT_CONTEXT_MENU_ACTION_NO_GUESSES_FOUND: An indicator that spellchecking found no proposed replacements. |
56 | * @WEBKIT_CONTEXT_MENU_ACTION_IGNORE_SPELLING: Causes the spellchecker to ignore the word for this session. |
57 | * @WEBKIT_CONTEXT_MENU_ACTION_LEARN_SPELLING: Causes the spellchecker to add the word to the dictionary. |
58 | * @WEBKIT_CONTEXT_MENU_ACTION_IGNORE_GRAMMAR: Ignore grammar. |
59 | * @WEBKIT_CONTEXT_MENU_ACTION_FONT_MENU: Font options menu. |
60 | * @WEBKIT_CONTEXT_MENU_ACTION_BOLD: Bold. |
61 | * @WEBKIT_CONTEXT_MENU_ACTION_ITALIC: Italic. |
62 | * @WEBKIT_CONTEXT_MENU_ACTION_UNDERLINE: Underline. |
63 | * @WEBKIT_CONTEXT_MENU_ACTION_OUTLINE: Outline. |
64 | * @WEBKIT_CONTEXT_MENU_ACTION_INSPECT_ELEMENT: Open current element in the inspector. |
65 | * @WEBKIT_CONTEXT_MENU_ACTION_OPEN_VIDEO_IN_NEW_WINDOW: Open current video element in a new window. |
66 | * @WEBKIT_CONTEXT_MENU_ACTION_OPEN_AUDIO_IN_NEW_WINDOW: Open current audio element in a new window. |
67 | * @WEBKIT_CONTEXT_MENU_ACTION_COPY_VIDEO_LINK_TO_CLIPBOARD: Copy video link location in to the clipboard. |
68 | * @WEBKIT_CONTEXT_MENU_ACTION_COPY_AUDIO_LINK_TO_CLIPBOARD: Copy audio link location in to the clipboard. |
69 | * @WEBKIT_CONTEXT_MENU_ACTION_TOGGLE_MEDIA_CONTROLS: Enable or disable media controls. |
70 | * @WEBKIT_CONTEXT_MENU_ACTION_TOGGLE_MEDIA_LOOP: Enable or disable media loop. |
71 | * @WEBKIT_CONTEXT_MENU_ACTION_ENTER_VIDEO_FULLSCREEN: Show current video element in fullscreen mode. |
72 | * @WEBKIT_CONTEXT_MENU_ACTION_MEDIA_PLAY: Play current media element. |
73 | * @WEBKIT_CONTEXT_MENU_ACTION_MEDIA_PAUSE: Pause current media element. |
74 | * @WEBKIT_CONTEXT_MENU_ACTION_MEDIA_MUTE: Mute current media element. |
75 | * @WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_VIDEO_TO_DISK: Download video to disk. Since 2.2 |
76 | * @WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_AUDIO_TO_DISK: Download audio to disk. Since 2.2 |
77 | * @WEBKIT_CONTEXT_MENU_ACTION_INSERT_EMOJI: Insert an emoji. Since 2.26 |
78 | * @WEBKIT_CONTEXT_MENU_ACTION_CUSTOM: Custom action defined by applications. |
79 | * |
80 | * Enum values used to denote the stock actions for |
81 | * #WebKitContextMenuItem<!-- -->s |
82 | */ |
83 | typedef enum { |
84 | = 0, |
85 | |
86 | , |
87 | , |
88 | , |
89 | , |
90 | , |
91 | , |
92 | , |
93 | , |
94 | , |
95 | , |
96 | , |
97 | , |
98 | , |
99 | , |
100 | , |
101 | , |
102 | , |
103 | , |
104 | , |
105 | , |
106 | , |
107 | , |
108 | , |
109 | , |
110 | , |
111 | , |
112 | , |
113 | , |
114 | , |
115 | , |
116 | , |
117 | , |
118 | , |
119 | , |
120 | , |
121 | , |
122 | , |
123 | , |
124 | , |
125 | , |
126 | , |
127 | , |
128 | , |
129 | , |
130 | |
131 | = 10000 |
132 | } ; |
133 | |
134 | G_END_DECLS |
135 | |
136 | #endif |
137 | |