|
1 <?xml version="1.0"?> |
|
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
3 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
5 |
|
6 <bindings |
|
7 xmlns="http://www.mozilla.org/xbl" |
|
8 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
9 xmlns:xbl="http://www.mozilla.org/xbl"> |
|
10 |
|
11 <binding id="tabmodalprompt" |
|
12 extends="chrome://global/content/tabprompts.xml#tabmodalprompt"> |
|
13 |
|
14 <implementation> |
|
15 <method name="metroInit"> |
|
16 <parameter name="args"/> |
|
17 <parameter name="linkedTab"/> |
|
18 <parameter name="onCloseCallback"/> |
|
19 <body> |
|
20 <![CDATA[ |
|
21 this.init(args, linkedTab, onCloseCallback); |
|
22 |
|
23 this.ui.infoTitle.removeAttribute("hidden"); |
|
24 |
|
25 let infoContainer = document.getAnonymousElementByAttribute(this, "anonid", "infoContainer"); |
|
26 infoContainer.setAttribute("align", "start"); |
|
27 infoContainer.classList.add("infoContainer"); |
|
28 ]]> |
|
29 </body> |
|
30 </method> |
|
31 |
|
32 |
|
33 <method name="onResize"> |
|
34 <body> |
|
35 <![CDATA[ |
|
36 // Overwrite base onResize method. It's no-op for metro. |
|
37 ]]> |
|
38 </body> |
|
39 </method> |
|
40 |
|
41 </implementation> |
|
42 |
|
43 </binding> |
|
44 |
|
45 </bindings> |