browser/components/places/content/history-panel.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <?xml version="1.0"?> <!-- -*- Mode: xml; indent-tabs-mode: nil; -*- -->
michael@0 2
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 <?xml-stylesheet href="chrome://browser/content/places/places.css"?>
michael@0 8 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
michael@0 9 <?xml-stylesheet href="chrome://browser/skin/places/places.css"?>
michael@0 10
michael@0 11 <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
michael@0 12 <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
michael@0 13
michael@0 14 <!DOCTYPE page [
michael@0 15 <!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
michael@0 16 %placesDTD;
michael@0 17 ]>
michael@0 18
michael@0 19 <!-- we need to keep id="history-panel" for upgrade and switching
michael@0 20 between versions of the browser -->
michael@0 21
michael@0 22 <page id="history-panel" orient="vertical"
michael@0 23 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 24 onload="HistorySidebarInit();"
michael@0 25 onunload="SidebarUtils.setMouseoverURL('');">
michael@0 26
michael@0 27 <script type="application/javascript"
michael@0 28 src="chrome://browser/content/bookmarks/sidebarUtils.js"/>
michael@0 29 <script type="application/javascript"
michael@0 30 src="chrome://browser/content/places/history-panel.js"/>
michael@0 31
michael@0 32 <commandset id="editMenuCommands"/>
michael@0 33 <commandset id="placesCommands"/>
michael@0 34
michael@0 35 <keyset id="editMenuKeys">
michael@0 36 #ifdef XP_MACOSX
michael@0 37 <key id="key_delete2" keycode="VK_BACK" command="cmd_delete"/>
michael@0 38 #endif
michael@0 39 </keyset>
michael@0 40
michael@0 41 <!-- required to overlay the context menu -->
michael@0 42 <menupopup id="placesContext"/>
michael@0 43
michael@0 44 <!-- Bookmarks and history tooltip -->
michael@0 45 <tooltip id="bhTooltip"/>
michael@0 46
michael@0 47 <hbox id="sidebar-search-container" align="center">
michael@0 48 <label id="sidebar-search-label"
michael@0 49 value="&find.label;" accesskey="&find.accesskey;"
michael@0 50 control="search-box"/>
michael@0 51 <textbox id="search-box" flex="1" type="search" class="compact"
michael@0 52 aria-controls="historyTree"
michael@0 53 oncommand="searchHistory(this.value);"/>
michael@0 54 <button id="viewButton" style="min-width:0px !important;" type="menu"
michael@0 55 label="&view.label;" accesskey="&view.accesskey;" selectedsort="day"
michael@0 56 persist="selectedsort">
michael@0 57 <menupopup>
michael@0 58 <menuitem id="bydayandsite" label="&byDayAndSite.label;"
michael@0 59 accesskey="&byDayAndSite.accesskey;" type="radio"
michael@0 60 oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'dayandsite'); GroupBy('dayandsite');"/>
michael@0 61 <menuitem id="bysite" label="&bySite.label;"
michael@0 62 accesskey="&bySite.accesskey;" type="radio"
michael@0 63 oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'site'); GroupBy('site');"/>
michael@0 64 <menuitem id="byday" label="&byDate.label;"
michael@0 65 accesskey="&byDate.accesskey;"
michael@0 66 type="radio"
michael@0 67 oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'day'); GroupBy('day');"/>
michael@0 68 <menuitem id="byvisited" label="&byMostVisited.label;"
michael@0 69 accesskey="&byMostVisited.accesskey;"
michael@0 70 type="radio"
michael@0 71 oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'visited'); GroupBy('visited');"/>
michael@0 72 <menuitem id="bylastvisited" label="&byLastVisited.label;"
michael@0 73 accesskey="&byLastVisited.accesskey;"
michael@0 74 type="radio"
michael@0 75 oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'lastvisited'); GroupBy('lastvisited');"/>
michael@0 76 </menupopup>
michael@0 77 </button>
michael@0 78 </hbox>
michael@0 79
michael@0 80 <tree id="historyTree"
michael@0 81 class="sidebar-placesTree"
michael@0 82 flex="1"
michael@0 83 type="places"
michael@0 84 context="placesContext"
michael@0 85 hidecolumnpicker="true"
michael@0 86 onkeypress="SidebarUtils.handleTreeKeyPress(event);"
michael@0 87 onclick="SidebarUtils.handleTreeClick(this, event, true);"
michael@0 88 onmousemove="SidebarUtils.handleTreeMouseMove(event);"
michael@0 89 onmouseout="SidebarUtils.setMouseoverURL('');">
michael@0 90 <treecols>
michael@0 91 <treecol id="title" flex="1" primary="true" hideheader="true"/>
michael@0 92 </treecols>
michael@0 93 <treechildren class="sidebar-placesTreechildren" flex="1" tooltip="bhTooltip"/>
michael@0 94 </tree>
michael@0 95 </page>

mercurial