browser/components/downloads/content/indicatorOverlay.xul

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     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: -->
     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/. -->
     9 <!DOCTYPE overlay [
    10   <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
    11   %browserDTD;
    12 ]>
    14 <overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    15          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    16          id="indicatorOverlay">
    18   <!-- We dynamically add the stack with the progress meter and notification icon,
    19        originally loaded lazily because of performance reasons, to the existing
    20        downloads-button. -->
    21   <toolbarbutton id="downloads-button" indicator="true">
    22     <!-- The panel's anchor area is smaller than the outer button, but must
    23          always be visible and must not move or resize when the indicator
    24          state changes, otherwise the panel could change its position or lose
    25          its arrow unexpectedly. -->
    26     <stack id="downloads-indicator-anchor" class="toolbarbutton-icon">
    27       <vbox id="downloads-indicator-progress-area" pack="center">
    28         <description id="downloads-indicator-counter"/>
    29         <progressmeter id="downloads-indicator-progress" class="plain"
    30                        min="0" max="100"/>
    31       </vbox>
    32       <vbox id="downloads-indicator-icon"/>
    33     </stack>
    34   </toolbarbutton>
    35 </overlay>

mercurial