browser/components/places/content/bookmarksSidebar.xul
author Tim Nguyen <ntim.bugs@gmail.com>
Mon, 13 May 2019 18:12:37 +0000
changeset 532499 5a993bd3862b7a5b40771c25d962ba9c30ce76de
parent 532388 fa3cfee27619ddc9bcbcf70555bda4eb1e815146
permissions -rw-r--r--
Bug 1521280 - Convert search-textbox to a custom element. r=dao,bgrins Differential Revision: https://phabricator.services.mozilla.com/D23045

<?xml version="1.0"?> <!-- -*- Mode: xml; indent-tabs-mode: nil; -*- -->
<!-- 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://browser/content/places/places.css"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/places/tree-icons.css"?>
<?xml-stylesheet href="chrome://browser/skin/places/sidebar.css"?>

<!DOCTYPE page [
<!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
%placesDTD;
<!ENTITY % editMenuDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
%editMenuDTD;
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd">
%browserDTD;
]>

<page id="bookmarksPanel"
      class="sidebar-panel"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      onload="init();"
      onunload="PlacesUIUtils.setMouseoverURL('', window);"
      aria-label="&bookmarksButton.label;">

  <script src="chrome://browser/content/places/bookmarksSidebar.js"/>
  <script src="chrome://global/content/globalOverlay.js"/>
  <script src="chrome://browser/content/utilityOverlay.js"/>
  <script src="chrome://browser/content/contentTheme.js"/>
  <script src="chrome://browser/content/places/places-tree.js"/>
  <script src="chrome://global/content/editMenuOverlay.js"/>

#include placesCommands.inc.xul
#include placesContextMenu.inc.xul
#include bookmarksHistoryTooltip.inc.xul

  <hbox id="sidebar-search-container" align="center">
    <textbox id="search-box" flex="1" is="search-textbox"
             placeholder="&bookmarksSearch.placeholder;"
             aria-controls="bookmarks-view"
             oncommand="searchBookmarks(this.value);"/>
  </hbox>

  <tree id="bookmarks-view"
        class="sidebar-placesTree"
        is="places-tree"
        flex="1"
        hidecolumnpicker="true"
        context="placesContext"
        onkeypress="PlacesUIUtils.onSidebarTreeKeyPress(event);"
        onclick="PlacesUIUtils.onSidebarTreeClick(event);"
        onmousemove="PlacesUIUtils.onSidebarTreeMouseMove(event);"
        onmouseout="PlacesUIUtils.setMouseoverURL('', window);">
    <treecols>
      <treecol id="title" flex="1" primary="true" hideheader="true"/>
    </treecols>
    <treechildren view="bookmarks-view"
                  class="sidebar-placesTreechildren" flex="1" tooltip="bhTooltip"/>
  </tree>
</page>