tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

historySidebar.xhtml (4263B)


      1 <?xml version="1.0"?> <!-- -*- Mode: xml; indent-tabs-mode: nil; -*- -->
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 
      6 <?csp default-src chrome:; style-src chrome: 'unsafe-inline'; ?>
      7 
      8 <!DOCTYPE window>
      9 
     10 <window id="history-panel"
     11        class="sidebar-panel"
     12        orient="vertical"
     13        xmlns:html="http://www.w3.org/1999/xhtml"
     14        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     15        data-l10n-id="places-history">
     16 
     17  <script src="chrome://browser/content/places/historySidebar.js"/>
     18  <script src="chrome://global/content/globalOverlay.js"/>
     19  <script src="chrome://browser/content/utilityOverlay.js"/>
     20  <script src="chrome://browser/content/contentTheme.js"/>
     21  <script src="chrome://browser/content/places/places-tree.js"/>
     22  <script src="chrome://global/content/editMenuOverlay.js"/>
     23 
     24  <linkset>
     25    <html:link
     26      rel="stylesheet"
     27      href="chrome://browser/content/places/places.css"
     28    />
     29    <html:link
     30      rel="stylesheet"
     31      href="chrome://browser/content/usercontext/usercontext.css"
     32    />
     33    <html:link rel="stylesheet" href="chrome://global/skin/global.css" />
     34    <html:link
     35      rel="stylesheet"
     36      href="chrome://browser/skin/places/tree-icons.css"
     37    />
     38    <html:link
     39      rel="stylesheet"
     40      href="chrome://browser/skin/places/sidebar.css"
     41    />
     42 
     43    <html:link rel="localization" href="toolkit/global/textActions.ftl"/>
     44    <html:link rel="localization" href="browser/places.ftl"/>
     45    <!-- Need sidebar-menu-history and sidebar-close-button.
     46       - tor-browser#44108 -->
     47    <html:link rel="localization" href="browser/sidebarMenu.ftl"/>
     48  </linkset>
     49 
     50 #include placesCommands.inc.xhtml
     51 
     52 #include ../../../../toolkit/content/editMenuKeys.inc.xhtml
     53 #ifdef XP_MACOSX
     54  <keyset id="editMenuKeysExtra">
     55    <key id="key_delete2" keycode="VK_BACK" command="cmd_delete"/>
     56  </keyset>
     57 #endif
     58 
     59 #include placesContextMenu.inc.xhtml
     60 #include bookmarksHistoryTooltip.inc.xhtml
     61  <!-- For ESR 140, we want to use this old history sidebar for the revamped
     62     - sidebar as well because it does not require the "firefoxview" component.
     63     - So we need an internal heading element for this page to be used with the
     64     - new sidebar only. We copy this from bookmarksSidebar.xhtml.
     65     - See tor-browser#44108. -->
     66  <box id="sidebar-panel-header" align="center">
     67    <!-- (Mis)use the sidebar-menu-history string, which will set a "label"
     68       - attribute, which we will convert to text content in javascript. -->
     69    <html:h4
     70      id="sidebar-panel-header-history"
     71      data-l10n-id="sidebar-menu-history"
     72      data-l10n-attrs="label"
     73    ></html:h4>
     74    <html:moz-button
     75        id="sidebar-panel-close"
     76        type="icon ghost"
     77        iconsrc="chrome://global/skin/icons/close.svg"
     78        data-l10n-id="sidebar-close-button">
     79    </html:moz-button>
     80  </box>
     81 
     82  <hbox id="sidebar-search-container">
     83    <html:moz-input-search id="search-box"
     84        data-l10n-id="places-history-search"
     85        data-l10n-attrs="placeholder"
     86        aria-controls="historyTree"/>
     87    <button id="viewButton" style="min-width:0px !important;" type="menu"
     88            data-l10n-id="places-view" selectedsort="day"
     89            persist="selectedsort">
     90      <menupopup>
     91        <menuitem id="bydayandsite" data-l10n-id="places-by-day-and-site" type="radio"/>
     92        <menuitem id="bysite" data-l10n-id="places-by-site" type="radio"/>
     93        <menuitem id="byday" data-l10n-id="places-by-date" type="radio"/>
     94        <menuitem id="byvisited" data-l10n-id="places-by-most-visited" type="radio"/>
     95        <menuitem id="bylastvisited" data-l10n-id="places-by-last-visited" type="radio"/>
     96      </menupopup>
     97    </button>
     98  </hbox>
     99 
    100  <tree id="historyTree"
    101        class="sidebar-placesTree"
    102        flex="1"
    103        is="places-tree"
    104        hidecolumnpicker="true"
    105        context="placesContext"
    106        singleclickopens="true">
    107    <treecols>
    108      <treecol id="title" flex="1" primary="true" hideheader="true"/>
    109    </treecols>
    110    <treechildren class="sidebar-placesTreechildren" flex="1" tooltip="bhTooltip"/>
    111  </tree>
    112 </window>