|
1 <?xml version="1.0"?> |
|
2 <!-- -*- Mode: HTML; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- --> |
|
3 <!-- vim: set ts=2 et sw=2 tw=80: --> |
|
4 |
|
5 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
6 - License, v. 2.0. If a copy of the MPL was not distributed with this file, |
|
7 - You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
8 |
|
9 <!DOCTYPE bindings SYSTEM "chrome://browser/locale/downloads/downloads.dtd"> |
|
10 |
|
11 <bindings id="downloadBindings" |
|
12 xmlns="http://www.mozilla.org/xbl" |
|
13 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
14 xmlns:xbl="http://www.mozilla.org/xbl"> |
|
15 |
|
16 <binding id="download" |
|
17 extends="chrome://global/content/bindings/richlistbox.xml#richlistitem"> |
|
18 <content orient="horizontal" |
|
19 align="center" |
|
20 onclick="DownloadsView.onDownloadClick(event);"> |
|
21 <xul:image class="downloadTypeIcon" |
|
22 validate="always" |
|
23 xbl:inherits="src=image"/> |
|
24 <xul:image class="downloadTypeIcon blockedIcon"/> |
|
25 <xul:vbox pack="center" |
|
26 flex="1" |
|
27 class="downloadContainer" |
|
28 style="width: &downloadDetails.width;"> |
|
29 <!-- We're letting localizers put a min-width in here primarily |
|
30 because of the downloads summary at the bottom of the list of |
|
31 download items. An element in the summary has the same min-width |
|
32 on a description, and we don't want the panel to change size if the |
|
33 summary isn't being displayed, so we ensure that items share the |
|
34 same minimum width. |
|
35 --> |
|
36 <xul:description class="downloadTarget" |
|
37 crop="center" |
|
38 style="min-width: &downloadsSummary.minWidth2;" |
|
39 xbl:inherits="value=target,tooltiptext=target"/> |
|
40 <xul:progressmeter anonid="progressmeter" |
|
41 class="downloadProgress" |
|
42 min="0" |
|
43 max="100" |
|
44 xbl:inherits="mode=progressmode,value=progress"/> |
|
45 <xul:description class="downloadDetails" |
|
46 crop="end" |
|
47 xbl:inherits="value=status,tooltiptext=statusTip"/> |
|
48 </xul:vbox> |
|
49 <xul:stack> |
|
50 <xul:button class="downloadButton downloadCancel" |
|
51 tooltiptext="&cmd.cancel.label;" |
|
52 oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_cancel');"/> |
|
53 <xul:button class="downloadButton downloadRetry" |
|
54 tooltiptext="&cmd.retry.label;" |
|
55 oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_retry');"/> |
|
56 <xul:button class="downloadButton downloadShow" |
|
57 #ifdef XP_MACOSX |
|
58 tooltiptext="&cmd.showMac.label;" |
|
59 #else |
|
60 tooltiptext="&cmd.show.label;" |
|
61 #endif |
|
62 oncommand="DownloadsView.onDownloadCommand(event, 'downloadsCmd_show');"/> |
|
63 </xul:stack> |
|
64 </content> |
|
65 </binding> |
|
66 |
|
67 <binding id="download-full-ui" |
|
68 extends="chrome://global/content/bindings/richlistbox.xml#richlistitem"> |
|
69 <resources> |
|
70 <stylesheet src="chrome://browser/content/downloads/download.css"/> |
|
71 </resources> |
|
72 |
|
73 <content orient="horizontal" align="center"> |
|
74 <xul:image class="downloadTypeIcon" |
|
75 validate="always" |
|
76 xbl:inherits="src=image"/> |
|
77 <xul:image class="downloadTypeIcon blockedIcon"/> |
|
78 <xul:vbox pack="center" flex="1"> |
|
79 <xul:description class="downloadTarget" |
|
80 crop="center" |
|
81 xbl:inherits="value=displayName,tooltiptext=displayName"/> |
|
82 <xul:progressmeter anonid="progressmeter" |
|
83 class="downloadProgress" |
|
84 min="0" |
|
85 max="100" |
|
86 xbl:inherits="mode=progressmode,value=progress"/> |
|
87 <xul:description class="downloadDetails" |
|
88 style="width: &downloadDetails.width;" |
|
89 crop="end" |
|
90 xbl:inherits="value=status,tooltiptext=statusTip"/> |
|
91 </xul:vbox> |
|
92 |
|
93 <xul:button class="downloadButton downloadCancel" |
|
94 tooltiptext="&cmd.cancel.label;" |
|
95 oncommand="goDoCommand('downloadsCmd_cancel')"/> |
|
96 <xul:button class="downloadButton downloadRetry" |
|
97 tooltiptext="&cmd.retry.label;" |
|
98 oncommand="goDoCommand('downloadsCmd_retry')"/> |
|
99 <xul:button class="downloadButton downloadShow" |
|
100 #ifdef XP_MACOSX |
|
101 tooltiptext="&cmd.showMac.label;" |
|
102 #else |
|
103 tooltiptext="&cmd.show.label;" |
|
104 #endif |
|
105 oncommand="goDoCommand('downloadsCmd_show')"/> |
|
106 |
|
107 </content> |
|
108 </binding> |
|
109 |
|
110 <binding id="download-toolbarbutton" |
|
111 extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton"> |
|
112 <content> |
|
113 <children /> |
|
114 <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,label"/> |
|
115 <xul:label class="toolbarbutton-text" crop="right" flex="1" |
|
116 xbl:inherits="value=label,accesskey,crop,wrap"/> |
|
117 <xul:label class="toolbarbutton-multiline-text" flex="1" |
|
118 xbl:inherits="xbl:text=label,accesskey,wrap"/> |
|
119 </content> |
|
120 </binding> |
|
121 </bindings> |