mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
209 lines
9.2 KiB
XML
209 lines
9.2 KiB
XML
# ***** BEGIN LICENSE BLOCK *****
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
#
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
# the License. You may obtain a copy of the License at
|
|
# http://www.mozilla.org/MPL/
|
|
#
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
# for the specific language governing rights and limitations under the
|
|
# License.
|
|
#
|
|
# The Original Code is the Shared Places Commands.
|
|
#
|
|
# The Initial Developer of the Original Code is Google Inc.
|
|
# Portions created by the Initial Developer are Copyright (C) 2005-2006
|
|
# the Initial Developer. All Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
# Ben Goodger <beng@google.com>
|
|
# Asaf Romano <mano@mozilla.com>
|
|
#
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
# the provisions above, a recipient may use your version of this file under
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
#
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
<!DOCTYPE overlay [
|
|
<!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
|
|
%placesDTD;
|
|
<!ENTITY % editMenuOverlayDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
|
|
%editMenuOverlayDTD;
|
|
]>
|
|
|
|
<overlay id="placesOverlay"
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<script type="application/x-javascript"
|
|
src="chrome://global/content/globalOverlay.js"/>
|
|
<script type="application/x-javascript"
|
|
src="chrome://browser/content/utilityOverlay.js"/>
|
|
<script type="application/x-javascript"
|
|
src="chrome://browser/content/places/utils.js"/>
|
|
<script type="application/x-javascript"
|
|
src="chrome://browser/content/places/controller.js"/>
|
|
<script type="application/x-javascript"
|
|
src="chrome://browser/content/places/treeView.js"/>
|
|
<script type="application/x-javascript"
|
|
src="chrome://global/content/nsDragAndDrop.js"/>
|
|
|
|
<commandset id="placesCommands"
|
|
commandupdater="true"
|
|
events="focus,sort"
|
|
oncommandupdate="goUpdatePlacesCommands();">
|
|
<command id="placesCmd_open"
|
|
oncommand="goDoCommand('placesCmd_open');"/>
|
|
<command id="placesCmd_open:window"
|
|
oncommand="goDoCommand('placesCmd_open:window');"/>
|
|
<command id="placesCmd_open:tab"
|
|
oncommand="goDoCommand('placesCmd_open:tab');"/>
|
|
|
|
<command id="placesCmd_new:bookmark"
|
|
oncommand="goDoCommand('placesCmd_new:bookmark');"/>
|
|
<command id="placesCmd_new:livemark"
|
|
oncommand="goDoCommand('placesCmd_new:livemark');"/>
|
|
<command id="placesCmd_new:folder"
|
|
oncommand="goDoCommand('placesCmd_new:folder');"/>
|
|
<command id="placesCmd_new:separator"
|
|
oncommand="goDoCommand('placesCmd_new:separator');"/>
|
|
<command id="placesCmd_show:info"
|
|
oncommand="goDoCommand('placesCmd_show:info');"/>
|
|
<command id="placesCmd_rename"
|
|
oncommand="goDoCommand('placesCmd_show:info');"
|
|
observes="placesCmd_show:info"/>
|
|
<command id="placesCmd_reload"
|
|
oncommand="goDoCommand('placesCmd_reload');"/>
|
|
<command id="placesCmd_reloadMicrosummary"
|
|
oncommand="goDoCommand('placesCmd_reloadMicrosummary');"/>
|
|
<command id="placesCmd_sortBy:name"
|
|
oncommand="goDoCommand('placesCmd_sortBy:name');"/>
|
|
<command id="placesCmd_moveBookmarks"
|
|
oncommand="goDoCommand('placesCmd_moveBookmarks');"/>
|
|
</commandset>
|
|
|
|
<popup id="placesContext"
|
|
onpopupshowing="this._view = PlacesUtils.getViewForNode(document.popupNode);
|
|
return this._view.buildContextMenu(this);"
|
|
onpopuphiding="this._view.destroyContextMenu();">
|
|
<menuitem id="placesContext_open"
|
|
command="placesCmd_open"
|
|
label="&cmd.open.label;"
|
|
accesskey="&cmd.open.accesskey;"
|
|
default="true"
|
|
selectiontype="single"
|
|
selection="link"/>
|
|
<menuitem id="placesContext_open:newwindow"
|
|
command="placesCmd_open:window"
|
|
label="&cmd.open_window.label;"
|
|
accesskey="&cmd.open_window.accesskey;"
|
|
selectiontype="single"
|
|
selection="link"/>
|
|
<menuitem id="placesContext_open:newtab"
|
|
command="placesCmd_open:tab"
|
|
label="&cmd.open_tab.label;"
|
|
accesskey="&cmd.open_tab.accesskey;"
|
|
selectiontype="single"
|
|
selection="link"/>
|
|
<menuitem id="placesContext_openContainer:tabs"
|
|
oncommand="var view = PlacesUtils.getViewForNode(document.popupNode);
|
|
view.controller.openSelectionInTabs(event);"
|
|
onclick="checkForMiddleClick(this, event);"
|
|
label="&cmd.open_all_in_tabs.label;"
|
|
accesskey="&cmd.open_all_in_tabs.accesskey;"
|
|
selectiontype="single"
|
|
selection="folder|host|query"/>
|
|
<menuitem id="placesContext_openLinks:tabs"
|
|
oncommand="var view = PlacesUtils.getViewForNode(document.popupNode);
|
|
view.controller.openSelectionInTabs(event);"
|
|
onclick="checkForMiddleClick(this, event);"
|
|
label="&cmd.open_all_in_tabs.label;"
|
|
accesskey="&cmd.open_all_in_tabs.accesskey;"
|
|
selectiontype="multiple"
|
|
selection="link"/>
|
|
<menuseparator id="placesContext_openSeparator"/>
|
|
<menuitem id="placesContext_new:bookmark"
|
|
command="placesCmd_new:bookmark"
|
|
label="&cmd.new_bookmark.label;"
|
|
accesskey="&cmd.new_bookmark.accesskey;"
|
|
selection="mutable"/>
|
|
<menuitem id="placesContext_new:folder"
|
|
command="placesCmd_new:folder"
|
|
label="&cmd.new_folder.label;"
|
|
accesskey="&cmd.context_new_folder.accesskey;"
|
|
selection="mutable"/>
|
|
<menuitem id="placesContext_new:separator"
|
|
command="placesCmd_new:separator"
|
|
label="&cmd.new_separator.label;"
|
|
accesskey="&cmd.new_separator.accesskey;"
|
|
closemenu="single"
|
|
selection="mutable"/>
|
|
<menuseparator id="placesContext_newSeparator"/>
|
|
<menuitem id="placesContext_cut"
|
|
command="cmd_cut"
|
|
label="&cutCmd.label;"
|
|
accesskey="&cutCmd.accesskey;"
|
|
closemenu="single"
|
|
selection="separator|link|folder|mixed|query"
|
|
forcehideselection="livemarkChild"/>
|
|
<menuitem id="placesContext_copy"
|
|
command="cmd_copy"
|
|
label="©Cmd.label;"
|
|
closemenu="single"
|
|
accesskey="©Cmd.accesskey;"
|
|
selection="separator|link|folder|query"/>
|
|
<menuitem id="placesContext_paste"
|
|
command="cmd_paste"
|
|
label="&pasteCmd.label;"
|
|
closemenu="single"
|
|
accesskey="&pasteCmd.accesskey;"
|
|
selection="mutable|query"/>
|
|
<menuseparator id="placesContext_editSeparator"/>
|
|
<menuitem id="placesContext_delete"
|
|
command="cmd_delete"
|
|
label="&deleteCmd.label;"
|
|
accesskey="&deleteCmd.accesskey;"
|
|
closemenu="single"
|
|
selection="host|separator|link|folder|day|query"
|
|
forcehideselection="livemarkChild"/>
|
|
<menuseparator id="placesContext_deleteSeparator"/>
|
|
<menuitem id="placesContext_reload"
|
|
command="placesCmd_reload"
|
|
label="&cmd.reloadLivebookmark.label;"
|
|
accesskey="&cmd.reloadLivebookmark.accesskey;"
|
|
closemenu="single"
|
|
selection="livemark/feedURI"/>
|
|
<menuitem id="placesContext_reloadMicrosummary"
|
|
command="placesCmd_reloadMicrosummary"
|
|
label="&cmd.reloadMicrosummary.label;"
|
|
accesskey="&cmd.reloadMicrosummary.accesskey;"
|
|
closemenu="single"
|
|
selection="microsummary"/>
|
|
<menuitem id="placesContext_sortBy:name"
|
|
command="placesCmd_sortBy:name"
|
|
label="&cmd.sortby_name.label;"
|
|
accesskey="&cmd.context_sortby_name.accesskey;"
|
|
closemenu="single"
|
|
selection="mutable"/>
|
|
<menuseparator id="placesContext_sortSeparator"/>
|
|
<menuitem id="placesContext_show:info"
|
|
command="placesCmd_show:info"
|
|
label="&cmd.properties.label;"
|
|
accesskey="&cmd.properties.accesskey;"
|
|
selection="bookmark|folder"
|
|
forcehideselection="livemarkChild"/>
|
|
</popup>
|
|
|
|
</overlay>
|