firefox-kde.patch
changeset 343 f467ac3aff09
parent 340 aabcc7895695
child 356 30a00f382aed
equal deleted inserted replaced
342:fcf304737c81 343:f467ac3aff09
     1 diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
     1 diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
     2 new file mode 100644
     2 new file mode 100644
     3 --- /dev/null
     3 --- /dev/null
     4 +++ b/browser/base/content/browser-kde.xul
     4 +++ b/browser/base/content/browser-kde.xul
     5 @@ -0,0 +1,1038 @@
     5 @@ -0,0 +1,1055 @@
     6 +#filter substitution
     6 +#filter substitution
     7 +<?xml version="1.0"?>
     7 +<?xml version="1.0"?>
     8 +# -*- Mode: HTML -*-
     8 +# -*- Mode: HTML -*-
     9 +#
     9 +#
    10 +# ***** BEGIN LICENSE BLOCK *****
    10 +# ***** BEGIN LICENSE BLOCK *****
   237 +           noautohide="true"
   237 +           noautohide="true"
   238 +           titlebar="normal"
   238 +           titlebar="normal"
   239 +           close="true"
   239 +           close="true"
   240 +           onpopuphiding="InspectorUI.closeInspectorUI();"
   240 +           onpopuphiding="InspectorUI.closeInspectorUI();"
   241 +           label="&inspectPanelTitle.label;">
   241 +           label="&inspectPanelTitle.label;">
   242 +      <toolbar id="inspector-toolbar"
       
   243 +               nowindowdrag="true">
       
   244 +        <toolbarbutton id="inspector-inspect-toolbutton"
       
   245 +                       label="&inspectButton.label;"
       
   246 +                       accesskey="&inspectButton.accesskey;"
       
   247 +                       class="toolbarbutton-text"
       
   248 +                       command="Inspector:Inspect"/>
       
   249 +      </toolbar>
       
   250 +      <hbox id="tree-panel-resizer-box" align="end">
   242 +      <hbox id="tree-panel-resizer-box" align="end">
   251 +        <spacer flex="1" />
   243 +        <spacer flex="1" />
   252 +        <resizer dir="bottomend" />
   244 +        <resizer dir="bottomend" />
   253 +      </hbox>
   245 +      </hbox>
   254 +    </panel>
   246 +    </panel>
   284 +      <menuitem label="&fullScreenExit.label;"
   276 +      <menuitem label="&fullScreenExit.label;"
   285 +                accesskey="&fullScreenExit.accesskey;"
   277 +                accesskey="&fullScreenExit.accesskey;"
   286 +                oncommand="BrowserFullScreen();"/>
   278 +                oncommand="BrowserFullScreen();"/>
   287 +    </menupopup>
   279 +    </menupopup>
   288 +
   280 +
   289 +    <menupopup id="contentAreaContextMenu"
   281 +    <menupopup id="contentAreaContextMenu" pagemenu="start"
   290 +               onpopupshowing="if (event.target != this)
   282 +               onpopupshowing="if (event.target != this)
   291 +                                 return true;
   283 +                                 return true;
   292 +                               gContextMenu = new nsContextMenu(this, gBrowser);
   284 +                               gContextMenu = new nsContextMenu(this, gBrowser, event.shiftKey);
   293 +                               if (gContextMenu.shouldDisplay)
   285 +                               if (gContextMenu.shouldDisplay)
   294 +                                 updateEditUIVisibility();
   286 +                                 updateEditUIVisibility();
   295 +                               return gContextMenu.shouldDisplay;"
   287 +                               return gContextMenu.shouldDisplay;"
   296 +               onpopuphiding="if (event.target == this) { gContextMenu = null; updateEditUIVisibility(); }">
   288 +               onpopuphiding="if (event.target == this) { gContextMenu = null; updateEditUIVisibility(); }">
   297 +#include browser-context.inc
   289 +#include browser-context.inc
   402 +              style="&dialog.style;"
   394 +              style="&dialog.style;"
   403 +              hidden="true"/>
   395 +              hidden="true"/>
   404 +    </panel>
   396 +    </panel>
   405 +
   397 +
   406 +    <tooltip id="tabbrowser-tab-tooltip" onpopupshowing="gBrowser.createTooltip(event);"/>
   398 +    <tooltip id="tabbrowser-tab-tooltip" onpopupshowing="gBrowser.createTooltip(event);"/>
       
   399 +
       
   400 +    <tooltip id="back-button-tooltip">
       
   401 +      <label value="&backButton.tooltip;"/>
       
   402 +#ifdef XP_MACOSX
       
   403 +      <label value="&backForwardButtonMenuMac.tooltip;"/>
       
   404 +#else
       
   405 +      <label value="&backForwardButtonMenu.tooltip;"/>
       
   406 +#endif
       
   407 +    </tooltip>
       
   408 +  
       
   409 +    <tooltip id="forward-button-tooltip">
       
   410 +      <label value="&forwardButton.tooltip;"/>
       
   411 +#ifdef XP_MACOSX
       
   412 +      <label value="&backForwardButtonMenuMac.tooltip;"/>
       
   413 +#else
       
   414 +      <label value="&backForwardButtonMenu.tooltip;"/>
       
   415 +#endif
       
   416 +    </tooltip>
   407 +  </popupset>
   417 +  </popupset>
   408 +
   418 +
   409 +#ifdef CAN_DRAW_IN_TITLEBAR
   419 +#ifdef CAN_DRAW_IN_TITLEBAR
   410 +<vbox id="titlebar">
   420 +<vbox id="titlebar">
   411 +  <hbox id="titlebar-content">
   421 +  <hbox id="titlebar-content">
   471 +                   title="&backForwardItem.title;">
   481 +                   title="&backForwardItem.title;">
   472 +        <toolbarbutton id="back-button" class="toolbarbutton-1"
   482 +        <toolbarbutton id="back-button" class="toolbarbutton-1"
   473 +                       label="&backCmd.label;"
   483 +                       label="&backCmd.label;"
   474 +                       command="Browser:BackOrBackDuplicate"
   484 +                       command="Browser:BackOrBackDuplicate"
   475 +                       onclick="checkForMiddleClick(this, event);"
   485 +                       onclick="checkForMiddleClick(this, event);"
   476 +                       tooltiptext="&backButton.tooltip;"/>
   486 +                       tooltip="back-button-tooltip"/>
   477 +        <toolbarbutton id="forward-button" class="toolbarbutton-1"
   487 +        <toolbarbutton id="forward-button" class="toolbarbutton-1"
   478 +                       label="&forwardCmd.label;"
   488 +                       label="&forwardCmd.label;"
   479 +                       command="Browser:ForwardOrForwardDuplicate"
   489 +                       command="Browser:ForwardOrForwardDuplicate"
   480 +                       onclick="checkForMiddleClick(this, event);"
   490 +                       onclick="checkForMiddleClick(this, event);"
   481 +                       tooltiptext="&forwardButton.tooltip;"/>
   491 +                       tooltip="forward-button-tooltip"/>
   482 +      </toolbaritem>
   492 +      </toolbaritem>
   483 +
   493 +
   484 +      <toolbaritem id="urlbar-container" align="center" flex="400" persist="width" combined="true"
   494 +      <toolbaritem id="urlbar-container" align="center" flex="400" persist="width" combined="true"
   485 +                   title="&locationItem.title;" class="chromeclass-location" removable="true">
   495 +                   title="&locationItem.title;" class="chromeclass-location" removable="true">
   486 +        <textbox id="urlbar" flex="1"
   496 +        <textbox id="urlbar" flex="1"
   956 +    </vbox>
   966 +    </vbox>
   957 +    <vbox id="browser-border-end" hidden="true" layer="true"/>
   967 +    <vbox id="browser-border-end" hidden="true" layer="true"/>
   958 +  </hbox>
   968 +  </hbox>
   959 +
   969 +
   960 +  <vbox id="browser-bottombox" layer="true">
   970 +  <vbox id="browser-bottombox" layer="true">
       
   971 +    <toolbar id="inspector-toolbar"
       
   972 +             nowindowdrag="true"
       
   973 +             hidden="true">
       
   974 +      <toolbarbutton id="inspector-inspect-toolbutton"
       
   975 +                     label="&inspectButton.label;"
       
   976 +                     accesskey="&inspectButton.accesskey;"
       
   977 +                     class="toolbarbutton-text"
       
   978 +                     command="Inspector:Inspect"/>
       
   979 +      <toolbarseparator />
       
   980 +      <hbox id="inspector-tools">
       
   981 +        <!-- registered tools go here -->
       
   982 +      </hbox>
       
   983 +    </toolbar>
   961 +    <toolbar id="addon-bar"
   984 +    <toolbar id="addon-bar"
   962 +             toolbarname="&addonBarCmd.label;" accesskey="&addonBarCmd.accesskey;"
   985 +             toolbarname="&addonBarCmd.label;" accesskey="&addonBarCmd.accesskey;"
   963 +             collapsed="true"
   986 +             collapsed="true"
   964 +             class="toolbar-primary chromeclass-toolbar"
   987 +             class="toolbar-primary chromeclass-toolbar"
   965 +             context="toolbar-context-menu" toolboxid="navigator-toolbox"
   988 +             context="toolbar-context-menu" toolboxid="navigator-toolbox"
   989 +#endif
  1012 +#endif
   990 +#ifdef XP_MACOSX
  1013 +#ifdef XP_MACOSX
   991 +  <svg:svg height="0">
  1014 +  <svg:svg height="0">
   992 +    <svg:mask id="pinstripe-keyhole-forward-mask" maskContentUnits="objectBoundingBox">
  1015 +    <svg:mask id="pinstripe-keyhole-forward-mask" maskContentUnits="objectBoundingBox">
   993 +      <svg:rect x="0" y="0" width="1" height="1" fill="white"/>
  1016 +      <svg:rect x="0" y="0" width="1" height="1" fill="white"/>
   994 +      <svg:circle cx="-0.46" cy="0.48" r="0.65"/>
  1017 +      <svg:circle cx="-0.41" cy="0.5" r="0.65"/>
   995 +    </svg:mask>
  1018 +    </svg:mask>
   996 +    <svg:mask id="pinstripe-tab-ontop-left-curve-mask" maskContentUnits="userSpaceOnUse">
  1019 +    <svg:mask id="pinstripe-tab-ontop-left-curve-mask" maskContentUnits="userSpaceOnUse">
   997 +      <svg:circle cx="9" cy="3" r="3" fill="white"/>
  1020 +      <svg:circle cx="9" cy="3" r="3" fill="white"/>
   998 +      <svg:rect x="9" y="0" width="3" height="3" fill="white"/>
  1021 +      <svg:rect x="9" y="0" width="3" height="3" fill="white"/>
   999 +      <svg:rect x="6" y="3" width="6" height="19" fill="white"/>
  1022 +      <svg:rect x="6" y="3" width="6" height="19" fill="white"/>
  1027 +    </svg:mask>
  1050 +    </svg:mask>
  1028 +  </svg:svg>
  1051 +  </svg:svg>
  1029 +#endif
  1052 +#endif
  1030 +
  1053 +
  1031 +</vbox>
  1054 +</vbox>
  1032 +# <iframe id="highlighter-frame"
       
  1033 +#   transparent="true"
       
  1034 +#   type="content"
       
  1035 +#   src="chrome://content/base/highlighter.html"/> is dynamically appended as
       
  1036 +#     the last child of #tab-view-deck, only when it is needed, for minimal
       
  1037 +#     performance impact.
       
  1038 +# <iframe id="tab-view"> is dynamically appended as the 2nd child of #tab-view-deck.
  1055 +# <iframe id="tab-view"> is dynamically appended as the 2nd child of #tab-view-deck.
  1039 +#     Introducing the iframe dynamically, as needed, was found to be better than
  1056 +#     Introducing the iframe dynamically, as needed, was found to be better than
  1040 +#     starting with an empty iframe here in browser.xul from a Ts standpoint.
  1057 +#     starting with an empty iframe here in browser.xul from a Ts standpoint.
  1041 +</deck>
  1058 +</deck>
  1042 +
  1059 +