web-panels.xul 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0"?>
  2. # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  3. # This Source Code Form is subject to the terms of the Mozilla Public
  4. # License, v. 2.0. If a copy of the MPL was not distributed with this
  5. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
  7. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  8. <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
  9. <!DOCTYPE page [
  10. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd">
  11. %browserDTD;
  12. <!ENTITY % textcontextDTD SYSTEM "chrome://global/locale/textcontext.dtd">
  13. %textcontextDTD;
  14. ]>
  15. <page id="webpanels-window"
  16. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  17. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  18. onload="load()" onunload="unload()">
  19. <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
  20. <script type="application/javascript" src="chrome://browser/content/browser.js"/>
  21. <script type="application/javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
  22. <script type="application/javascript" src="chrome://browser/content/nsContextMenu.js"/>
  23. <script type="application/javascript" src="chrome://browser/content/web-panels.js"/>
  24. <stringbundleset id="stringbundleset">
  25. <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
  26. </stringbundleset>
  27. <broadcasterset id="mainBroadcasterSet">
  28. <broadcaster id="isFrameImage"/>
  29. </broadcasterset>
  30. <commandset id="mainCommandset">
  31. <command id="Browser:Back"
  32. oncommand="getPanelBrowser().webNavigation.goBack();"
  33. disabled="true"/>
  34. <command id="Browser:Forward"
  35. oncommand="getPanelBrowser().webNavigation.goForward();"
  36. disabled="true"/>
  37. <command id="Browser:Stop" oncommand="PanelBrowserStop();"/>
  38. <command id="Browser:Reload" oncommand="PanelBrowserReload();"/>
  39. <command id="Browser:BackOrBackDuplicate"
  40. oncommand="getPanelBrowser().webNavigation.goBack(event);"
  41. disabled="true">
  42. <observes element="Browser:Back" attribute="disabled"/>
  43. </command>
  44. <command id="Browser:ForwardOrForwardDuplicate"
  45. oncommand="getPanelBrowser().webNavigation.goForward(event);"
  46. disabled="true">
  47. <observes element="Browser:Forward" attribute="disabled"/>
  48. </command>
  49. <command id="Browser:ReloadOrDuplicate"
  50. oncommand="PanelBrowserReload(event)"
  51. disabled="true">
  52. <observes element="Browser:Reload" attribute="disabled"/>
  53. </command>
  54. </commandset>
  55. <popupset id="mainPopupSet">
  56. <tooltip id="aHTMLTooltip" page="true"/>
  57. <menupopup id="contentAreaContextMenu" pagemenu="start"
  58. onpopupshowing="if (event.target != this)
  59. return true;
  60. gContextMenu = new nsContextMenu(this, event.shiftKey);
  61. if (gContextMenu.shouldDisplay)
  62. document.popupNode = this.triggerNode;
  63. return gContextMenu.shouldDisplay;"
  64. onpopuphiding="if (event.target != this)
  65. return;
  66. gContextMenu.hiding();
  67. gContextMenu = null;">
  68. #include browser-context.inc
  69. </menupopup>
  70. </popupset>
  71. <commandset id="editMenuCommands"/>
  72. <browser id="web-panels-browser" persist="cachedurl" type="content" flex="1"
  73. context="contentAreaContextMenu" tooltip="aHTMLTooltip"
  74. onclick="window.parent.contentAreaClick(event, true);"/>
  75. </page>