1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/places/content/history-panel.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,95 @@ 1.4 +<?xml version="1.0"?> <!-- -*- Mode: xml; indent-tabs-mode: nil; -*- --> 1.5 + 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +<?xml-stylesheet href="chrome://browser/content/places/places.css"?> 1.11 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 1.12 +<?xml-stylesheet href="chrome://browser/skin/places/places.css"?> 1.13 + 1.14 +<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?> 1.15 +<?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?> 1.16 + 1.17 +<!DOCTYPE page [ 1.18 +<!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd"> 1.19 +%placesDTD; 1.20 +]> 1.21 + 1.22 +<!-- we need to keep id="history-panel" for upgrade and switching 1.23 + between versions of the browser --> 1.24 + 1.25 +<page id="history-panel" orient="vertical" 1.26 + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.27 + onload="HistorySidebarInit();" 1.28 + onunload="SidebarUtils.setMouseoverURL('');"> 1.29 + 1.30 + <script type="application/javascript" 1.31 + src="chrome://browser/content/bookmarks/sidebarUtils.js"/> 1.32 + <script type="application/javascript" 1.33 + src="chrome://browser/content/places/history-panel.js"/> 1.34 + 1.35 + <commandset id="editMenuCommands"/> 1.36 + <commandset id="placesCommands"/> 1.37 + 1.38 + <keyset id="editMenuKeys"> 1.39 +#ifdef XP_MACOSX 1.40 + <key id="key_delete2" keycode="VK_BACK" command="cmd_delete"/> 1.41 +#endif 1.42 + </keyset> 1.43 + 1.44 + <!-- required to overlay the context menu --> 1.45 + <menupopup id="placesContext"/> 1.46 + 1.47 + <!-- Bookmarks and history tooltip --> 1.48 + <tooltip id="bhTooltip"/> 1.49 + 1.50 + <hbox id="sidebar-search-container" align="center"> 1.51 + <label id="sidebar-search-label" 1.52 + value="&find.label;" accesskey="&find.accesskey;" 1.53 + control="search-box"/> 1.54 + <textbox id="search-box" flex="1" type="search" class="compact" 1.55 + aria-controls="historyTree" 1.56 + oncommand="searchHistory(this.value);"/> 1.57 + <button id="viewButton" style="min-width:0px !important;" type="menu" 1.58 + label="&view.label;" accesskey="&view.accesskey;" selectedsort="day" 1.59 + persist="selectedsort"> 1.60 + <menupopup> 1.61 + <menuitem id="bydayandsite" label="&byDayAndSite.label;" 1.62 + accesskey="&byDayAndSite.accesskey;" type="radio" 1.63 + oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'dayandsite'); GroupBy('dayandsite');"/> 1.64 + <menuitem id="bysite" label="&bySite.label;" 1.65 + accesskey="&bySite.accesskey;" type="radio" 1.66 + oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'site'); GroupBy('site');"/> 1.67 + <menuitem id="byday" label="&byDate.label;" 1.68 + accesskey="&byDate.accesskey;" 1.69 + type="radio" 1.70 + oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'day'); GroupBy('day');"/> 1.71 + <menuitem id="byvisited" label="&byMostVisited.label;" 1.72 + accesskey="&byMostVisited.accesskey;" 1.73 + type="radio" 1.74 + oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'visited'); GroupBy('visited');"/> 1.75 + <menuitem id="bylastvisited" label="&byLastVisited.label;" 1.76 + accesskey="&byLastVisited.accesskey;" 1.77 + type="radio" 1.78 + oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'lastvisited'); GroupBy('lastvisited');"/> 1.79 + </menupopup> 1.80 + </button> 1.81 + </hbox> 1.82 + 1.83 + <tree id="historyTree" 1.84 + class="sidebar-placesTree" 1.85 + flex="1" 1.86 + type="places" 1.87 + context="placesContext" 1.88 + hidecolumnpicker="true" 1.89 + onkeypress="SidebarUtils.handleTreeKeyPress(event);" 1.90 + onclick="SidebarUtils.handleTreeClick(this, event, true);" 1.91 + onmousemove="SidebarUtils.handleTreeMouseMove(event);" 1.92 + onmouseout="SidebarUtils.setMouseoverURL('');"> 1.93 + <treecols> 1.94 + <treecol id="title" flex="1" primary="true" hideheader="true"/> 1.95 + </treecols> 1.96 + <treechildren class="sidebar-placesTreechildren" flex="1" tooltip="bhTooltip"/> 1.97 + </tree> 1.98 +</page>