DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (6ff411885e6f)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
<?xml version="1.0"?>
<!-- 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/. -->

<?xml-stylesheet href="chrome://devtools/skin/devtools-browser.css" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin/webDeveloper.css" type="text/css"?>

<!DOCTYPE overlay SYSTEM "chrome://navigator/locale/webDeveloper.dtd">

<overlay id="webDeveloperOverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script type="application/javascript"
          src="chrome://navigator/content/webDeveloperOverlay.js"/>

  <menupopup id="toolsPopup">
    <menuitem id="validatePage"
              label="&validatePage.label;"
              accesskey="&validatePage.accesskey;"
              oncommand="gWebDeveloper.validateThisPage(); event.stopPropagation();"/>
    <menuseparator id="devToolsStartSeparator"/>
    <menuitem id="menu_devToolbox"
              observes="devtoolsMenuBroadcaster_DevToolbox"
              label="&devToolboxMenuItem.label;"
              accesskey="&devToolboxMenuItem.accesskey;"/>
    <menuseparator id="menu_devtools_separator"/>
    <menuitem id="menu_devToolbar"
              observes="devtoolsMenuBroadcaster_DevToolbar"
              type="checkbox" autocheck="false"
              label="&devToolbarMenu.label;"
              accesskey="&devToolbarMenu.accesskey;"/>
    <menuitem id="menu_browserToolbox"
              observes="devtoolsMenuBroadcaster_BrowserToolbox"
              label="&browserToolboxMenu.label;"
              accesskey="&browserToolboxMenu.accesskey;"/>
    <menuitem id="menu_browserContentToolbox"
              observes="devtoolsMenuBroadcaster_BrowserContentToolbox"
              label="&browserContentToolboxMenu.label;"
              accesskey="&browserContentToolboxMenu.accesskey;" />
    <menuitem id="menu_browserConsole"
              observes="devtoolsMenuBroadcaster_BrowserConsole"
              label="&browserConsoleCmd.label;"
              accesskey="&browserConsoleCmd.accesskey;"/>
    <menuitem id="menu_responsiveUI"
              observes="devtoolsMenuBroadcaster_ResponsiveUI"
              type="checkbox" autocheck="false"
              label="&responsiveDesignTool.label;"
              accesskey="&responsiveDesignTool.accesskey;"/>
    <menuitem id="menu_eyedropper"
              observes="devtoolsMenuBroadcaster_Eyedropper"
              type="checkbox" autocheck="false"
              label="&eyedropper.label;"
              accesskey="&eyedropper.accesskey;"/>
    <menuitem id="menu_scratchpad"
              observes="devtoolsMenuBroadcaster_Scratchpad"
              label="&scratchpad.label;"
              accesskey="&scratchpad.accesskey;"/>
    <menuitem id="devtoolsDebugger"
              type="checkbox"
              label="&allowRemoteDebugging.label;"
              accesskey="&allowRemoteDebugging.accesskey;"
              oncommand="gWebDeveloper.enableDebugger(this);"/>
    <menuitem id="menu_devtools_connect"
              observes="devtoolsMenuBroadcaster_connect"
              label="&devtoolsConnect.label;"
              accesskey="&devtoolsConnect.accesskey;"/>
    <menuseparator id="devToolsEndSeparator"/>
    <menuitem id="getMoreDevtools"
              observes="devtoolsMenuBroadcaster_GetMoreTools"
              label="&getMoreDevtoolsCmd.label;"
              accesskey="&getMoreDevtoolsCmd.accesskey;"/>
  </menupopup>

  <commandset id="mainCommandSet">
    <command id="Tools:DevToolbox" oncommand="gDevToolsBrowser.toggleToolboxCommand(gBrowser);"/>
    <command id="Tools:DevToolbar" oncommand="DeveloperToolbar.toggle();" disabled="true" hidden="true"/>
    <command id="Tools:DevToolbarFocus" oncommand="DeveloperToolbar.focusToggle();" disabled="true"/>
    <command id="Tools:BrowserToolbox" oncommand="BrowserToolboxProcess.init();" disabled="true" hidden="true"/>
    <command id="Tools:BrowserContentToolbox" oncommand="gDevToolsBrowser.openContentProcessToolbox();" disabled="true" hidden="true"/>
    <command id="Tools:BrowserConsole" oncommand="HUDService.openBrowserConsoleOrFocus();"/>
    <command id="Tools:Scratchpad" oncommand="Scratchpad.openScratchpad();"/>
    <command id="Tools:ResponsiveUI" oncommand="ResponsiveUI.toggle();"/>
    <command id="Tools:Eyedropper" oncommand="openEyedropper();"/>
    <command id="Tools:DevToolsConnect" oncommand="gDevToolsBrowser.openConnectScreen(gBrowser)" disabled="true" hidden="true"/>
  </commandset>

  <keyset id="mainKeyset">
    <key id="key_devToolboxMenuItemF12" keycode="&devToolsCmd.keycode;" keytext="&devToolsCmd.keytext;"
         command="Tools:DevToolbox"/>
    <key id="key_browserConsole" key="&browserConsoleCmd.commandkey;" modifiers="accel,shift"
         command="Tools:BrowserConsole"/>
    <key id="key_browserToolbox" key="&browserToolboxCmd.commandkey;" modifiers="accel,alt,shift"
         command="Tools:BrowserToolbox"/>
    <key id="key_devToolbar" keycode="&devToolbar.keycode;" modifiers="shift" keytext="&devToolbar.keytext;"
         command="Tools:DevToolbarFocus"/>
    <key id="key_devToolboxMenuItem" keytext="&devToolboxMenuItem.keytext;" key="&devToolboxMenuItem.keytext;" modifiers="accel,shift"
         command="Tools:DevToolbox"/>
    <key id="key_scratchpad" keycode="&scratchpad.keycode;" modifiers="shift" keytext="&scratchpad.keytext;"
         command="Tools:Scratchpad"/>
  </keyset>

  <broadcasterset id="mainBroadcasterSet">
    <!-- DevTools broadcasters -->
    <broadcaster id="devtoolsMenuBroadcaster_DevToolbox"
                 type="checkbox" autocheck="false"
                 command="Tools:DevToolbox"
                 key="key_devToolboxMenuItem"/>
    <broadcaster id="devtoolsMenuBroadcaster_DevToolbar"
                 command="Tools:DevToolbar"
                 key="key_devToolbar"/>
    <broadcaster id="devtoolsMenuBroadcaster_BrowserToolbox"
                 key="key_browserToolbox"
                 command="Tools:BrowserToolbox"/>
    <broadcaster id="devtoolsMenuBroadcaster_BrowserContentToolbox"
                 command="Tools:BrowserContentToolbox"/>
    <broadcaster id="devtoolsMenuBroadcaster_BrowserConsole"
                 key="key_browserConsole"
                 command="Tools:BrowserConsole"/>
    <broadcaster id="devtoolsMenuBroadcaster_Scratchpad"
                 command="Tools:Scratchpad"
                 key="key_scratchpad"/>
    <broadcaster id="devtoolsMenuBroadcaster_ResponsiveUI"
                 command="Tools:ResponsiveUI"/>
    <broadcaster id="devtoolsMenuBroadcaster_Eyedropper"
                 command="Tools:Eyedropper"/>
    <broadcaster id="devtoolsMenuBroadcaster_PageSource"
                 key="key_viewSource"
                 command="View:PageSource"/>
    <broadcaster id="devtoolsMenuBroadcaster_GetMoreTools"
                 oncommand="openUILinkIn('https://addons.mozilla.org/firefox/collections/mozilla/webdeveloper/', 'tab');"/>
    <broadcaster id="devtoolsMenuBroadcaster_connect"
                 command="Tools:DevToolsConnect"/>
  </broadcasterset>

  <window id="main-window">
    <toolbar id="developer-toolbar" xpfe="false" hidden="true"
             insertbefore="status-bar">
      <observes element="main-window" attribute="devtoolstheme"/>
      <stack class="gclitoolbar-stack-node" flex="1">
        <textbox class="gclitoolbar-input-node" rows="1"/>
        <hbox class="gclitoolbar-complete-node"/>
      </stack>
      <toolbarbutton id="developer-toolbar-toolbox-button"
                     class="developer-toolbar-button"
                     label="&devToolboxMenuItem.label;"
                     observes="devtoolsMenuBroadcaster_DevToolbox"
                     tooltiptext="&devToolbarToolsButton.tooltip;"
                     _defaultTooltipText="&devToolbarToolsButton.tooltip;"/>

      <toolbarbutton id="developer-toolbar-closebutton"
                     class="close-icon"
                     oncommand="DeveloperToolbar.hide();"
                     tooltiptext="&devToolbarCloseButton.tooltiptext;"/>
    </toolbar>
  </window>
</overlay>