browser-context.inc
Go to the documentation of this file.
1 # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 #
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
9 #
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
13 # License.
14 #
15 # The Original Code is Mozilla.org Code.
16 #
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 2001
20 # the Initial Developer. All Rights Reserved.
21 #
22 # Contributor(s):
23 # Ehsan Akhgari <ehsan.akhgari@gmail.com>
24 #
25 # Alternatively, the contents of this file may be used under the terms of
26 # either the GNU General Public License Version 2 or later (the "GPL"), or
27 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 # in which case the provisions of the GPL or the LGPL are applicable instead
29 # of those above. If you wish to allow use of your version of this file only
30 # under the terms of either the GPL or the LGPL, and not to allow others to
31 # use your version of this file under the terms of the MPL, indicate your
32 # decision by deleting the provisions above and replace them with the notice
33 # and other provisions required by the GPL or the LGPL. If you do not delete
34 # the provisions above, a recipient may use your version of this file under
35 # the terms of any one of the MPL, the GPL or the LGPL.
36 #
37 # ***** END LICENSE BLOCK *****
38 
39  <menuitem id="spell-no-suggestions"
40  disabled="true"
41  label="&spellNoSuggestions.label;"/>
42  <menuitem id="spell-add-to-dictionary"
43  label="&spellAddToDictionary.label;"
44  accesskey="&spellAddToDictionary.accesskey;"
45  oncommand="InlineSpellCheckerUI.addToDictionary();"/>
46  <menuseparator id="spell-suggestions-separator"/>
47  <menuitem id="context-openlink"
48  label="&openLinkCmd.label;"
49  accesskey="&openLinkCmd.accesskey;"
50  oncommand="gContextMenu.openLink();"/>
51  <menuitem id="context-openlinkintab"
52  label="&openLinkCmdInTab.label;"
53  accesskey="&openLinkCmdInTab.accesskey;"
54  oncommand="gContextMenu.openLinkInTab();"/>
55  <menuseparator id="context-sep-open"/>
56  <menuitem id="context-bookmarklink"
57  label="&bookmarkThisLinkCmd.label;"
58  accesskey="&bookmarkThisLinkCmd.accesskey;"
59  oncommand="gContextMenu.bookmarkLink();"/>
60  <menuitem id="context-savelink"
61  label="&saveLinkCmd.label;"
62  accesskey="&saveLinkCmd.accesskey;"
63  oncommand="gContextMenu.saveLink();"/>
64  <menuitem id="context-sendlink"
65  label="&sendLinkCmd.label;"
66  accesskey="&sendLinkCmd.accesskey;"
67  oncommand="gContextMenu.sendLink();"/>
68  <menuitem id="context-copyemail"
69  label="&copyEmailCmd.label;"
70  accesskey="&copyEmailCmd.accesskey;"
71  oncommand="gContextMenu.copyEmail();"/>
72  <menuitem id="context-copylink"
73  label="&copyLinkCmd.label;"
74  accesskey="&copyLinkCmd.accesskey;"
75  oncommand="goDoCommand('cmd_copyLink');"/>
76  <menuseparator id="context-sep-copylink"/>
77  <menuitem id="context-media-play"
78  label="&mediaPlay.label;"
79  accesskey="&mediaPlay.accesskey;"
80  oncommand="gContextMenu.mediaCommand('play');"/>
81  <menuitem id="context-media-pause"
82  label="&mediaPause.label;"
83  accesskey="&mediaPause.accesskey;"
84  oncommand="gContextMenu.mediaCommand('pause');"/>
85  <menuitem id="context-media-mute"
86  label="&mediaMute.label;"
87  accesskey="&mediaMute.accesskey;"
88  oncommand="gContextMenu.mediaCommand('mute');"/>
89  <menuitem id="context-media-unmute"
90  label="&mediaUnmute.label;"
91  accesskey="&mediaUnmute.accesskey;"
92  oncommand="gContextMenu.mediaCommand('unmute');"/>
93  <menuitem id="context-media-showcontrols"
94  label="&mediaShowControls.label;"
95  accesskey="&mediaShowControls.accesskey;"
96  oncommand="gContextMenu.mediaCommand('showcontrols');"/>
97  <menuitem id="context-media-hidecontrols"
98  label="&mediaHideControls.label;"
99  accesskey="&mediaHideControls.accesskey;"
100  oncommand="gContextMenu.mediaCommand('hidecontrols');"/>
101  <menuitem id="context-video-fullscreen"
102  label="&fullScreenCmd.label;"
103  oncommand="gContextMenu.fullScreenVideo();"/>
104  <menuseparator id="context-media-sep-commands"/>
105  <menuitem id="context-reloadimage"
106  label="&reloadImageCmd.label;"
107  accesskey="&reloadImageCmd.accesskey;"
108  oncommand="gContextMenu.reloadImage();"/>
109  <menuitem id="context-viewimage"
110  label="&viewImageCmd.label;"
111  accesskey="&viewImageCmd.accesskey;"
112  oncommand="gContextMenu.viewMedia(event);"
113  onclick="checkForMiddleClick(this, event);"/>
114  <menuitem id="context-viewvideo"
115  label="&viewVideoCmd.label;"
116  accesskey="&viewVideoCmd.accesskey;"
117  oncommand="gContextMenu.viewMedia(event);"
118  onclick="checkForMiddleClick(this, event);"/>
119 #ifdef CONTEXT_COPY_IMAGE_CONTENTS
120  <menuitem id="context-copyimage-contents"
121  label="&copyImageContentsCmd.label;"
122  accesskey="&copyImageContentsCmd.accesskey;"
123  oncommand="goDoCommand('cmd_copyImageContents');"/>
124 #endif
125  <menuitem id="context-copyimage"
126  label="&copyImageCmd.label;"
127  accesskey="&copyImageCmd.accesskey;"
128  oncommand="gContextMenu.copyMediaLocation();"/>
129  <menuitem id="context-copyvideourl"
130  label="&copyVideoURLCmd.label;"
131  accesskey="&copyVideoURLCmd.accesskey;"
132  oncommand="gContextMenu.copyMediaLocation();"/>
133  <menuitem id="context-copyaudiourl"
134  label="&copyAudioURLCmd.label;"
135  accesskey="&copyAudioURLCmd.accesskey;"
136  oncommand="gContextMenu.copyMediaLocation();"/>
137  <menuseparator id="context-sep-copyimage"/>
138  <menuitem id="context-saveimage"
139  label="&saveImageCmd.label;"
140  accesskey="&saveImageCmd.accesskey;"
141  oncommand="gContextMenu.saveMedia();"/>
142  <menuitem id="context-sendimage"
143  label="&sendImageCmd.label;"
144  accesskey="&sendImageCmd.accesskey;"
145  oncommand="gContextMenu.sendMedia();"/>
146  <menuitem id="context-setDesktopBackground"
147  label="&setDesktopBackgroundCmd.label;"
148  accesskey="&setDesktopBackgroundCmd.accesskey;"
149  oncommand="gContextMenu.setDesktopBackground();"/>
150  <menuitem id="context-blockimage"
151  type="checkbox"
152  accesskey="&blockImageCmd.accesskey;"
153  oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') == 'true');"/>
154  <menuitem id="context-viewimageinfo"
155  label="&viewImageInfoCmd.label;"
156  accesskey="&viewImageInfoCmd.accesskey;"
157  oncommand="gContextMenu.viewImageInfo();"/>
158  <menuitem id="context-savevideo"
159  label="&saveVideoCmd.label;"
160  accesskey="&saveVideoCmd.accesskey;"
161  oncommand="gContextMenu.saveMedia();"/>
162  <menuitem id="context-saveaudio"
163  label="&saveAudioCmd.label;"
164  accesskey="&saveAudioCmd.accesskey;"
165  oncommand="gContextMenu.saveMedia();"/>
166  <menuitem id="context-sendvideo"
167  label="&sendVideoCmd.label;"
168  accesskey="&sendVideoCmd.accesskey;"
169  oncommand="gContextMenu.sendMedia();"/>
170  <menuitem id="context-sendaudio"
171  label="&sendAudioCmd.label;"
172  accesskey="&sendAudioCmd.accesskey;"
173  oncommand="gContextMenu.sendMedia();"/>
174  <menuitem id="context-back"
175  label="&backCmd.label;"
176  accesskey="&backCmd.accesskey;"
177  command="Browser:BackOrBackDuplicate"
178  onclick="checkForMiddleClick(this, event);"/>
179  <menuitem id="context-forward"
180  label="&forwardCmd.label;"
181  accesskey="&forwardCmd.accesskey;"
182  command="Browser:ForwardOrForwardDuplicate"
183  onclick="checkForMiddleClick(this, event);"/>
184  <menuitem id="context-reload"
185  label="&reloadCmd.label;"
186  accesskey="&reloadCmd.accesskey;"
187  command="Browser:ReloadOrDuplicate"
188  onclick="checkForMiddleClick(this, event);"/>
189  <menuitem id="context-stop"
190  label="&stopCmd.label;"
191  accesskey="&stopCmd.accesskey;"
192  command="Browser:Stop"/>
193  <menuseparator id="context-sep-stop"/>
194  <menuitem id="context-bookmarkpage"
195  label="&bookmarkPageCmd2.label;"
196  accesskey="&bookmarkPageCmd2.accesskey;"
197  oncommand="gContextMenu.bookmarkThisPage();"/>
198  <menuitem id="context-savepage"
199  label="&savePageCmd.label;"
200  accesskey="&savePageCmd.accesskey2;"
201  oncommand="gContextMenu.savePageAs();"/>
202  <menuitem id="context-sendpage"
203  label="&sendPageCmd.label;"
204  accesskey="&sendPageCmd.accesskey;"
205  oncommand="gContextMenu.sendPage();"/>
206  <menuseparator id="context-sep-viewbgimage"/>
207  <menuitem id="context-viewbgimage"
208  label="&viewBGImageCmd.label;"
209  accesskey="&viewBGImageCmd.accesskey;"
210  oncommand="gContextMenu.viewBGImage(event);"
211  onclick="checkForMiddleClick(this, event);"/>
212  <menuitem id="context-undo"
213  label="&undoCmd.label;"
214  accesskey="&undoCmd.accesskey;"
215  command="cmd_undo"/>
216  <menuseparator id="context-sep-undo"/>
217  <menuitem id="context-cut"
218  label="&cutCmd.label;"
219  accesskey="&cutCmd.accesskey;"
220  command="cmd_cut"/>
221  <menuitem id="context-copy"
222  label="&copyCmd.label;"
223  accesskey="&copyCmd.accesskey;"
224  command="cmd_copy"/>
225  <menuitem id="context-paste"
226  label="&pasteCmd.label;"
227  accesskey="&pasteCmd.accesskey;"
228  command="cmd_paste"/>
229  <menuitem id="context-delete"
230  label="&deleteCmd.label;"
231  accesskey="&deleteCmd.accesskey;"
232  command="cmd_delete"/>
233  <menuseparator id="context-sep-paste"/>
234  <menuitem id="context-selectall"
235  label="&selectAllCmd.label;"
236  accesskey="&selectAllCmd.accesskey;"
237  command="cmd_selectAll"/>
238  <menuseparator id="context-sep-selectall"/>
239  <menuitem id="context-keywordfield"
240  label="&keywordfield.label;"
241  accesskey="&keywordfield.accesskey;"
242  oncommand="AddKeywordForSearchField();"/>
243  <menuitem id="context-searchselect"
244  oncommand="BrowserSearch.loadSearch(getBrowserSelection(), true);"/>
245  <menuseparator id="frame-sep"/>
246  <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
247  <menupopup>
248  <menuitem id="context-showonlythisframe"
249  label="&showOnlyThisFrameCmd.label;"
250  accesskey="&showOnlyThisFrameCmd.accesskey;"
251  oncommand="gContextMenu.showOnlyThisFrame();"/>
252  <menuitem id="context-openframe"
253  label="&openFrameCmd.label;"
254  accesskey="&openFrameCmd.accesskey;"
255  oncommand="gContextMenu.openFrame();"/>
256  <menuitem id="context-openframeintab"
257  label="&openFrameCmdInTab.label;"
258  accesskey="&openFrameCmdInTab.accesskey;"
259  oncommand="gContextMenu.openFrameInTab();"/>
260  <menuseparator/>
261  <menuitem id="context-reloadframe"
262  label="&reloadFrameCmd.label;"
263  accesskey="&reloadFrameCmd.accesskey;"
264  oncommand="gContextMenu.reloadFrame();"/>
265  <menuseparator/>
266  <menuitem id="context-bookmarkframe"
267  label="&bookmarkThisFrameCmd.label;"
268  accesskey="&bookmarkThisFrameCmd.accesskey;"
269  oncommand="gContextMenu.addBookmarkForFrame();"/>
270  <menuitem id="context-saveframe"
271  label="&saveFrameCmd.label;"
272  accesskey="&saveFrameCmd.accesskey;"
273  oncommand="gContextMenu.saveFrame();"/>
274  <menuseparator/>
275  <menuitem id="context-printframe"
276  label="&printFrameCmd.label;"
277  accesskey="&printFrameCmd.accesskey;"
278  oncommand="gContextMenu.printFrame();"/>
279  <menuseparator/>
280  <menuitem id="context-viewframesource"
281  label="&viewFrameSourceCmd.label;"
282  accesskey="&viewFrameSourceCmd.accesskey;"
283  oncommand="gContextMenu.viewFrameSource();"
284  observes="isFrameImage"/>
285  <menuitem id="context-viewframeinfo"
286  label="&viewFrameInfoCmd.label;"
287  accesskey="&viewFrameInfoCmd.accesskey;"
288  oncommand="gContextMenu.viewFrameInfo();"/>
289  </menupopup>
290  </menu>
291  <menuitem id="context-viewpartialsource-selection"
292  label="&viewPartialSourceForSelectionCmd.label;"
293  accesskey="&viewPartialSourceCmd.accesskey;"
294  oncommand="gContextMenu.viewPartialSource('selection');"
295  observes="isImage"/>
296  <menuitem id="context-viewpartialsource-mathml"
297  label="&viewPartialSourceForMathMLCmd.label;"
298  accesskey="&viewPartialSourceCmd.accesskey;"
299  oncommand="gContextMenu.viewPartialSource('mathml');"
300  observes="isImage"/>
301  <menuseparator id="context-sep-viewsource"/>
302  <menuitem id="context-viewsource"
303  label="&viewPageSourceCmd.label;"
304  accesskey="&viewPageSourceCmd.accesskey;"
305  oncommand="BrowserViewSourceOfDocument(gContextMenu.browser.contentDocument);"
306  observes="isImage"/>
307  <menuitem id="context-viewinfo"
308  label="&viewPageInfoCmd.label;"
309  accesskey="&viewPageInfoCmd.accesskey;"
310  oncommand="gContextMenu.viewInfo();"/>
311  <menuseparator id="spell-separator"/>
312  <menuitem id="spell-check-enabled"
313  label="&spellCheckEnable.label;"
314  type="checkbox"
315  accesskey="&spellCheckEnable.accesskey;"
316  oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
317  <menuitem id="spell-add-dictionaries-main"
318  label="&spellAddDictionaries.label;"
319  accesskey="&spellAddDictionaries.accesskey;"
320  oncommand="gContextMenu.addDictionaries();"/>
321  <menu id="spell-dictionaries"
322  label="&spellDictionaries.label;"
323  accesskey="&spellDictionaries.accesskey;">
324  <menupopup id="spell-dictionaries-menu">
325  <menuseparator id="spell-language-separator"/>
326  <menuitem id="spell-add-dictionaries"
327  label="&spellAddDictionaries.label;"
328  accesskey="&spellAddDictionaries.accesskey;"
329  oncommand="gContextMenu.addDictionaries();"/>
330  </menupopup>
331  </menu>
332  <menuseparator hidden="true" id="context-sep-bidi"/>
333  <menuitem hidden="true" id="context-bidi-text-direction-toggle"
334  label="&bidiSwitchTextDirectionItem.label;"
335  accesskey="&bidiSwitchTextDirectionItem.accesskey;"
336  command="cmd_switchTextDirection"/>
337  <menuitem hidden="true" id="context-bidi-page-direction-toggle"
338  label="&bidiSwitchPageDirectionItem.label;"
339  accesskey="&bidiSwitchPageDirectionItem.accesskey;"
340  oncommand="gContextMenu.switchPageDirection();"/>
var menu
this _contentSandbox label
Definition: FeedWriter.js:814
var hidden