2007-03-22 10:30:00 -07:00
|
|
|
<?xml version="1.0"?>
|
2012-05-21 04:12:37 -07:00
|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
<bindings id="scrollbarBindings"
|
|
|
|
xmlns="http://www.mozilla.org/xbl"
|
|
|
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
|
|
xmlns:xbl="http://www.mozilla.org/xbl">
|
|
|
|
|
2008-08-12 23:15:27 -07:00
|
|
|
<binding id="thumb" extends="xul:button" />
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2014-08-11 20:06:55 -07:00
|
|
|
<binding id="scrollbar-base" bindToUntrustedContent="true">
|
2007-03-22 10:30:00 -07:00
|
|
|
<handlers>
|
|
|
|
<handler event="contextmenu" preventdefault="true" action="event.stopPropagation();"/>
|
|
|
|
<handler event="click" preventdefault="true" action="event.stopPropagation();"/>
|
|
|
|
<handler event="dblclick" action="event.stopPropagation();"/>
|
|
|
|
<handler event="command" action="event.stopPropagation();"/>
|
|
|
|
</handlers>
|
|
|
|
</binding>
|
2008-02-07 01:26:22 -08:00
|
|
|
|
2014-08-11 20:06:55 -07:00
|
|
|
<binding id="scrollbar" bindToUntrustedContent="true" extends="chrome://global/content/bindings/scrollbar.xml#scrollbar-base">
|
2012-03-22 17:32:23 -07:00
|
|
|
<content clickthrough="always">
|
2008-02-07 01:26:22 -08:00
|
|
|
<xul:scrollbarbutton sbattr="scrollbar-up-top" type="decrement" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/>
|
|
|
|
<xul:scrollbarbutton sbattr="scrollbar-down-top" type="increment" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
<xul:slider flex="1" xbl:inherits="disabled,curpos,maxpos,pageincrement,increment,orient,sborient=orient">
|
|
|
|
<xul:thumb sbattr="scrollbar-thumb" xbl:inherits="orient,sborient=orient,collapsed=disabled"
|
2007-11-19 12:08:20 -08:00
|
|
|
align="center" pack="center"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</xul:slider>
|
2008-02-07 01:26:22 -08:00
|
|
|
<xul:scrollbarbutton sbattr="scrollbar-up-bottom" type="decrement" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/>
|
|
|
|
<xul:scrollbarbutton sbattr="scrollbar-down-bottom" type="increment" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/>
|
2007-03-22 10:30:00 -07:00
|
|
|
</content>
|
|
|
|
</binding>
|
|
|
|
</bindings>
|