2002-10-11 01:54:02 +04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
# -*- Mode: HTML -*-
|
2002-10-11 02:03:58 +04:00
|
|
|
#
|
2005-02-01 20:36:54 +03:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2002-10-11 02:03:58 +04:00
|
|
|
#
|
2005-02-01 20:36:54 +03:00
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
2002-10-11 02:03:58 +04:00
|
|
|
#
|
2002-10-11 01:54:02 +04:00
|
|
|
# The Original Code is Mozilla Communicator client code, released
|
|
|
|
# March 31, 1998.
|
2002-10-11 02:03:58 +04:00
|
|
|
#
|
2005-02-01 20:36:54 +03:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998-2000
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
2002-10-11 02:03:58 +04:00
|
|
|
#
|
2005-02-01 20:36:54 +03:00
|
|
|
# Contributor(s):
|
2004-11-30 11:23:02 +03:00
|
|
|
# Blake Ross <blake@cs.stanford.edu>
|
2003-08-11 12:18:49 +04:00
|
|
|
# David Hyatt <hyatt@mozilla.org>
|
2003-02-24 00:49:19 +03:00
|
|
|
# Joe Hewitt <hewitt@netscape.com>
|
|
|
|
# Pierre Chanial <chanial@noos.fr>
|
2002-10-11 01:54:02 +04:00
|
|
|
# Dean Tessman <dean_tessman@hotmail.com>
|
2005-02-01 20:36:54 +03:00
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
2002-08-04 06:53:09 +04:00
|
|
|
|
2006-03-09 05:08:45 +03:00
|
|
|
<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
|
|
|
|
<?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
|
|
|
|
|
2002-08-04 06:53:09 +04:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
|
2006-03-23 19:30:27 +03:00
|
|
|
|
|
|
|
#ifdef MOZ_PLACES
|
2006-03-24 01:17:10 +03:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/places/browser-places.css" type="text/css"?>
|
2006-03-23 19:30:27 +03:00
|
|
|
#endif
|
|
|
|
|
2005-12-01 13:03:58 +03:00
|
|
|
<?xml-stylesheet href="chrome://global/skin/toolbar.css" type="text/css"?>
|
2004-11-30 11:23:02 +03:00
|
|
|
<?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
|
2002-08-04 06:53:09 +04:00
|
|
|
|
2005-03-24 19:00:01 +03:00
|
|
|
<?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
|
2003-08-11 12:41:34 +04:00
|
|
|
|
2003-08-11 12:03:52 +04:00
|
|
|
# All DTD information is stored in a separate file so that it can be shared by
|
|
|
|
# hiddenWindow.xul.
|
2003-08-13 13:53:32 +04:00
|
|
|
#include browser-doctype.inc
|
2003-11-27 03:54:33 +03:00
|
|
|
|
2002-08-04 06:53:09 +04:00
|
|
|
<window id="main-window"
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
2005-04-19 19:32:38 +04:00
|
|
|
onload="BrowserStartup()" onunload="BrowserShutdown()" onclose="return WindowIsClosing();"
|
2002-08-04 06:53:09 +04:00
|
|
|
contenttitlesetting="true"
|
2002-08-10 07:08:14 +04:00
|
|
|
title="&mainWindow.title;"
|
2003-08-12 06:47:14 +04:00
|
|
|
titlemodifier="&mainWindow.title;"
|
|
|
|
titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
|
2002-08-04 06:53:09 +04:00
|
|
|
windowtype="navigator:browser"
|
|
|
|
screenX="4" screenY="4"
|
|
|
|
persist="screenX screenY width height sizemode">
|
|
|
|
|
2005-04-20 19:32:57 +04:00
|
|
|
# All JS files which are not content (only) dependent that browser.xul
|
|
|
|
# wishes to include *must* go into the global-scripts.inc file
|
|
|
|
# so that they can be shared by macBrowserOverlay.xul.
|
|
|
|
#include global-scripts.inc
|
|
|
|
|
|
|
|
<script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
|
2002-10-14 02:23:34 +04:00
|
|
|
|
2003-08-11 12:12:19 +04:00
|
|
|
# All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the
|
|
|
|
# browser-sets.inc file for sharing with hiddenWindow.xul.
|
2003-08-13 13:53:32 +04:00
|
|
|
#include browser-sets.inc
|
2002-09-25 05:50:57 +04:00
|
|
|
|
2002-10-08 11:16:51 +04:00
|
|
|
<popupset id="mainPopupSet">
|
2004-06-24 02:54:12 +04:00
|
|
|
<popup id="backMenu"
|
|
|
|
position="after_start"
|
|
|
|
onpopupshowing="return BrowserBackMenu(event);"
|
|
|
|
oncommand="gotoHistoryIndex(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"/>
|
|
|
|
<popup id="forwardMenu"
|
|
|
|
position="after_start"
|
|
|
|
onpopupshowing="return BrowserForwardMenu(event);"
|
|
|
|
oncommand="gotoHistoryIndex(event);"
|
|
|
|
onclick="checkForMiddleClick(this, event);"/>
|
2002-10-08 11:16:51 +04:00
|
|
|
<tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
|
|
|
|
|
|
|
|
<popup type="autocomplete" id="PopupAutoComplete"/>
|
|
|
|
|
2003-08-09 18:47:31 +04:00
|
|
|
<popup id="toolbar-context-menu"
|
|
|
|
onpopupshowing="updateToolbarStates(this); onViewToolbarsPopupShowing(event);">
|
|
|
|
<menuseparator/>
|
2002-10-08 11:16:51 +04:00
|
|
|
<menuitem command="cmd_CustomizeToolbars"
|
|
|
|
label="&viewCustomizeToolbar.label;"
|
|
|
|
accesskey="&viewCustomizeToolbar.accesskey;"/>
|
|
|
|
</popup>
|
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
<popup id="blockedPopupOptions"
|
|
|
|
onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
|
|
|
|
<menuitem observes="blockedPopupAllowSite"/>
|
|
|
|
<menuitem observes="blockedPopupEditSettings"/>
|
|
|
|
<menuitem observes="blockedPopupDontShowMessage"/>
|
|
|
|
<menuseparator observes="blockedPopupsSeparator"/>
|
|
|
|
</popup>
|
|
|
|
|
2003-12-03 08:37:53 +03:00
|
|
|
#include browser-context.inc
|
2002-10-10 05:47:29 +04:00
|
|
|
|
2006-02-25 00:41:34 +03:00
|
|
|
#ifdef MOZ_PLACES
|
|
|
|
#include ../../components/places/content/context.inc
|
|
|
|
#endif
|
2002-10-08 11:16:51 +04:00
|
|
|
</popupset>
|
2002-08-04 06:53:09 +04:00
|
|
|
|
2003-08-11 12:18:49 +04:00
|
|
|
# The hacky hidden tree used by the Go menu to build items.
|
2003-08-13 13:53:32 +04:00
|
|
|
#include browser-gotreehack.inc
|
2002-10-07 02:54:24 +04:00
|
|
|
|
2005-12-15 03:48:25 +03:00
|
|
|
#ifndef MOZ_PLACES
|
2003-02-24 00:49:19 +03:00
|
|
|
<!-- bookmarks context menu -->
|
|
|
|
<popupset>
|
|
|
|
<menupopup id="bookmarks-context-menu"
|
2003-04-22 00:11:58 +04:00
|
|
|
onpopupshowing="return BookmarksMenu.createContextMenu(event);"
|
2003-02-24 00:49:19 +03:00
|
|
|
onpopuphidden ="BookmarksMenu.destroyContextMenu(event);"/>
|
|
|
|
</popupset>
|
|
|
|
|
2003-02-26 19:37:46 +03:00
|
|
|
<!-- bookmarks toolbar tooltip -->
|
|
|
|
<tooltip id="btTooltip" noautohide="true"
|
|
|
|
onpopupshowing="return BookmarksToolbar.fillInBTTooltip(document.tooltipNode)">
|
|
|
|
<vbox id="btTooltipTextBox" flex="1">
|
|
|
|
<label id="btTitleText" />
|
|
|
|
<label id="btUrlText" />
|
|
|
|
</vbox>
|
|
|
|
</tooltip>
|
2005-12-15 03:48:25 +03:00
|
|
|
#endif
|
2003-02-26 19:37:46 +03:00
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
<toolbox id="navigator-toolbox" class="toolbox-top" mode="icons">
|
2002-08-04 06:53:09 +04:00
|
|
|
<!-- Menu -->
|
2004-11-30 11:23:02 +03:00
|
|
|
<toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
|
2003-07-07 02:00:35 +04:00
|
|
|
#ifdef XP_MACOSX
|
2004-11-30 11:23:02 +03:00
|
|
|
defaultset="menubar-items"
|
2003-07-07 02:00:35 +04:00
|
|
|
#else
|
2004-11-30 11:23:02 +03:00
|
|
|
defaultset="menubar-items,spring,throbber-box"
|
2003-07-07 02:00:35 +04:00
|
|
|
#endif
|
2004-11-30 11:23:02 +03:00
|
|
|
mode="icons" context="toolbar-context-menu">
|
|
|
|
<toolbaritem id="menubar-items" align="center">
|
2003-08-11 12:18:49 +04:00
|
|
|
# The entire main menubar is placed into browser-menubar.inc, so that it can be shared by
|
|
|
|
# hiddenWindow.xul.
|
2003-08-13 13:53:32 +04:00
|
|
|
#include browser-menubar.inc
|
2004-11-30 11:23:02 +03:00
|
|
|
</toolbaritem>
|
2002-10-20 12:05:30 +04:00
|
|
|
</toolbar>
|
|
|
|
|
2002-09-28 10:25:03 +04:00
|
|
|
<toolbarpalette id="BrowserToolbarPalette">
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="back-button" type="menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2004-10-03 05:19:58 +04:00
|
|
|
chromedir="&locale.dir;"
|
2004-06-24 02:54:12 +04:00
|
|
|
label="&backCmd.label;"
|
|
|
|
oncommand="BrowserBack(event)"
|
|
|
|
onclick="checkForMiddleClick(this, event);"
|
|
|
|
context="backMenu"
|
|
|
|
tooltiptext="&backButton.tooltip;">
|
|
|
|
<observes element="Browser:Back" attribute="disabled"/>
|
|
|
|
<menupopup context=""
|
|
|
|
onpopupshowing="BrowserBackMenu(event);"
|
2006-03-26 01:03:49 +03:00
|
|
|
oncommand="gotoHistoryIndex(event); event.stopPropagation();"
|
2004-06-24 02:54:12 +04:00
|
|
|
onclick="checkForMiddleClick(this, event);"/>
|
2002-09-27 08:06:56 +04:00
|
|
|
</toolbarbutton>
|
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="forward-button" type="menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2004-10-03 05:19:58 +04:00
|
|
|
chromedir="&locale.dir;"
|
2004-06-24 02:54:12 +04:00
|
|
|
label="&forwardCmd.label;"
|
|
|
|
oncommand="BrowserForward(event)"
|
|
|
|
onclick="checkForMiddleClick(this, event);"
|
|
|
|
context="forwardMenu"
|
|
|
|
tooltiptext="&forwardButton.tooltip;">
|
|
|
|
<observes element="Browser:Forward" attribute="disabled"/>
|
|
|
|
<menupopup context=""
|
|
|
|
onpopupshowing="BrowserForwardMenu(event);"
|
2006-03-26 01:03:49 +03:00
|
|
|
oncommand="gotoHistoryIndex(event); event.stopPropagation()"
|
2004-06-24 02:54:12 +04:00
|
|
|
onclick="checkForMiddleClick(this, event);"/>
|
2002-09-27 08:06:56 +04:00
|
|
|
</toolbarbutton>
|
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
|
|
|
label="&reloadCmd.label;"
|
2005-02-27 20:59:38 +03:00
|
|
|
command="Browser:Reload"
|
2004-09-07 03:23:54 +04:00
|
|
|
tooltiptext="&reloadButton.tooltip;"/>
|
2002-09-27 08:06:56 +04:00
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
|
|
|
label="&stopCmd.label;"
|
|
|
|
command="Browser:Stop"
|
|
|
|
tooltiptext="&stopButton.tooltip;"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
|
|
|
label="&homeButton.label;"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
|
|
|
|
onclick="BrowserHomeClick(event);"/>
|
2004-07-16 20:32:41 +04:00
|
|
|
|
2002-10-13 09:49:54 +04:00
|
|
|
<toolbaritem id="urlbar-container" align="center" flex="1000"
|
2002-09-28 19:11:50 +04:00
|
|
|
title="&locationItem.title;" class="chromeclass-location">
|
2002-09-27 08:06:56 +04:00
|
|
|
<textbox id="urlbar" flex="1"
|
2004-01-19 09:46:02 +03:00
|
|
|
type="autocomplete"
|
2002-09-28 19:11:50 +04:00
|
|
|
autocompletesearch="history"
|
|
|
|
autocompletepopup="PopupAutoComplete"
|
2005-02-18 15:40:00 +03:00
|
|
|
completeselectedindex="true"
|
2002-09-28 19:11:50 +04:00
|
|
|
tabscrolling="true"
|
|
|
|
showcommentcolumn="true"
|
2003-12-27 03:22:50 +03:00
|
|
|
enablehistory="true"
|
2006-03-15 00:06:53 +03:00
|
|
|
#ifndef MOZILLA_1_8_BRANCH
|
|
|
|
# bug 23485
|
2005-12-21 01:58:53 +03:00
|
|
|
newlines="stripsurroundingwhitespace"
|
2006-03-15 00:06:53 +03:00
|
|
|
#endif
|
2003-12-05 08:55:54 +03:00
|
|
|
oninput="gBrowser.userTypedValue = this.value"
|
2002-09-28 19:11:50 +04:00
|
|
|
ontextentered="return handleURLBarCommand(param);"
|
2006-01-11 23:24:20 +03:00
|
|
|
ontextreverted="return handleURLBarRevert();">
|
2005-07-30 23:48:58 +04:00
|
|
|
<deck id="page-proxy-deck" onclick="PageProxyClickHandler(event);">
|
2002-09-27 08:06:56 +04:00
|
|
|
<image id="page-proxy-button"
|
|
|
|
ondraggesture="PageProxyDragGesture(event);"
|
|
|
|
tooltiptext="&proxyIcon.tooltip;"/>
|
2002-10-04 11:38:44 +04:00
|
|
|
<image id="page-proxy-favicon"
|
2002-09-27 08:06:56 +04:00
|
|
|
ondraggesture="PageProxyDragGesture(event);"
|
|
|
|
onload="this.parentNode.selectedIndex = 1;
|
2006-03-26 01:03:49 +03:00
|
|
|
event.stopPropagation();"
|
2004-07-30 03:49:31 +04:00
|
|
|
onerror="gBrowser.addToMissedIconCache(this.src);
|
|
|
|
this.removeAttribute('src');
|
2002-10-20 12:38:11 +04:00
|
|
|
this.parentNode.selectedIndex = 0;"
|
2002-09-27 08:06:56 +04:00
|
|
|
tooltiptext="&proxyIcon.tooltip;"/>
|
|
|
|
</deck>
|
2005-11-22 03:06:26 +03:00
|
|
|
<hbox id="urlbar-icons">
|
2006-01-11 23:24:20 +03:00
|
|
|
<button type="menu"
|
|
|
|
style="-moz-user-focus: none"
|
|
|
|
class="plain"
|
|
|
|
id="feed-button"
|
|
|
|
chromedir="&locale.dir;"
|
2006-03-26 01:03:49 +03:00
|
|
|
onclick="event.stopPropagation();">
|
2006-01-11 23:24:20 +03:00
|
|
|
<menupopup position="after_end"
|
|
|
|
onpopupshowing="return FeedHandler.buildFeedList(event);"
|
2006-03-09 05:08:45 +03:00
|
|
|
#ifdef MOZ_PLACES
|
|
|
|
oncommand="PlacesCommandHook.addLiveBookmark(event.target.getAttribute('feed'));" />
|
|
|
|
#else
|
2005-08-26 22:22:08 +04:00
|
|
|
oncommand="FeedHandler.addLiveBookmark(event.target.getAttribute('feed'));" />
|
2006-03-09 05:08:45 +03:00
|
|
|
#endif
|
2005-08-12 04:34:19 +04:00
|
|
|
</button>
|
2006-03-26 01:03:49 +03:00
|
|
|
<image id="lock-icon" onclick="if (event.button == 0) displaySecurityInfo(); event.stopPropagation();"/>
|
2005-08-12 04:34:19 +04:00
|
|
|
</hbox>
|
2002-09-27 08:06:56 +04:00
|
|
|
</textbox>
|
|
|
|
</toolbaritem>
|
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
<toolbaritem id="search-container" title="&searchItem.title;"
|
|
|
|
align="center" class="chromeclass-toolbar-additional">
|
|
|
|
<searchbar id="searchbar"/>
|
2002-09-27 08:06:56 +04:00
|
|
|
</toolbaritem>
|
2002-08-05 10:36:06 +04:00
|
|
|
|
2004-11-30 11:23:02 +03:00
|
|
|
<toolbaritem id="go-container" align="center" class="chromeclass-toolbar-additional">
|
|
|
|
<toolbarbutton id="go-button"
|
|
|
|
chromedir="&locale.dir;"
|
|
|
|
label="&goButton.label;"
|
|
|
|
oncommand="handleURLBarCommand(event);"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, goButtonObserver);"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, goButtonObserver);"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, goButtonObserver);"
|
|
|
|
tooltiptext="&goButton.tooltip;"/>
|
2002-09-27 08:06:56 +04:00
|
|
|
</toolbaritem>
|
2004-11-30 11:23:02 +03:00
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2003-11-05 23:45:34 +03:00
|
|
|
label="&printButton.label;" command="cmd_print"
|
|
|
|
tooltiptext="&printButton.tooltip;"/>
|
2002-09-27 08:06:56 +04:00
|
|
|
|
2003-08-09 11:56:31 +04:00
|
|
|
<toolbaritem id="throbber-box" title="&throbberItem.title;" align="center" pack="center">
|
2004-06-24 02:54:12 +04:00
|
|
|
<button id="navigator-throbber"
|
|
|
|
oncommand="goClickThrobber('browser.throbber.url', event)"
|
|
|
|
onclick="checkForMiddleClick(this, event);"
|
2002-09-27 08:06:56 +04:00
|
|
|
tooltiptext="&throbber.tooltip;"/>
|
|
|
|
</toolbaritem>
|
2005-12-15 03:48:25 +03:00
|
|
|
|
2006-02-25 00:41:34 +03:00
|
|
|
#ifdef MOZ_PLACES
|
2006-03-28 23:59:26 +04:00
|
|
|
<toolbarbutton id="bookmarksBarShowPlaces"
|
|
|
|
class="toolbarbutton-1 chromeclass-toolbar-additional"
|
|
|
|
label="&placesToolbarButton.label;"
|
|
|
|
tooltiptext="&placesToolbarButton.tooltip;"
|
2006-03-17 05:01:06 +03:00
|
|
|
oncommand="PlacesCommandHook.showPlacesOrganizer(ORGANIZER_ROOT_HISTORY);"/>
|
2006-03-04 01:14:08 +03:00
|
|
|
<toolbaritem flex="1" id="personal-bookmarks" title="&bookmarksItem.title;">
|
2006-03-09 05:08:45 +03:00
|
|
|
<hbox id="bookmarksBarContent" flex="1" type="places"
|
2006-03-07 19:10:37 +03:00
|
|
|
place="place:&folder=3&group=3&expandQueries=1"
|
2006-03-17 05:01:06 +03:00
|
|
|
context="placesContext" asyncinit="true"
|
2006-03-05 04:40:26 +03:00
|
|
|
onclick="BookmarksEventHandler.onClick(event);"
|
|
|
|
oncommand="BookmarksEventHandler.onCommand(event);"
|
2006-04-10 23:26:01 +04:00
|
|
|
onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"
|
|
|
|
ondragexit="PlacesMenuDNDController.onDragExit(event);"/>
|
2006-02-25 00:41:34 +03:00
|
|
|
</toolbaritem>
|
|
|
|
<toolbarbutton id="places-bookmark"
|
|
|
|
label="&location.status.not_bookmarked;"
|
|
|
|
tooltiptext="&location.status.bookmark.tooltip;"
|
2006-03-09 05:08:45 +03:00
|
|
|
oncommand="PlacesCommandHook.onBookmarkButtonClick();"/>
|
2006-02-25 00:41:34 +03:00
|
|
|
#else
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbaritem id="personal-bookmarks" title="&bookmarksItem.title;" flex="1"
|
|
|
|
class="chromeclass-directories">
|
2005-10-07 04:31:36 +04:00
|
|
|
<stack id="bookmarks-stack" flex="1" style="min-width:0px; width:0px; overflow: hidden;"
|
2004-05-21 02:52:29 +04:00
|
|
|
onpopupshowing="BookmarksToolbar.setOpenedMenu(event);"
|
|
|
|
onpopuphidden="BookmarksToolbar.unsetOpenedMenu(event);">
|
2003-02-24 00:49:19 +03:00
|
|
|
<hbox id="bookmarks-ptf" class="bookmarks-toolbar-items" contextmenu="bookmarks-context-menu"
|
2005-07-18 20:00:44 +04:00
|
|
|
flex="1" style="min-width:0px; width:0px;padding-left: 3px;"
|
2006-03-17 10:16:00 +03:00
|
|
|
datasources="rdf:bookmarks rdf:files"
|
2003-10-08 12:17:23 +04:00
|
|
|
template="bookmarks-template" flags="dont-test-empty"
|
2004-11-30 11:23:02 +03:00
|
|
|
infer="forward-proxy"
|
2003-02-24 00:49:19 +03:00
|
|
|
rdf:type="http://home.netscape.com/NC-rdf#Folder"
|
2004-07-30 10:25:41 +04:00
|
|
|
onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
|
|
|
|
onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
|
2003-04-22 06:55:55 +04:00
|
|
|
oncommand="BookmarksMenu.loadBookmark(event, event.target, this.database)"
|
2003-04-22 00:11:58 +04:00
|
|
|
onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
|
2003-02-24 00:49:19 +03:00
|
|
|
ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
|
2006-03-26 01:03:49 +03:00
|
|
|
ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.stopPropagation()"
|
|
|
|
ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.stopPropagation()"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.stopPropagation()"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.stopPropagation()">
|
2003-02-24 00:49:19 +03:00
|
|
|
</hbox>
|
|
|
|
<hbox class="bookmarks-toolbar-overflow-items" mousethrough="always">
|
|
|
|
<hbox mousethrough="always" id="overflow-padder"/>
|
|
|
|
<toolbarbutton id="bookmarks-chevron" type="menu" class="chevron"
|
2004-11-30 11:23:02 +03:00
|
|
|
chromedir="&locale.dir;"
|
2003-02-24 00:49:19 +03:00
|
|
|
mousethrough="never" collapsed="true"
|
2006-03-17 10:16:00 +03:00
|
|
|
datasources="rdf:bookmarks rdf:files"
|
2003-10-08 12:17:23 +04:00
|
|
|
template="bookmarks-template" flags="dont-test-empty"
|
2004-07-30 10:25:41 +04:00
|
|
|
onpopupshowing="BookmarksMenu.onShowMenu(event.target)"
|
|
|
|
onpopuphidden="BookmarksMenu.onHideMenu(event.target)"
|
2003-04-22 06:55:55 +04:00
|
|
|
oncommand="BookmarksMenu.loadBookmark(event, event.target, this.database)"
|
2003-04-22 00:11:58 +04:00
|
|
|
onclick="BookmarksMenu.loadBookmarkMiddleClick(event, this.database)"
|
2003-02-24 00:49:19 +03:00
|
|
|
ondraggesture="nsDragAndDrop.startDrag(event, BookmarksMenuDNDObserver)"
|
2006-03-26 01:03:49 +03:00
|
|
|
ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDNDObserver); event.stopPropagation()"
|
|
|
|
ondragenter="nsDragAndDrop.dragEnter(event, BookmarksMenuDNDObserver); event.stopPropagation()"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDNDObserver); event.stopPropagation()"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDNDObserver); event.stopPropagation()">
|
2005-02-02 02:43:15 +03:00
|
|
|
<menupopup onpopupshowing="if (event.target == this) BookmarksToolbar.updateOverflowMenu(this);"
|
|
|
|
#ifndef XP_MACOSX
|
|
|
|
contextmenu="bookmarks-context-menu"
|
|
|
|
#endif
|
|
|
|
/>
|
2003-02-24 00:49:19 +03:00
|
|
|
</toolbarbutton>
|
|
|
|
</hbox>
|
|
|
|
<toolbarbutton class="bookmark-item bookmarks-toolbar-customize" mousethrough="never"
|
2003-08-19 17:37:20 +04:00
|
|
|
label="&bookmarksToolbarItem.label;"/>
|
2003-02-24 00:49:19 +03:00
|
|
|
</stack>
|
2002-09-29 02:55:58 +04:00
|
|
|
</toolbaritem>
|
2005-12-15 03:48:25 +03:00
|
|
|
#endif
|
2002-09-29 02:55:58 +04:00
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2003-11-27 03:54:33 +03:00
|
|
|
observes="Tools:Downloads"
|
2006-03-26 01:03:49 +03:00
|
|
|
ondragdrop="nsDragAndDrop.drop(event, DownloadsButtonDNDObserver); event.stopPropagation()"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, DownloadsButtonDNDObserver); event.stopPropagation()"
|
|
|
|
ondragenter="nsDragAndDrop.dragEnter(event, DownloadsButtonDNDObserver); event.stopPropagation()"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, DownloadsButtonDNDObserver); event.stopPropagation()"
|
2003-11-27 03:54:33 +03:00
|
|
|
label="&downloads.label;"
|
|
|
|
tooltiptext="&downloads.tooltip;"/>
|
2002-09-29 02:55:58 +04:00
|
|
|
|
2006-03-01 22:44:37 +03:00
|
|
|
#ifndef MOZ_PLACES
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2002-09-30 05:58:19 +04:00
|
|
|
observes="viewHistorySidebar"
|
2002-09-29 02:55:58 +04:00
|
|
|
tooltiptext="&historyButton.tooltip;"/>
|
2004-03-07 07:42:17 +03:00
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2002-09-30 05:58:19 +04:00
|
|
|
observes="viewBookmarksSidebar"
|
2004-08-26 18:05:15 +04:00
|
|
|
tooltiptext="&bookmarksButton.tooltip;"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, bookmarksButtonObserver);"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, bookmarksButtonObserver);"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, bookmarksButtonObserver);"/>
|
2005-12-15 03:48:25 +03:00
|
|
|
#endif
|
2004-08-26 18:05:15 +04:00
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="new-tab-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2002-09-30 02:02:37 +04:00
|
|
|
label="&tabCmd.label;"
|
|
|
|
command="cmd_newNavigatorTab"
|
2005-06-07 23:43:43 +04:00
|
|
|
tooltiptext="&newTabButton.tooltip;"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, newTabButtonObserver);"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, newTabButtonObserver);"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, newTabButtonObserver);"/>
|
2002-09-30 02:02:37 +04:00
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2002-09-30 02:02:37 +04:00
|
|
|
label="&newNavigatorCmd.label;"
|
|
|
|
command="key_newNavigator"
|
2005-06-07 23:43:43 +04:00
|
|
|
tooltiptext="&newWindowButton.tooltip;"
|
|
|
|
ondragover="nsDragAndDrop.dragOver(event, newWindowButtonObserver);"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, newWindowButtonObserver);"
|
|
|
|
ondragexit="nsDragAndDrop.dragExit(event, newWindowButtonObserver);"/>
|
2002-09-30 02:02:37 +04:00
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2003-07-05 23:16:15 +04:00
|
|
|
label="&cutCmd.label;"
|
|
|
|
command="cmd_cut"
|
|
|
|
tooltiptext="&cutButton.tooltip;"/>
|
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2003-07-05 23:16:15 +04:00
|
|
|
label="©Cmd.label;"
|
|
|
|
command="cmd_copy"
|
|
|
|
tooltiptext="©Button.tooltip;"/>
|
|
|
|
|
2004-09-07 03:23:54 +04:00
|
|
|
<toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
|
2003-07-05 23:16:15 +04:00
|
|
|
label="&pasteCmd.label;"
|
|
|
|
command="cmd_paste"
|
|
|
|
tooltiptext="&pasteButton.tooltip;"/>
|
|
|
|
|
2002-09-27 08:06:56 +04:00
|
|
|
</toolbarpalette>
|
|
|
|
|
|
|
|
<toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
|
|
|
|
toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
|
2004-11-30 11:23:02 +03:00
|
|
|
fullscreentoolbar="true" mode="icons"
|
2002-09-30 02:31:50 +04:00
|
|
|
customizable="true"
|
2004-11-30 11:23:02 +03:00
|
|
|
#ifdef XP_MACOSX
|
|
|
|
defaultset="back-button,forward-button,reload-button,stop-button,home-button,urlbar-container,go-container,search-container,throbber-box"
|
|
|
|
#else
|
|
|
|
defaultset="back-button,forward-button,reload-button,stop-button,home-button,urlbar-container,go-container,search-container,fullscreenflex,window-controls"
|
|
|
|
#endif
|
2002-09-27 08:06:56 +04:00
|
|
|
context="toolbar-context-menu">
|
2004-11-30 11:23:02 +03:00
|
|
|
#ifndef XP_MACOSX
|
|
|
|
<hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/>
|
2002-10-28 02:19:06 +03:00
|
|
|
<hbox id="window-controls" hidden="true" fullscreencontrol="true">
|
2002-08-04 06:53:09 +04:00
|
|
|
<toolbarbutton id="minimize-button" class="toolbarbutton-1"
|
2004-09-19 02:24:43 +04:00
|
|
|
tooltiptext="&fullScreenMinimize.tooltip;"
|
2002-08-04 06:53:09 +04:00
|
|
|
oncommand="window.minimize();"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="restore-button" class="toolbarbutton-1"
|
2004-09-19 02:24:43 +04:00
|
|
|
tooltiptext="&fullScreenRestore.tooltip;"
|
2002-08-04 06:53:09 +04:00
|
|
|
oncommand="BrowserFullScreen();"/>
|
|
|
|
|
|
|
|
<toolbarbutton id="close-button" class="toolbarbutton-1"
|
2004-09-19 02:24:43 +04:00
|
|
|
tooltiptext="&fullScreenClose.tooltip;"
|
2005-05-14 12:09:45 +04:00
|
|
|
oncommand="BrowserTryToCloseWindow();"/>
|
2002-08-04 06:53:09 +04:00
|
|
|
</hbox>
|
2004-11-30 11:23:02 +03:00
|
|
|
#endif
|
2002-08-04 06:53:09 +04:00
|
|
|
</toolbar>
|
2002-09-27 08:06:56 +04:00
|
|
|
|
|
|
|
<toolbarset id="customToolbars" context="toolbar-context-menu"/>
|
2002-08-04 06:53:09 +04:00
|
|
|
|
2006-02-25 00:41:34 +03:00
|
|
|
#ifdef MOZ_PLACES
|
2006-03-28 23:59:26 +04:00
|
|
|
<toolbar id="PersonalToolbar" mode="icons" iconsize="small"
|
2006-02-27 22:23:20 +03:00
|
|
|
class="chromeclass-directories"
|
2006-03-28 23:59:26 +04:00
|
|
|
context="toolbar-context-menu"
|
2006-03-04 01:14:08 +03:00
|
|
|
defaultset="bookmarksBarShowPlaces,personal-bookmarks"
|
2006-03-09 05:08:45 +03:00
|
|
|
toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
|
2006-02-25 00:41:34 +03:00
|
|
|
customizable="true"/>
|
|
|
|
#else
|
2002-09-30 23:57:54 +04:00
|
|
|
<toolbar id="PersonalToolbar" class="chromeclass-directories" iconsize="small"
|
2003-02-24 22:07:21 +03:00
|
|
|
customizable="true" defaultset="personal-bookmarks" mode="icons"
|
2003-07-27 18:47:58 +04:00
|
|
|
toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
|
2005-12-15 03:48:25 +03:00
|
|
|
context="toolbar-context-menu"/>
|
|
|
|
#endif
|
2002-08-04 06:53:09 +04:00
|
|
|
</toolbox>
|
2002-09-29 02:55:58 +04:00
|
|
|
|
2003-02-27 20:17:00 +03:00
|
|
|
<hbox flex="1" id="browser">
|
2003-08-06 10:41:11 +04:00
|
|
|
<vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
|
2002-09-30 07:22:13 +04:00
|
|
|
<sidebarheader align="center">
|
2003-08-04 11:20:01 +04:00
|
|
|
<label id="sidebar-title" persist="value" flex="1" crop="end"/>
|
2003-08-04 07:40:27 +04:00
|
|
|
<image id="sidebar-throbber"/>
|
2004-01-31 21:55:22 +03:00
|
|
|
<toolbarbutton class="tabs-closebutton" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
|
2002-09-30 07:22:13 +04:00
|
|
|
</sidebarheader>
|
2003-07-24 15:01:40 +04:00
|
|
|
<browser id="sidebar" flex="1" autoscroll="false"
|
2006-02-07 17:09:34 +03:00
|
|
|
style="min-width: 14em; width: 18em; max-width: 36em;"/>
|
2002-09-29 02:55:58 +04:00
|
|
|
</vbox>
|
2002-08-04 06:53:09 +04:00
|
|
|
|
2004-04-26 00:08:36 +04:00
|
|
|
<splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
|
2003-02-27 20:17:00 +03:00
|
|
|
<vbox id="appcontent" flex="1">
|
|
|
|
<tabbrowser id="content" disablehistory="true"
|
|
|
|
flex="1" contenttooltip="aHTMLTooltip"
|
|
|
|
contentcontextmenu="contentAreaContextMenu"
|
|
|
|
onnewtab="BrowserOpenTab();"
|
|
|
|
autocompletepopup="PopupAutoComplete"
|
|
|
|
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
|
2006-03-09 05:08:45 +03:00
|
|
|
onclick="return contentAreaClick(event, false);"
|
|
|
|
#ifdef MOZ_PLACES
|
|
|
|
onselect="BrowserController.onEvent(BrowserController.EVENT_TABCHANGE);"
|
|
|
|
#endif
|
|
|
|
/>
|
2003-02-27 20:17:00 +03:00
|
|
|
</vbox>
|
2002-09-29 02:55:58 +04:00
|
|
|
</hbox>
|
2004-11-30 11:23:02 +03:00
|
|
|
|
|
|
|
#include ../../../toolkit/components/typeaheadfind/content/findBar.inc
|
|
|
|
|
2002-08-10 07:49:30 +04:00
|
|
|
<statusbar class="chromeclass-status" id="status-bar"
|
2002-08-04 06:53:09 +04:00
|
|
|
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
|
2004-11-30 11:23:02 +03:00
|
|
|
<statusbarpanel id="statusbar-display" flex="1"/>
|
|
|
|
<statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
|
|
|
|
<progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
|
|
|
|
</statusbarpanel>
|
|
|
|
<statusbarpanel id="security-button" class="statusbarpanel-iconic-text"
|
2004-09-19 21:31:28 +04:00
|
|
|
ondblclick="if (event.button == 0) displaySecurityInfo();"/>
|
2004-11-30 11:23:02 +03:00
|
|
|
<statusbarpanel id="page-report-button" type="menu"
|
|
|
|
class="statusbarpanel-menu-iconic"
|
|
|
|
tooltiptext="&pageReportIcon.tooltip;">
|
|
|
|
<menupopup onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
|
|
|
|
<menuitem observes="blockedPopupAllowSite"/>
|
|
|
|
<menuitem observes="blockedPopupEditSettings"/>
|
|
|
|
<menuitem observes="blockedPopupDontShowMessage"/>
|
|
|
|
<menuseparator observes="blockedPopupsSeparator"/>
|
|
|
|
</menupopup>
|
|
|
|
</statusbarpanel>
|
|
|
|
#ifdef ALTSS_ICON
|
|
|
|
<statusbarpanel id="page-theme-button" type="menu"
|
|
|
|
class="statusbarpanel-menu-iconic"
|
|
|
|
tooltiptext="&pageStyleIcon.tooltip;">
|
2004-05-23 14:25:30 +04:00
|
|
|
<menupopup onpopupshowing="stylesheetFillPopup(this);"
|
2005-01-28 19:06:56 +03:00
|
|
|
oncommand="stylesheetSwitchAll(window.content, event.target.getAttribute('data')); setStyleDisabled(false);">
|
2004-11-30 11:23:02 +03:00
|
|
|
<menuitem label="&pageStyleNoStyle.label;" accesskey="&pageStyleNoStyle.accesskey;"
|
2006-03-26 01:03:49 +03:00
|
|
|
oncommand="setStyleDisabled(true); event.stopPropagation();" type="radio" hidden="true"/>
|
2004-11-30 11:23:02 +03:00
|
|
|
<menuitem label="&pageStylePersistentOnly.label;" accesskey="&pageStylePersistentOnly.accesskey;" type="radio" checked="true"/>
|
2004-05-23 14:25:30 +04:00
|
|
|
<menuseparator/>
|
|
|
|
</menupopup>
|
2003-08-10 12:04:58 +04:00
|
|
|
</statusbarpanel>
|
2004-11-30 11:23:02 +03:00
|
|
|
#endif
|
2002-08-08 05:55:38 +04:00
|
|
|
</statusbar>
|
2002-08-04 06:53:09 +04:00
|
|
|
</window>
|
2002-10-11 01:54:02 +04:00
|
|
|
|