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