home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / firefox-3.0.14 / chrome / browser.jar / content / browser / preferences / handlers.xml < prev    next >
Encoding:
Extensible Markup Language  |  2008-02-26  |  4.5 KB  |  114 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.    -
  6.    - The contents of this file are subject to the Mozilla Public License Version
  7.    - 1.1 (the "License"); you may not use this file except in compliance with
  8.    - the License. You may obtain a copy of the License at
  9.    - http://www.mozilla.org/MPL/
  10.    -
  11.    - Software distributed under the License is distributed on an "AS IS" basis,
  12.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.    - for the specific language governing rights and limitations under the
  14.    - License.
  15.    -
  16.    - The Original Code is the Mozilla browser.
  17.    -
  18.    - The Initial Developer of the Original Code is Mozilla.
  19.    - Portions created by the Initial Developer are Copyright (C) 2007
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    -   Myk Melez <myk@mozilla.org>
  24.    -
  25.    - Alternatively, the contents of this file may be used under the terms of
  26.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  27.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.    - in which case the provisions of the GPL or the LGPL are applicable instead
  29.    - of those above. If you wish to allow use of your version of this file only
  30.    - under the terms of either the GPL or the LGPL, and not to allow others to
  31.    - use your version of this file under the terms of the MPL, indicate your
  32.    - decision by deleting the provisions above and replace them with the notice
  33.    - and other provisions required by the LGPL or the GPL. If you do not delete
  34.    - the provisions above, a recipient may use your version of this file under
  35.    - the terms of any one of the MPL, the GPL or the LGPL.
  36.    -
  37.    - ***** END LICENSE BLOCK ***** -->
  38.  
  39. <!DOCTYPE overlay [
  40.   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  41.   <!ENTITY % applicationsDTD SYSTEM "chrome://browser/locale/preferences/applications.dtd">
  42.   %brandDTD;
  43.   %applicationsDTD;
  44. ]>
  45.  
  46. <bindings id="handlerBindings"
  47.           xmlns="http://www.mozilla.org/xbl"
  48.           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  49.           xmlns:xbl="http://www.mozilla.org/xbl">
  50.  
  51.   <binding id="handler-base" extends="chrome://global/content/bindings/richlistbox.xml#richlistitem">
  52.     <implementation>
  53.       <property name="type" readonly="true">
  54.         <getter>
  55.           return this.getAttribute("type");
  56.         </getter>
  57.       </property>
  58.     </implementation>
  59.   </binding>
  60.  
  61.   <binding id="handler" extends="chrome://browser/content/preferences/handlers.xml#handler-base">
  62.     <content>
  63.       <xul:hbox flex="1" equalsize="always">
  64.         <xul:hbox flex="1" align="center" xbl:inherits="tooltiptext=typeDescription">
  65.           <xul:image src="moz-icon://goat?size=16" class="typeIcon"
  66.                      xbl:inherits="src=typeIcon" height="16" width="16"/>
  67.           <xul:label flex="1" crop="end" xbl:inherits="value=typeDescription"/>
  68.         </xul:hbox>
  69.         <xul:hbox flex="1" align="center" xbl:inherits="tooltiptext=actionDescription">
  70.           <xul:image xbl:inherits="src=actionIcon" height="16" width="16" class="actionIcon"/>
  71.           <xul:label flex="1" crop="end" xbl:inherits="value=actionDescription"/>
  72.         </xul:hbox>
  73.       </xul:hbox>
  74.     </content>
  75.   </binding>
  76.  
  77.   <binding id="handler-selected" extends="chrome://browser/content/preferences/handlers.xml#handler-base">
  78.     <content>
  79.       <xul:hbox flex="1" equalsize="always">
  80.         <xul:hbox flex="1" align="center" xbl:inherits="tooltiptext=typeDescription">
  81.           <xul:image src="moz-icon://goat?size=16" class="typeIcon"
  82.                      xbl:inherits="src=typeIcon" height="16" width="16"/>
  83.           <xul:label flex="1" crop="end" xbl:inherits="value=typeDescription"/>
  84.         </xul:hbox>
  85.         <xul:hbox flex="1">
  86.           <xul:menulist class="actionsMenu" flex="1" crop="end" selectedIndex="1"
  87.                         xbl:inherits="tooltiptext=actionDescription"
  88.                         oncommand="gApplicationsPane.onSelectAction(event.originalTarget)">
  89.             <xul:menupopup/>
  90.           </xul:menulist>
  91.         </xul:hbox>
  92.       </xul:hbox>
  93.     </content>
  94.  
  95.     <implementation>
  96.       <constructor>
  97.         gApplicationsPane.rebuildActionsMenu();
  98.       </constructor>
  99.     </implementation>
  100.  
  101.   </binding>
  102.  
  103.   <binding id="offlineapp"
  104.        extends="chrome://global/content/bindings/listbox.xml#listitem">
  105.     <content>
  106.       <children>
  107.     <xul:listcell xbl:inherits="label=host"/>
  108.     <xul:listcell xbl:inherits="label=usage"/>
  109.       </children>
  110.     </content>
  111.   </binding>
  112.  
  113. </bindings>
  114.