1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/content/widgets/scrollbar.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 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 id="scrollbarBindings" 1.11 + xmlns="http://www.mozilla.org/xbl" 1.12 + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.13 + xmlns:xbl="http://www.mozilla.org/xbl"> 1.14 + 1.15 + <binding id="thumb" extends="xul:button" /> 1.16 + 1.17 + <binding id="scrollbar-base"> 1.18 + <handlers> 1.19 + <handler event="contextmenu" preventdefault="true" action="event.stopPropagation();"/> 1.20 + <handler event="click" preventdefault="true" action="event.stopPropagation();"/> 1.21 + <handler event="dblclick" action="event.stopPropagation();"/> 1.22 + <handler event="command" action="event.stopPropagation();"/> 1.23 + </handlers> 1.24 + </binding> 1.25 + 1.26 + <binding id="scrollbar" extends="chrome://global/content/bindings/scrollbar.xml#scrollbar-base"> 1.27 + <content clickthrough="always"> 1.28 + <xul:scrollbarbutton sbattr="scrollbar-up-top" type="decrement" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/> 1.29 + <xul:scrollbarbutton sbattr="scrollbar-down-top" type="increment" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/> 1.30 + <xul:slider flex="1" xbl:inherits="disabled,curpos,maxpos,pageincrement,increment,orient,sborient=orient"> 1.31 + <xul:thumb sbattr="scrollbar-thumb" xbl:inherits="orient,sborient=orient,collapsed=disabled" 1.32 + align="center" pack="center"/> 1.33 + </xul:slider> 1.34 + <xul:scrollbarbutton sbattr="scrollbar-up-bottom" type="decrement" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/> 1.35 + <xul:scrollbarbutton sbattr="scrollbar-down-bottom" type="increment" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/> 1.36 + </content> 1.37 + </binding> 1.38 +</bindings>