Bug 393301 - Add UI for downloads in scanning state. r=gavin.sharp, a=mconnor
git-svn-id: svn://10.0.0.236/trunk@236139 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
108bd0158d
commit
bd69b7939d
@ -9,6 +9,7 @@
|
||||
|
||||
<!-- 'Parental Controls' label should be capitalized -->
|
||||
<!ENTITY blocked.label "Blocked by Parental Controls">
|
||||
<!ENTITY scanning.label "Scanning for viruses...">
|
||||
|
||||
<!ENTITY downloads.title "Downloads">
|
||||
|
||||
|
||||
@ -314,4 +314,31 @@
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="download-scanning" extends="chrome://mozapps/content/downloads/download.xml#download-base">
|
||||
<content>
|
||||
<xul:hbox flex="1">
|
||||
#ifdef SHOW_ICONS
|
||||
<xul:vbox pack="start">
|
||||
<xul:image class="downloadTypeIcon" validate="always"
|
||||
xbl:inherits="src=image"/>
|
||||
</xul:vbox>
|
||||
#endif
|
||||
<xul:vbox pack="start" flex="1">
|
||||
<xul:label xbl:inherits="value=target,tooltiptext=target"
|
||||
crop="center" flex="2" class="name"/>
|
||||
<xul:hbox>
|
||||
<xul:vbox flex="1">
|
||||
<xul:progressmeter mode="undetermined" flex="1" />
|
||||
</xul:vbox>
|
||||
<xul:button class="info mini-button" tooltiptext="&cmd.info.label;"
|
||||
command="cmd_showInfo" ondblclick="event.stopPropagation();"
|
||||
anonid="info"/>
|
||||
</xul:hbox>
|
||||
<xul:label value="&scanning.label;" class="status"/>
|
||||
<xul:spacer flex="1"/>
|
||||
</xul:vbox>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
</bindings>
|
||||
|
||||
@ -27,6 +27,10 @@ richlistitem[type="download"][state="6"] {
|
||||
-moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-blocked');
|
||||
}
|
||||
|
||||
richlistitem[type="download"][state="7"] {
|
||||
-moz-binding: url('chrome://mozapps/content/downloads/download.xml#download-scanning');
|
||||
}
|
||||
|
||||
/* Only focus buttons in the selected item*/
|
||||
richlistitem[type="download"]:not([selected="true"]) button {
|
||||
-moz-user-focus: none;
|
||||
|
||||
@ -477,7 +477,9 @@ var gContextMenus = [
|
||||
"menuitem_copyLocation"],
|
||||
// DOWNLOAD_BLOCKED
|
||||
["menuitem_retry", "menuitem_remove", "menuseparator_copy_location",
|
||||
"menuitem_copyLocation"]
|
||||
"menuitem_copyLocation"],
|
||||
// DOWNLOAD_SCANNING
|
||||
["menuitem_copyLocation"]
|
||||
];
|
||||
|
||||
function buildContextMenu(aEvent)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user