browser/metro/base/content/bindings/tabprompts.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/metro/base/content/bindings/tabprompts.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +<bindings
    1.10 +   xmlns="http://www.mozilla.org/xbl"
    1.11 +   xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.12 +   xmlns:xbl="http://www.mozilla.org/xbl">
    1.13 +
    1.14 +  <binding id="tabmodalprompt"
    1.15 +           extends="chrome://global/content/tabprompts.xml#tabmodalprompt">
    1.16 +
    1.17 +    <implementation>
    1.18 +      <method name="metroInit">
    1.19 +        <parameter name="args"/>
    1.20 +        <parameter name="linkedTab"/>
    1.21 +        <parameter name="onCloseCallback"/>
    1.22 +        <body>
    1.23 +          <![CDATA[
    1.24 +            this.init(args, linkedTab, onCloseCallback);
    1.25 +
    1.26 +            this.ui.infoTitle.removeAttribute("hidden");
    1.27 +
    1.28 +            let infoContainer = document.getAnonymousElementByAttribute(this, "anonid", "infoContainer");
    1.29 +            infoContainer.setAttribute("align", "start");
    1.30 +            infoContainer.classList.add("infoContainer");
    1.31 +          ]]>
    1.32 +        </body>
    1.33 +      </method>
    1.34 +
    1.35 +
    1.36 +      <method name="onResize">
    1.37 +        <body>
    1.38 +          <![CDATA[
    1.39 +            // Overwrite base onResize method. It's no-op for metro.
    1.40 +          ]]>
    1.41 +        </body>
    1.42 +      </method>
    1.43 +
    1.44 +    </implementation>
    1.45 +
    1.46 +  </binding>
    1.47 +
    1.48 +</bindings>

mercurial