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 WebKitContextMenuActions_h
28
29G_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 */
83typedef enum {
84 WEBKIT_CONTEXT_MENU_ACTION_NO_ACTION = 0,
85
86 WEBKIT_CONTEXT_MENU_ACTION_OPEN_LINK,
87 WEBKIT_CONTEXT_MENU_ACTION_OPEN_LINK_IN_NEW_WINDOW,
88 WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_LINK_TO_DISK,
89 WEBKIT_CONTEXT_MENU_ACTION_COPY_LINK_TO_CLIPBOARD,
90 WEBKIT_CONTEXT_MENU_ACTION_OPEN_IMAGE_IN_NEW_WINDOW,
91 WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_IMAGE_TO_DISK,
92 WEBKIT_CONTEXT_MENU_ACTION_COPY_IMAGE_TO_CLIPBOARD,
93 WEBKIT_CONTEXT_MENU_ACTION_COPY_IMAGE_URL_TO_CLIPBOARD,
94 WEBKIT_CONTEXT_MENU_ACTION_OPEN_FRAME_IN_NEW_WINDOW,
95 WEBKIT_CONTEXT_MENU_ACTION_GO_BACK,
96 WEBKIT_CONTEXT_MENU_ACTION_GO_FORWARD,
97 WEBKIT_CONTEXT_MENU_ACTION_STOP,
98 WEBKIT_CONTEXT_MENU_ACTION_RELOAD,
99 WEBKIT_CONTEXT_MENU_ACTION_COPY,
100 WEBKIT_CONTEXT_MENU_ACTION_CUT,
101 WEBKIT_CONTEXT_MENU_ACTION_PASTE,
102 WEBKIT_CONTEXT_MENU_ACTION_DELETE,
103 WEBKIT_CONTEXT_MENU_ACTION_SELECT_ALL,
104 WEBKIT_CONTEXT_MENU_ACTION_INPUT_METHODS,
105 WEBKIT_CONTEXT_MENU_ACTION_UNICODE,
106 WEBKIT_CONTEXT_MENU_ACTION_SPELLING_GUESS,
107 WEBKIT_CONTEXT_MENU_ACTION_NO_GUESSES_FOUND,
108 WEBKIT_CONTEXT_MENU_ACTION_IGNORE_SPELLING,
109 WEBKIT_CONTEXT_MENU_ACTION_LEARN_SPELLING,
110 WEBKIT_CONTEXT_MENU_ACTION_IGNORE_GRAMMAR,
111 WEBKIT_CONTEXT_MENU_ACTION_FONT_MENU,
112 WEBKIT_CONTEXT_MENU_ACTION_BOLD,
113 WEBKIT_CONTEXT_MENU_ACTION_ITALIC,
114 WEBKIT_CONTEXT_MENU_ACTION_UNDERLINE,
115 WEBKIT_CONTEXT_MENU_ACTION_OUTLINE,
116 WEBKIT_CONTEXT_MENU_ACTION_INSPECT_ELEMENT,
117 WEBKIT_CONTEXT_MENU_ACTION_OPEN_VIDEO_IN_NEW_WINDOW,
118 WEBKIT_CONTEXT_MENU_ACTION_OPEN_AUDIO_IN_NEW_WINDOW,
119 WEBKIT_CONTEXT_MENU_ACTION_COPY_VIDEO_LINK_TO_CLIPBOARD,
120 WEBKIT_CONTEXT_MENU_ACTION_COPY_AUDIO_LINK_TO_CLIPBOARD,
121 WEBKIT_CONTEXT_MENU_ACTION_TOGGLE_MEDIA_CONTROLS,
122 WEBKIT_CONTEXT_MENU_ACTION_TOGGLE_MEDIA_LOOP,
123 WEBKIT_CONTEXT_MENU_ACTION_ENTER_VIDEO_FULLSCREEN,
124 WEBKIT_CONTEXT_MENU_ACTION_MEDIA_PLAY,
125 WEBKIT_CONTEXT_MENU_ACTION_MEDIA_PAUSE,
126 WEBKIT_CONTEXT_MENU_ACTION_MEDIA_MUTE,
127 WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_VIDEO_TO_DISK,
128 WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_AUDIO_TO_DISK,
129 WEBKIT_CONTEXT_MENU_ACTION_INSERT_EMOJI,
130
131 WEBKIT_CONTEXT_MENU_ACTION_CUSTOM = 10000
132} WebKitContextMenuAction;
133
134G_END_DECLS
135
136#endif
137