Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 4 | |
michael@0 | 5 | <!DOCTYPE overlay [ |
michael@0 | 6 | <!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd"> |
michael@0 | 7 | %placesDTD; |
michael@0 | 8 | <!ENTITY % editMenuOverlayDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd"> |
michael@0 | 9 | %editMenuOverlayDTD; |
michael@0 | 10 | ]> |
michael@0 | 11 | |
michael@0 | 12 | <overlay id="placesOverlay" |
michael@0 | 13 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
michael@0 | 14 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 15 | |
michael@0 | 16 | <script type="application/javascript" |
michael@0 | 17 | src="chrome://global/content/globalOverlay.js"/> |
michael@0 | 18 | <script type="application/javascript" |
michael@0 | 19 | src="chrome://browser/content/utilityOverlay.js"/> |
michael@0 | 20 | <script type="application/javascript"><![CDATA[ |
michael@0 | 21 | // TODO: Bug 406371. |
michael@0 | 22 | // A bunch of browser code depends on us defining these, sad but true :( |
michael@0 | 23 | var Cc = Components.classes; |
michael@0 | 24 | var Ci = Components.interfaces; |
michael@0 | 25 | var Cr = Components.results; |
michael@0 | 26 | |
michael@0 | 27 | Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); |
michael@0 | 28 | Components.utils.import("resource://gre/modules/Task.jsm"); |
michael@0 | 29 | Components.utils.import("resource://gre/modules/PlacesUtils.jsm"); |
michael@0 | 30 | XPCOMUtils.defineLazyModuleGetter(window, |
michael@0 | 31 | "PlacesUIUtils", "resource:///modules/PlacesUIUtils.jsm"); |
michael@0 | 32 | XPCOMUtils.defineLazyModuleGetter(window, |
michael@0 | 33 | "PlacesTransactions", "resource://gre/modules/PlacesTransactions.jsm"); |
michael@0 | 34 | ]]></script> |
michael@0 | 35 | <script type="application/javascript" |
michael@0 | 36 | src="chrome://browser/content/places/controller.js"/> |
michael@0 | 37 | <script type="application/javascript" |
michael@0 | 38 | src="chrome://browser/content/places/treeView.js"/> |
michael@0 | 39 | |
michael@0 | 40 | <!-- Bookmarks and history tooltip --> |
michael@0 | 41 | <tooltip id="bhTooltip" noautohide="true" |
michael@0 | 42 | onpopupshowing="return window.top.BookmarksEventHandler.fillInBHTooltip(document, event)"> |
michael@0 | 43 | <vbox id="bhTooltipTextBox" flex="1"> |
michael@0 | 44 | <label id="bhtTitleText" class="tooltip-label" /> |
michael@0 | 45 | <label id="bhtUrlText" crop="center" class="tooltip-label" /> |
michael@0 | 46 | </vbox> |
michael@0 | 47 | </tooltip> |
michael@0 | 48 | |
michael@0 | 49 | <commandset id="placesCommands" |
michael@0 | 50 | commandupdater="true" |
michael@0 | 51 | events="focus,sort,places" |
michael@0 | 52 | oncommandupdate="goUpdatePlacesCommands();"> |
michael@0 | 53 | <command id="placesCmd_open" |
michael@0 | 54 | oncommand="goDoPlacesCommand('placesCmd_open');"/> |
michael@0 | 55 | <command id="placesCmd_open:window" |
michael@0 | 56 | oncommand="goDoPlacesCommand('placesCmd_open:window');"/> |
michael@0 | 57 | <command id="placesCmd_open:tab" |
michael@0 | 58 | oncommand="goDoPlacesCommand('placesCmd_open:tab');"/> |
michael@0 | 59 | |
michael@0 | 60 | <command id="placesCmd_new:bookmark" |
michael@0 | 61 | oncommand="goDoPlacesCommand('placesCmd_new:bookmark');"/> |
michael@0 | 62 | <command id="placesCmd_new:folder" |
michael@0 | 63 | oncommand="goDoPlacesCommand('placesCmd_new:folder');"/> |
michael@0 | 64 | <command id="placesCmd_new:separator" |
michael@0 | 65 | oncommand="goDoPlacesCommand('placesCmd_new:separator');"/> |
michael@0 | 66 | <command id="placesCmd_show:info" |
michael@0 | 67 | oncommand="goDoPlacesCommand('placesCmd_show:info');"/> |
michael@0 | 68 | <command id="placesCmd_rename" |
michael@0 | 69 | oncommand="goDoPlacesCommand('placesCmd_show:info');" |
michael@0 | 70 | observes="placesCmd_show:info"/> |
michael@0 | 71 | <command id="placesCmd_reload" |
michael@0 | 72 | oncommand="goDoPlacesCommand('placesCmd_reload');"/> |
michael@0 | 73 | <command id="placesCmd_sortBy:name" |
michael@0 | 74 | oncommand="goDoPlacesCommand('placesCmd_sortBy:name');"/> |
michael@0 | 75 | <command id="placesCmd_moveBookmarks" |
michael@0 | 76 | oncommand="goDoPlacesCommand('placesCmd_moveBookmarks');"/> |
michael@0 | 77 | <command id="placesCmd_deleteDataHost" |
michael@0 | 78 | oncommand="goDoPlacesCommand('placesCmd_deleteDataHost');"/> |
michael@0 | 79 | <command id="placesCmd_createBookmark" |
michael@0 | 80 | oncommand="goDoPlacesCommand('placesCmd_createBookmark');"/> |
michael@0 | 81 | |
michael@0 | 82 | <!-- Special versions of cut/copy/paste/delete which check for an open context menu. --> |
michael@0 | 83 | <command id="placesCmd_cut" |
michael@0 | 84 | oncommand="goDoPlacesCommand('placesCmd_cut');"/> |
michael@0 | 85 | <command id="placesCmd_copy" |
michael@0 | 86 | oncommand="goDoPlacesCommand('placesCmd_copy');"/> |
michael@0 | 87 | <command id="placesCmd_paste" |
michael@0 | 88 | oncommand="goDoPlacesCommand('placesCmd_paste');"/> |
michael@0 | 89 | <command id="placesCmd_delete" |
michael@0 | 90 | oncommand="goDoPlacesCommand('placesCmd_delete');"/> |
michael@0 | 91 | </commandset> |
michael@0 | 92 | |
michael@0 | 93 | <menupopup id="placesContext" |
michael@0 | 94 | onpopupshowing="this._view = PlacesUIUtils.getViewForNode(document.popupNode); |
michael@0 | 95 | return this._view.buildContextMenu(this);" |
michael@0 | 96 | onpopuphiding="this._view.destroyContextMenu();"> |
michael@0 | 97 | <menuitem id="placesContext_open" |
michael@0 | 98 | command="placesCmd_open" |
michael@0 | 99 | label="&cmd.open.label;" |
michael@0 | 100 | accesskey="&cmd.open.accesskey;" |
michael@0 | 101 | default="true" |
michael@0 | 102 | selectiontype="single" |
michael@0 | 103 | selection="link"/> |
michael@0 | 104 | <menuitem id="placesContext_open:newtab" |
michael@0 | 105 | command="placesCmd_open:tab" |
michael@0 | 106 | label="&cmd.open_tab.label;" |
michael@0 | 107 | accesskey="&cmd.open_tab.accesskey;" |
michael@0 | 108 | selectiontype="single" |
michael@0 | 109 | selection="link"/> |
michael@0 | 110 | <menuitem id="placesContext_openContainer:tabs" |
michael@0 | 111 | oncommand="var view = PlacesUIUtils.getViewForNode(document.popupNode); |
michael@0 | 112 | view.controller.openSelectionInTabs(event);" |
michael@0 | 113 | onclick="checkForMiddleClick(this, event);" |
michael@0 | 114 | label="&cmd.open_all_in_tabs.label;" |
michael@0 | 115 | accesskey="&cmd.open_all_in_tabs.accesskey;" |
michael@0 | 116 | selectiontype="single" |
michael@0 | 117 | selection="folder|host|query"/> |
michael@0 | 118 | <menuitem id="placesContext_openLinks:tabs" |
michael@0 | 119 | oncommand="var view = PlacesUIUtils.getViewForNode(document.popupNode); |
michael@0 | 120 | view.controller.openSelectionInTabs(event);" |
michael@0 | 121 | onclick="checkForMiddleClick(this, event);" |
michael@0 | 122 | label="&cmd.open_all_in_tabs.label;" |
michael@0 | 123 | accesskey="&cmd.open_all_in_tabs.accesskey;" |
michael@0 | 124 | selectiontype="multiple" |
michael@0 | 125 | selection="link"/> |
michael@0 | 126 | <menuitem id="placesContext_open:newwindow" |
michael@0 | 127 | command="placesCmd_open:window" |
michael@0 | 128 | label="&cmd.open_window.label;" |
michael@0 | 129 | accesskey="&cmd.open_window.accesskey;" |
michael@0 | 130 | selectiontype="single" |
michael@0 | 131 | selection="link"/> |
michael@0 | 132 | <menuseparator id="placesContext_openSeparator"/> |
michael@0 | 133 | <menuitem id="placesContext_new:bookmark" |
michael@0 | 134 | command="placesCmd_new:bookmark" |
michael@0 | 135 | label="&cmd.new_bookmark.label;" |
michael@0 | 136 | accesskey="&cmd.new_bookmark.accesskey;" |
michael@0 | 137 | selection="any" |
michael@0 | 138 | hideifnoinsertionpoint="true"/> |
michael@0 | 139 | <menuitem id="placesContext_new:folder" |
michael@0 | 140 | command="placesCmd_new:folder" |
michael@0 | 141 | label="&cmd.new_folder.label;" |
michael@0 | 142 | accesskey="&cmd.context_new_folder.accesskey;" |
michael@0 | 143 | selection="any" |
michael@0 | 144 | hideifnoinsertionpoint="true"/> |
michael@0 | 145 | <menuitem id="placesContext_new:separator" |
michael@0 | 146 | command="placesCmd_new:separator" |
michael@0 | 147 | label="&cmd.new_separator.label;" |
michael@0 | 148 | accesskey="&cmd.new_separator.accesskey;" |
michael@0 | 149 | closemenu="single" |
michael@0 | 150 | selection="any" |
michael@0 | 151 | hideifnoinsertionpoint="true"/> |
michael@0 | 152 | <menuseparator id="placesContext_newSeparator"/> |
michael@0 | 153 | <menuitem id="placesContext_createBookmark" |
michael@0 | 154 | command="placesCmd_createBookmark" |
michael@0 | 155 | label="&cmd.bookmarkLink.label;" |
michael@0 | 156 | accesskey="&cmd.bookmarkLink.accesskey;" |
michael@0 | 157 | selection="link" |
michael@0 | 158 | forcehideselection="bookmark|tagChild"/> |
michael@0 | 159 | <menuitem id="placesContext_cut" |
michael@0 | 160 | command="placesCmd_cut" |
michael@0 | 161 | label="&cutCmd.label;" |
michael@0 | 162 | accesskey="&cutCmd.accesskey;" |
michael@0 | 163 | closemenu="single" |
michael@0 | 164 | selection="bookmark|folder|separator|query" |
michael@0 | 165 | forcehideselection="tagChild|livemarkChild"/> |
michael@0 | 166 | <menuitem id="placesContext_copy" |
michael@0 | 167 | command="placesCmd_copy" |
michael@0 | 168 | label="©Cmd.label;" |
michael@0 | 169 | closemenu="single" |
michael@0 | 170 | accesskey="©Cmd.accesskey;" |
michael@0 | 171 | selection="any"/> |
michael@0 | 172 | <menuitem id="placesContext_paste" |
michael@0 | 173 | command="placesCmd_paste" |
michael@0 | 174 | label="&pasteCmd.label;" |
michael@0 | 175 | closemenu="single" |
michael@0 | 176 | accesskey="&pasteCmd.accesskey;" |
michael@0 | 177 | selection="any" |
michael@0 | 178 | hideifnoinsertionpoint="true"/> |
michael@0 | 179 | <menuseparator id="placesContext_editSeparator"/> |
michael@0 | 180 | <menuitem id="placesContext_delete" |
michael@0 | 181 | command="placesCmd_delete" |
michael@0 | 182 | label="&deleteCmd.label;" |
michael@0 | 183 | accesskey="&deleteCmd.accesskey;" |
michael@0 | 184 | closemenu="single" |
michael@0 | 185 | selection="bookmark|tagChild|folder|query|dynamiccontainer|separator|host"/> |
michael@0 | 186 | <menuitem id="placesContext_delete_history" |
michael@0 | 187 | command="placesCmd_delete" |
michael@0 | 188 | label="&cmd.delete.label;" |
michael@0 | 189 | accesskey="&cmd.delete.accesskey;" |
michael@0 | 190 | closemenu="single" |
michael@0 | 191 | selection="link" |
michael@0 | 192 | forcehideselection="bookmark"/> |
michael@0 | 193 | <menuitem id="placesContext_deleteHost" |
michael@0 | 194 | command="placesCmd_deleteDataHost" |
michael@0 | 195 | label="&cmd.deleteDomainData.label;" |
michael@0 | 196 | accesskey="&cmd.deleteDomainData.accesskey;" |
michael@0 | 197 | closemenu="single" |
michael@0 | 198 | selection="link|host" |
michael@0 | 199 | selectiontype="single" |
michael@0 | 200 | hideifprivatebrowsing="true" |
michael@0 | 201 | forcehideselection="bookmark"/> |
michael@0 | 202 | <menuseparator id="placesContext_deleteSeparator"/> |
michael@0 | 203 | <menuitem id="placesContext_sortBy:name" |
michael@0 | 204 | command="placesCmd_sortBy:name" |
michael@0 | 205 | label="&cmd.sortby_name.label;" |
michael@0 | 206 | accesskey="&cmd.context_sortby_name.accesskey;" |
michael@0 | 207 | closemenu="single" |
michael@0 | 208 | selection="folder"/> |
michael@0 | 209 | <menuitem id="placesContext_reload" |
michael@0 | 210 | command="placesCmd_reload" |
michael@0 | 211 | label="&cmd.reloadLivebookmark.label;" |
michael@0 | 212 | accesskey="&cmd.reloadLivebookmark.accesskey;" |
michael@0 | 213 | closemenu="single" |
michael@0 | 214 | selection="livemark/feedURI"/> |
michael@0 | 215 | <menuseparator id="placesContext_sortSeparator"/> |
michael@0 | 216 | <menuitem id="placesContext_show:info" |
michael@0 | 217 | command="placesCmd_show:info" |
michael@0 | 218 | label="&cmd.properties.label;" |
michael@0 | 219 | accesskey="&cmd.properties.accesskey;" |
michael@0 | 220 | selection="bookmark|folder|query" |
michael@0 | 221 | forcehideselection="livemarkChild"/> |
michael@0 | 222 | </menupopup> |
michael@0 | 223 | |
michael@0 | 224 | </overlay> |