2007-03-22 10:30:00 -07:00
|
|
|
# ***** 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>
|
2009-05-11 02:06:06 -07:00
|
|
|
# Michael Kohler <michaelkohler@live.com>
|
2007-03-22 10:30:00 -07:00
|
|
|
#
|
|
|
|
# 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">
|
|
|
|
|
2009-11-05 05:53:26 -08:00
|
|
|
<script type="application/javascript"
|
2007-03-22 10:30:00 -07:00
|
|
|
src="chrome://global/content/globalOverlay.js"/>
|
2009-11-05 05:53:26 -08:00
|
|
|
<script type="application/javascript"
|
2007-03-22 10:30:00 -07:00
|
|
|
src="chrome://browser/content/utilityOverlay.js"/>
|
2010-04-17 03:07:19 -07:00
|
|
|
<script type="application/javascript"><![CDATA[
|
|
|
|
// TODO: Bug 406371.
|
|
|
|
// A bunch of browser code depends on us defining these, sad but true :(
|
|
|
|
var Cc = Components.classes;
|
|
|
|
var Ci = Components.interfaces;
|
|
|
|
var Cr = Components.results;
|
|
|
|
|
|
|
|
Components.utils.import("resource://gre/modules/utils.js");
|
|
|
|
Components.utils.import("resource://gre/modules/PlacesUIUtils.jsm");
|
|
|
|
]]></script>
|
2009-11-05 05:53:26 -08:00
|
|
|
<script type="application/javascript"
|
2007-03-22 10:30:00 -07:00
|
|
|
src="chrome://browser/content/places/controller.js"/>
|
2009-11-05 05:53:26 -08:00
|
|
|
<script type="application/javascript"
|
2007-03-25 05:28:29 -07:00
|
|
|
src="chrome://browser/content/places/treeView.js"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-09-04 16:36:07 -07:00
|
|
|
<!-- Bookmarks and history tooltip -->
|
|
|
|
<tooltip id="bhTooltip" noautohide="true"
|
|
|
|
onpopupshowing="return window.top.BookmarksEventHandler.fillInBHTooltip(document, event)">
|
|
|
|
<vbox id="bhTooltipTextBox" flex="1">
|
|
|
|
<label id="bhtTitleText" class="tooltip-label" />
|
|
|
|
<label id="bhtUrlText" crop="center" class="tooltip-label" />
|
|
|
|
</vbox>
|
|
|
|
</tooltip>
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
<commandset id="placesCommands"
|
|
|
|
commandupdater="true"
|
2009-06-10 11:00:30 -07:00
|
|
|
events="focus,sort,places"
|
2007-03-22 10:30:00 -07:00
|
|
|
oncommandupdate="goUpdatePlacesCommands();">
|
|
|
|
<command id="placesCmd_open"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_open');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="placesCmd_open:window"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_open:window');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="placesCmd_open:tab"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_open:tab');"/>
|
2007-09-02 12:03:24 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="placesCmd_new:bookmark"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_new:bookmark');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="placesCmd_new:livemark"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_new:livemark');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="placesCmd_new:folder"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_new:folder');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="placesCmd_new:separator"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_new:separator');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="placesCmd_show:info"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_show:info');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="placesCmd_rename"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_show:info');"
|
2007-03-22 10:30:00 -07:00
|
|
|
observes="placesCmd_show:info"/>
|
|
|
|
<command id="placesCmd_reload"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_reload');"/>
|
2007-05-31 17:39:09 -07:00
|
|
|
<command id="placesCmd_reloadMicrosummary"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_reloadMicrosummary');"/>
|
2007-05-11 12:06:57 -07:00
|
|
|
<command id="placesCmd_sortBy:name"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_sortBy:name');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<command id="placesCmd_moveBookmarks"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_moveBookmarks');"/>
|
2008-11-05 00:24:22 -08:00
|
|
|
<command id="placesCmd_deleteDataHost"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_deleteDataHost');"/>
|
2009-05-11 02:06:06 -07:00
|
|
|
<command id="placesCmd_createBookmark"
|
2009-06-10 11:00:30 -07:00
|
|
|
oncommand="goDoPlacesCommand('placesCmd_createBookmark');"/>
|
|
|
|
|
|
|
|
<!-- Special versions of cut/copy/paste/delete which check for an open context menu. -->
|
|
|
|
<command id="placesCmd_cut"
|
|
|
|
oncommand="goDoPlacesCommand('placesCmd_cut');"/>
|
|
|
|
<command id="placesCmd_copy"
|
|
|
|
oncommand="goDoPlacesCommand('placesCmd_copy');"/>
|
|
|
|
<command id="placesCmd_paste"
|
|
|
|
oncommand="goDoPlacesCommand('placesCmd_paste');"/>
|
|
|
|
<command id="placesCmd_delete"
|
|
|
|
oncommand="goDoPlacesCommand('placesCmd_delete');"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</commandset>
|
|
|
|
|
|
|
|
<popup id="placesContext"
|
2008-03-13 12:25:49 -07:00
|
|
|
onpopupshowing="this._view = PlacesUIUtils.getViewForNode(document.popupNode);
|
2007-03-22 10:30:00 -07:00
|
|
|
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"/>
|
2007-09-02 12:03:24 -07:00
|
|
|
<menuitem id="placesContext_openContainer:tabs"
|
2008-03-13 12:25:49 -07:00
|
|
|
oncommand="var view = PlacesUIUtils.getViewForNode(document.popupNode);
|
2007-09-02 12:03:24 -07:00
|
|
|
view.controller.openSelectionInTabs(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"
|
2007-03-22 10:30:00 -07:00
|
|
|
label="&cmd.open_all_in_tabs.label;"
|
|
|
|
accesskey="&cmd.open_all_in_tabs.accesskey;"
|
|
|
|
selectiontype="single"
|
2007-09-02 12:03:24 -07:00
|
|
|
selection="folder|host|query"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="placesContext_openLinks:tabs"
|
2008-03-13 12:25:49 -07:00
|
|
|
oncommand="var view = PlacesUIUtils.getViewForNode(document.popupNode);
|
2007-09-02 12:03:24 -07:00
|
|
|
view.controller.openSelectionInTabs(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"
|
2007-03-22 10:30:00 -07:00
|
|
|
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;"
|
2008-04-20 19:32:43 -07:00
|
|
|
selection="any"
|
2009-02-28 04:00:05 -08:00
|
|
|
hideifnoinsertionpoint="true"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="placesContext_new:folder"
|
|
|
|
command="placesCmd_new:folder"
|
|
|
|
label="&cmd.new_folder.label;"
|
|
|
|
accesskey="&cmd.context_new_folder.accesskey;"
|
2008-04-20 19:32:43 -07:00
|
|
|
selection="any"
|
2009-02-28 04:00:05 -08:00
|
|
|
hideifnoinsertionpoint="true"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="placesContext_new:separator"
|
|
|
|
command="placesCmd_new:separator"
|
|
|
|
label="&cmd.new_separator.label;"
|
|
|
|
accesskey="&cmd.new_separator.accesskey;"
|
2007-08-30 08:43:10 -07:00
|
|
|
closemenu="single"
|
2008-04-20 19:32:43 -07:00
|
|
|
selection="any"
|
2009-02-28 04:00:05 -08:00
|
|
|
hideifnoinsertionpoint="true"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuseparator id="placesContext_newSeparator"/>
|
2009-05-11 02:06:06 -07:00
|
|
|
<menuitem id="placesContext_createBookmark"
|
|
|
|
command="placesCmd_createBookmark"
|
|
|
|
label="&cmd.bookmarkLink.label;"
|
|
|
|
accesskey="&cmd.bookmarkLink.accesskey;"
|
|
|
|
selection="link"
|
|
|
|
forcehideselection="bookmark|tagChild"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="placesContext_cut"
|
2009-06-10 11:00:30 -07:00
|
|
|
command="placesCmd_cut"
|
2007-08-30 08:43:10 -07:00
|
|
|
label="&cutCmd.label;"
|
|
|
|
accesskey="&cutCmd.accesskey;"
|
2007-09-07 05:28:48 -07:00
|
|
|
closemenu="single"
|
2008-04-20 19:32:43 -07:00
|
|
|
selection="bookmark|folder|separator|query"
|
|
|
|
forcehideselection="tagChild|livemarkChild"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="placesContext_copy"
|
2009-06-10 11:00:30 -07:00
|
|
|
command="placesCmd_copy"
|
2007-03-22 10:30:00 -07:00
|
|
|
label="©Cmd.label;"
|
2007-09-07 05:28:48 -07:00
|
|
|
closemenu="single"
|
2007-03-22 10:30:00 -07:00
|
|
|
accesskey="©Cmd.accesskey;"
|
2008-04-20 19:32:43 -07:00
|
|
|
selection="any"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuitem id="placesContext_paste"
|
2009-06-10 11:00:30 -07:00
|
|
|
command="placesCmd_paste"
|
2007-03-22 10:30:00 -07:00
|
|
|
label="&pasteCmd.label;"
|
2007-09-07 05:28:48 -07:00
|
|
|
closemenu="single"
|
2007-03-22 10:30:00 -07:00
|
|
|
accesskey="&pasteCmd.accesskey;"
|
2008-04-20 19:32:43 -07:00
|
|
|
selection="any"
|
2009-02-28 04:00:05 -08:00
|
|
|
hideifnoinsertionpoint="true"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuseparator id="placesContext_editSeparator"/>
|
|
|
|
<menuitem id="placesContext_delete"
|
2009-06-10 11:00:30 -07:00
|
|
|
command="placesCmd_delete"
|
2007-03-22 10:30:00 -07:00
|
|
|
label="&deleteCmd.label;"
|
|
|
|
accesskey="&deleteCmd.accesskey;"
|
2007-08-30 08:43:10 -07:00
|
|
|
closemenu="single"
|
2008-11-05 00:24:22 -08:00
|
|
|
selection="bookmark|tagChild|folder|query|dynamiccontainer|separator|host"/>
|
|
|
|
<menuitem id="placesContext_delete_history"
|
2009-06-10 11:00:30 -07:00
|
|
|
command="placesCmd_delete"
|
2008-11-05 00:24:22 -08:00
|
|
|
label="&cmd.delete.label;"
|
|
|
|
accesskey="&cmd.delete.accesskey;"
|
|
|
|
closemenu="single"
|
|
|
|
selection="link"
|
|
|
|
forcehideselection="bookmark"/>
|
|
|
|
<menuitem id="placesContext_deleteHost"
|
|
|
|
command="placesCmd_deleteDataHost"
|
|
|
|
label="&cmd.deleteDomainData.label;"
|
|
|
|
accesskey="&cmd.deleteDomainData.accesskey;"
|
|
|
|
closemenu="single"
|
2009-05-11 02:06:12 -07:00
|
|
|
selection="link|host"
|
2009-04-03 03:30:16 -07:00
|
|
|
selectiontype="single"
|
2009-04-03 11:55:37 -07:00
|
|
|
hideifprivatebrowsing="true"
|
2008-11-05 00:24:22 -08:00
|
|
|
forcehideselection="bookmark"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuseparator id="placesContext_deleteSeparator"/>
|
|
|
|
<menuitem id="placesContext_reload"
|
|
|
|
command="placesCmd_reload"
|
|
|
|
label="&cmd.reloadLivebookmark.label;"
|
|
|
|
accesskey="&cmd.reloadLivebookmark.accesskey;"
|
2007-08-30 08:43:10 -07:00
|
|
|
closemenu="single"
|
2007-11-19 18:01:53 -08:00
|
|
|
selection="livemark/feedURI"/>
|
2007-05-31 17:39:09 -07:00
|
|
|
<menuitem id="placesContext_reloadMicrosummary"
|
|
|
|
command="placesCmd_reloadMicrosummary"
|
|
|
|
label="&cmd.reloadMicrosummary.label;"
|
|
|
|
accesskey="&cmd.reloadMicrosummary.accesskey;"
|
2007-08-30 08:43:10 -07:00
|
|
|
closemenu="single"
|
2007-05-31 17:39:09 -07:00
|
|
|
selection="microsummary"/>
|
2007-05-11 12:06:57 -07:00
|
|
|
<menuitem id="placesContext_sortBy:name"
|
|
|
|
command="placesCmd_sortBy:name"
|
2007-03-22 10:30:00 -07:00
|
|
|
label="&cmd.sortby_name.label;"
|
|
|
|
accesskey="&cmd.context_sortby_name.accesskey;"
|
2007-08-30 08:43:10 -07:00
|
|
|
closemenu="single"
|
2008-04-20 19:32:43 -07:00
|
|
|
selection="folder"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<menuseparator id="placesContext_sortSeparator"/>
|
|
|
|
<menuitem id="placesContext_show:info"
|
|
|
|
command="placesCmd_show:info"
|
2007-05-23 06:19:41 -07:00
|
|
|
label="&cmd.properties.label;"
|
|
|
|
accesskey="&cmd.properties.accesskey;"
|
2008-04-28 02:41:18 -07:00
|
|
|
selection="bookmark|folder|query"
|
2007-08-27 17:35:55 -07:00
|
|
|
forcehideselection="livemarkChild"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</popup>
|
|
|
|
|
|
|
|
</overlay>
|