1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mobile/android/chrome/content/bindings/settings.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,66 @@ 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 + 1.10 +<bindings 1.11 + xmlns="http://www.mozilla.org/xbl" 1.12 + xmlns:xbl="http://www.mozilla.org/xbl" 1.13 + xmlns:html="http://www.w3.org/1999/xhtml" 1.14 + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 1.15 + 1.16 + <binding id="setting-fulltoggle-bool" extends="chrome://mozapps/content/extensions/setting.xml#setting-bool"> 1.17 + <handlers> 1.18 + <handler event="command" button="0" phase="capturing"> 1.19 + <![CDATA[ 1.20 + event.stopPropagation(); 1.21 + ]]> 1.22 + </handler> 1.23 + <handler event="click" button="0" phase="capturing"> 1.24 + <![CDATA[ 1.25 + event.stopPropagation(); 1.26 + this.input.checked = !this.input.checked; 1.27 + this.inputChanged(); 1.28 + this.fireEvent("oncommand"); 1.29 + ]]> 1.30 + </handler> 1.31 + </handlers> 1.32 + </binding> 1.33 + 1.34 + <binding id="setting-fulltoggle-boolint" extends="chrome://mozapps/content/extensions/setting.xml#setting-boolint"> 1.35 + <handlers> 1.36 + <handler event="command" button="0" phase="capturing"> 1.37 + <![CDATA[ 1.38 + event.stopPropagation(); 1.39 + ]]> 1.40 + </handler> 1.41 + <handler event="click" button="0" phase="capturing"> 1.42 + <![CDATA[ 1.43 + event.stopPropagation(); 1.44 + this.input.checked = !this.input.checked; 1.45 + this.inputChanged(); 1.46 + this.fireEvent("oncommand"); 1.47 + ]]> 1.48 + </handler> 1.49 + </handlers> 1.50 + </binding> 1.51 + 1.52 + <binding id="setting-fulltoggle-localized-bool" extends="chrome://mozapps/content/extensions/setting.xml#setting-localized-bool"> 1.53 + <handlers> 1.54 + <handler event="command" button="0" phase="capturing"> 1.55 + <![CDATA[ 1.56 + event.stopPropagation(); 1.57 + ]]> 1.58 + </handler> 1.59 + <handler event="click" button="0" phase="capturing"> 1.60 + <![CDATA[ 1.61 + event.stopPropagation(); 1.62 + this.input.checked = !this.input.checked; 1.63 + this.inputChanged(); 1.64 + this.fireEvent("oncommand"); 1.65 + ]]> 1.66 + </handler> 1.67 + </handlers> 1.68 + </binding> 1.69 +</bindings>