2008-04-18 17:41:49 +04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!-- ***** BEGIN LICENSE BLOCK *****
|
|
|
|
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
-
|
|
|
|
- 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.
|
|
|
|
-
|
|
|
|
- The Original Code is Mozilla Mobile Browser.
|
|
|
|
-
|
|
|
|
- The Initial Developer of the Original Code is
|
|
|
|
- Mozilla Corporation.
|
|
|
|
- Portions created by the Initial Developer are Copyright (C) 2008
|
|
|
|
- the Initial Developer. All Rights Reserved.
|
|
|
|
-
|
|
|
|
- Contributor(s):
|
|
|
|
- Brad Lassey <blassey@mozilla.com>
|
|
|
|
- Mark Finkle <mfinkle@mozila.com>
|
|
|
|
-
|
|
|
|
- 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 LGPL or the GPL. 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 ***** -->
|
|
|
|
|
|
|
|
<?xml-stylesheet href="chrome://browser/skin/browser.css" type="text/css"?>
|
2008-07-16 19:41:38 +04:00
|
|
|
<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
|
2008-04-18 17:41:49 +04:00
|
|
|
|
2008-06-20 21:33:34 +04:00
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd">
|
|
|
|
%browserDTD;
|
|
|
|
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
|
|
|
|
%brandDTD;
|
|
|
|
]>
|
2008-04-18 17:41:49 +04:00
|
|
|
|
2008-07-26 03:38:17 +04:00
|
|
|
<window id="main-window"
|
2008-04-18 17:41:49 +04:00
|
|
|
width="800" height="480"
|
|
|
|
onload="Browser.startup();"
|
2008-07-20 13:44:49 +04:00
|
|
|
onresize="BrowserUI.sizeAutocompletePopup();"
|
2008-07-03 20:55:34 +04:00
|
|
|
windowtype="navigator:browser"
|
2008-07-26 03:38:17 +04:00
|
|
|
title="&brandShortName;"
|
|
|
|
titlemodifier="&brandShortName;"
|
|
|
|
titleseparator="&mainWindow.titleseparator;"
|
2008-04-18 17:41:49 +04:00
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
2008-05-03 00:15:45 +04:00
|
|
|
<script type="application/x-javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://browser/content/commandUtil.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
|
2008-07-04 10:16:46 +04:00
|
|
|
<script type="application/x-javascript" src="chrome://browser/content/browser-ui.js"/>
|
2008-04-18 17:41:49 +04:00
|
|
|
|
2008-06-21 01:01:42 +04:00
|
|
|
<stringbundleset id="stringbundleset">
|
2008-07-29 12:10:22 +04:00
|
|
|
<stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
|
|
|
|
<stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
|
2008-07-18 01:51:26 +04:00
|
|
|
<stringbundle id="bundle-keys" src="chrome://global/locale/keys.properties"/>
|
|
|
|
<stringbundle id="bundle-platformKeys" src="chrome://global-platform/locale/platformKeys.properties"/>
|
|
|
|
</stringbundleset>
|
|
|
|
|
2008-07-29 12:10:22 +04:00
|
|
|
<stringbundleset id="shortcut-bundles">
|
|
|
|
<stringbundle src="chrome://browser/locale/shortcuts.properties"/>
|
2008-06-21 01:01:42 +04:00
|
|
|
</stringbundleset>
|
|
|
|
|
2008-07-29 12:10:22 +04:00
|
|
|
<script type="application/x-javascript;version=1.8" src="chrome://browser/content/shortcuts.js"/>
|
|
|
|
|
2008-04-18 17:41:49 +04:00
|
|
|
<commandset id="cmdset_main">
|
2008-07-04 10:16:46 +04:00
|
|
|
<!-- basic navigation -->
|
|
|
|
<command id="cmd_back" label="&back.label;" disabled="true" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_forward" label="&forward.label;" disabled="true" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_reload" label="&reload.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_stop" label="&stop.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_search" label="&search.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_go" label="&go.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
|
2008-07-25 22:10:35 +04:00
|
|
|
<!-- tabs -->
|
2008-07-24 22:50:32 +04:00
|
|
|
<command id="cmd_newTab" label="&newtab.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_closeTab" label="&closetab.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
|
2008-07-04 10:16:46 +04:00
|
|
|
<!-- bookmarking -->
|
|
|
|
<command id="cmd_star" label="&star.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_bookmarks" label="&bookmarks.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
|
|
|
|
<!-- misc -->
|
2008-07-09 05:24:49 +04:00
|
|
|
<command id="cmd_menu" oncommand="CommandUpdater.doCommand(this.id);"/>
|
2008-04-18 17:41:49 +04:00
|
|
|
<command id="cmd_fullscreen" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_addons" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_downloads" oncommand="CommandUpdater.doCommand(this.id);"/>
|
2008-07-04 18:29:24 +04:00
|
|
|
<command id="cmd_shortcuts" oncommand="CommandUpdater.doCommand(this.id);"/>
|
2008-07-04 10:16:46 +04:00
|
|
|
|
|
|
|
<!-- scrolling -->
|
2008-04-18 17:41:49 +04:00
|
|
|
<command id="cmd_scrollPageUp" oncommand="CommandUpdater.doCommand(this.id);"/>
|
2008-07-04 18:29:24 +04:00
|
|
|
<command id="cmd_scrollToBeginning" oncommand="CommandUpdater.doCommand(this.id);"/>
|
2008-04-18 17:41:49 +04:00
|
|
|
<command id="cmd_scrollPageDown" oncommand="CommandUpdater.doCommand(this.id);"/>
|
2008-07-04 18:29:24 +04:00
|
|
|
<command id="cmd_scrollToEnd" oncommand="CommandUpdater.doCommand(this.id);"/>
|
2008-07-04 10:16:46 +04:00
|
|
|
|
|
|
|
<!-- editing -->
|
2008-04-18 17:41:49 +04:00
|
|
|
<command id="cmd_cut" label="&cut.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_copy" label="©.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_copylink" label="©link.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_paste" label="&paste.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_delete" label="&delete.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_selectAll" label="&selectAll.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
2008-07-16 19:41:38 +04:00
|
|
|
|
2008-07-25 22:10:35 +04:00
|
|
|
<!-- find -->
|
2008-07-16 19:41:38 +04:00
|
|
|
<command id="cmd_find" oncommand="Browser.openFind(FINDSTATE_FIND);"/>
|
|
|
|
<command id="cmd_findAgain" oncommand="Browser.openFind(FINDSTATE_FIND_AGAIN);"/>
|
|
|
|
<command id="cmd_findPrevious" oncommand="Browser.openFind(FINDSTATE_FIND_PREVIOUS);"/>
|
2008-04-18 17:41:49 +04:00
|
|
|
</commandset>
|
|
|
|
|
|
|
|
<keyset id="mainKeyset">
|
2008-07-04 10:16:46 +04:00
|
|
|
<!-- basic navigation -->
|
2008-04-18 17:41:49 +04:00
|
|
|
<key id="key_back" keycode="VK_LEFT" command="cmd_back" modifiers="control"/>
|
|
|
|
<key id="key_forward" keycode="VK_RIGHT" command="cmd_forward" modifiers="control"/>
|
|
|
|
<key id="key_back2" keycode="VK_BACK" command="cmd_back"/>
|
|
|
|
<key id="key_forward2" keycode="VK_BACK" command="cmd_forward" modifiers="shift"/>
|
|
|
|
<key id="key_reload" keycode="VK_F5" command="cmd_reload"/>
|
|
|
|
|
2008-07-04 10:16:46 +04:00
|
|
|
<!-- scrolling -->
|
2008-04-18 17:41:49 +04:00
|
|
|
<key id="key_pageUp" keycode="VK_UP" command="cmd_scrollPageUp" modifiers="shift"/>
|
|
|
|
<key id="key_pageDown" keycode="VK_DOWN" command="cmd_scrollPageDown" modifiers="shift"/>
|
|
|
|
|
2008-07-04 10:16:46 +04:00
|
|
|
<!-- misc -->
|
2008-07-09 05:24:49 +04:00
|
|
|
<key id="key_menu" keycode="VK_F4" command="cmd_menu"/>
|
2008-07-04 10:16:46 +04:00
|
|
|
<key id="key_fullscreen" keycode="VK_F6" command="cmd_fullscreen"/>
|
2008-07-18 01:45:08 +04:00
|
|
|
<key id="key_addons" key="E" command="cmd_addons" modifiers="accel"/>
|
2008-04-18 17:41:49 +04:00
|
|
|
<key id="key_downloads" key="J" command="cmd_downloads" modifiers="control"/>
|
2008-07-16 19:41:38 +04:00
|
|
|
|
2008-07-25 22:10:35 +04:00
|
|
|
<!-- tabs -->
|
|
|
|
<key id="key_newTab" keycode="T" modifiers="accel" command="cmd_newTab"/>
|
|
|
|
<key id="key_closeTab" keycode="W" modifiers="accel" command="cmd_closeTab"/>
|
|
|
|
|
|
|
|
<!-- find -->
|
2008-07-16 19:41:38 +04:00
|
|
|
<key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
|
|
|
|
<key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
|
2008-07-18 07:09:32 +04:00
|
|
|
<key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel shift"/>
|
2008-07-16 19:41:38 +04:00
|
|
|
<key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
|
|
|
|
<key keycode="&findAgainCmd.commandkey2;" command="cmd_findPrevious" modifiers="shift"/>
|
2008-04-18 17:41:49 +04:00
|
|
|
</keyset>
|
|
|
|
|
|
|
|
<popupset id="mainPopupSet">
|
2008-07-16 19:41:38 +04:00
|
|
|
<panel type="autocomplete-richlistbox" id="popup_autocomplete"
|
|
|
|
noautofocus="true" onpopupshowing="BrowserUI.sizeAutocompletePopup()">
|
|
|
|
<hbox id="autocomplete_navbuttons" align="center" flex="1"
|
|
|
|
oncommand="BrowserUI.doButtonSearch(event.target);">
|
|
|
|
<image class="tool-search"/>
|
|
|
|
</hbox>
|
|
|
|
</panel>
|
|
|
|
|
2008-07-04 10:16:46 +04:00
|
|
|
<!-- popup for content autocomplete -->
|
2008-07-16 19:41:38 +04:00
|
|
|
<panel type="autocomplete" id="popup_autocomplete_content" noautofocus="true"/>
|
2008-04-18 17:41:49 +04:00
|
|
|
|
2008-07-04 10:16:46 +04:00
|
|
|
<!-- popup for site identity information -->
|
|
|
|
<panel id="identity-popup" position="after_start" hidden="true" noautofocus="true"
|
|
|
|
norestorefocus="true">
|
|
|
|
<hbox id="identity-popup-container" align="top">
|
|
|
|
<image id="identity-popup-icon"/>
|
|
|
|
<vbox id="identity-popup-content-box">
|
|
|
|
<label id="identity-popup-connectedToLabel" value="&identity.connectedTo;"/>
|
|
|
|
<label id="identity-popup-connectedToLabel2" value="&identity.unverifiedsite2;"/>
|
|
|
|
<description id="identity-popup-content-host"/>
|
|
|
|
<label id="identity-popup-runByLabel" value="&identity.runBy;"/>
|
|
|
|
<description id="identity-popup-content-owner"/>
|
|
|
|
<description id="identity-popup-content-supplemental"/>
|
|
|
|
<description id="identity-popup-content-verifier"/>
|
|
|
|
<hbox id="identity-popup-encryption" flex="1">
|
|
|
|
<vbox>
|
|
|
|
<image id="identity-popup-encryption-icon"/>
|
|
|
|
<spacer flex="1"/>
|
|
|
|
</vbox>
|
|
|
|
<description id="identity-popup-encryption-label" flex="1"/>
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
|
|
|
</hbox>
|
|
|
|
</panel>
|
2008-04-18 17:41:49 +04:00
|
|
|
</popupset>
|
|
|
|
|
2008-07-29 12:10:22 +04:00
|
|
|
<stack id="browser-container" flex="1" style="overflow: hidden;">
|
|
|
|
<vbox id="browser">
|
|
|
|
<notificationbox id="notifications" flex="1">
|
|
|
|
<deckbrowser id="content" autocompletepopup="popup_autocomplete_content" flex="1"
|
|
|
|
onnewtab="CommandUpdater.doCommand('cmd_newTab');"/>
|
|
|
|
</notificationbox>
|
|
|
|
</vbox>
|
|
|
|
|
|
|
|
<vbox id="browser-controls" style="-moz-stack-sizing: ignore; width: 80px;" top="60" left="0">
|
|
|
|
<toolbarbutton id="tool-back" class="browser-control-button" command="cmd_back"/>
|
|
|
|
<toolbarbutton id="tool-forward" class="browser-control-button" command="cmd_forward"/>
|
|
|
|
<toolbarbutton id="tool-star" class="browser-control-button" command="cmd_star"/>
|
|
|
|
<toolbarbutton id="tool-bookmarks" class="browser-control-button" command="cmd_bookmarks"/>
|
|
|
|
<toolbarbutton id="tool-actions" class="browser-control-button" command="cmd_actions"/>
|
|
|
|
<toolbarbutton id="tool-shortcuts" class="browser-control-button" command="cmd_shortcuts"/>
|
|
|
|
</vbox>
|
|
|
|
|
|
|
|
<vbox id="tab-list-container" style="-moz-stack-sizing: ignore;" top="60" left="0">
|
|
|
|
<richlistbox id="tab-list" onselect="BrowserUI.selectTab(this.selectedItem);"/>
|
|
|
|
<button id="newtab-button" label="+" command="cmd_newTab"/>
|
|
|
|
</vbox>
|
|
|
|
|
|
|
|
<toolbar id="toolbar-main" style="-moz-stack-sizing: ignore; height: 60px;" top="0" left="0">
|
2008-07-04 10:16:46 +04:00
|
|
|
<hbox id="urlbar-container" flex="1">
|
|
|
|
<box id="identity-box"
|
|
|
|
onclick="getIdentityHandler().handleIdentityButtonEvent(event);"
|
|
|
|
onkeypress="getIdentityHandler().handleIdentityButtonEvent(event);">
|
|
|
|
<stack id="urlbar-image-stack">
|
|
|
|
<image id="urlbar-throbber" src=""/>
|
|
|
|
<image id="urlbar-favicon" src=""/>
|
|
|
|
</stack>
|
|
|
|
</box>
|
|
|
|
<description id="urlbar-caption" crop="end" flex="1"/>
|
2008-07-17 17:37:34 +04:00
|
|
|
<textbox id="urlbar-edit"
|
|
|
|
type="autocomplete"
|
|
|
|
autocompletesearch="history"
|
|
|
|
enablehistory="false"
|
|
|
|
maxrows="6"
|
|
|
|
completeselectedindex="true"
|
|
|
|
minresultsforpopup="0"
|
|
|
|
flex="1"
|
|
|
|
hidden="true"
|
2008-07-16 19:41:38 +04:00
|
|
|
autocompletepopup="popup_autocomplete"
|
2008-07-17 17:37:34 +04:00
|
|
|
ontextentered="BrowserUI.goToURI();"
|
|
|
|
clickSelectsAll="true"/>
|
2008-07-04 10:16:46 +04:00
|
|
|
</hbox>
|
|
|
|
<hbox id="urlbar-icons">
|
|
|
|
<toolbarbutton id="tool-reload" class="urlbar-icon-button" command="cmd_reload"/>
|
|
|
|
<toolbarbutton id="tool-stop" class="urlbar-icon-button" command="cmd_stop"/>
|
|
|
|
<toolbarbutton id="tool-go" class="urlbar-icon-button" command="cmd_go"/>
|
|
|
|
</hbox>
|
|
|
|
</toolbar>
|
|
|
|
|
2008-07-25 22:10:35 +04:00
|
|
|
<vbox id="urllist-container" hidden="true" style="-moz-stack-sizing: ignore;" top="60" left="0">
|
2008-07-04 10:16:46 +04:00
|
|
|
<hbox id="urllist-items-container" flex="1">
|
|
|
|
<richlistbox id="urllist-items" flex="1"/>
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
|
|
|
|
2008-07-25 22:10:35 +04:00
|
|
|
<vbox id="bookmark-container" hidden="true" style="-moz-stack-sizing: ignore;" top="60" left="0">
|
2008-07-04 10:16:46 +04:00
|
|
|
<vbox id="bookmark-form">
|
|
|
|
<hbox align="start">
|
|
|
|
<image id="bookmark-image" src="chrome://browser/skin/images/starred48.png"/>
|
|
|
|
<grid id="bookmark-grid" flex="1">
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
<column flex="1"/>
|
|
|
|
</columns>
|
|
|
|
<rows>
|
|
|
|
<row>
|
|
|
|
<label value="&bookmarkName.label;" for="bookmark-name"/>
|
|
|
|
<textbox id="bookmark-name"/>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<label value="&bookmarkFolder.label;" for="bookmark-folder"/>
|
|
|
|
<textbox id="bookmark-folder"/>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<label value="&bookmarkTags.label;" for="bookmark-tags"/>
|
|
|
|
<textbox id="bookmark-tags"/>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
</hbox>
|
|
|
|
<hbox id="bookmark-buttons">
|
|
|
|
<button label="&bookmarkRemove.label;" oncommand="BookmarkHelper.remove()"/>
|
|
|
|
<spacer flex="1"/>
|
|
|
|
<button label="&bookmarkCancel.label;" oncommand="BookmarkHelper.close()"/>
|
|
|
|
<button label="&bookmarkDone.label;" oncommand="BookmarkHelper.save()"/>
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
|
|
|
</vbox>
|
2008-07-04 18:29:24 +04:00
|
|
|
|
|
|
|
<vbox id="shortcuts-container" hidden="true" flex="1">
|
2008-07-22 11:38:59 +04:00
|
|
|
<tree id="shortcuts" flex="1" seltype="cell" hidecolumnpicker="true" editable="true" textboxtype="clearable">
|
2008-07-06 04:06:24 +04:00
|
|
|
<treecols>
|
|
|
|
<treecol id="name" flex="2" hideheader="true"/>
|
|
|
|
<treecol id="value" flex="1" hideheader="true" editable="true" primary="true"/>
|
|
|
|
</treecols>
|
|
|
|
<treechildren id="shortcuts-children"/>
|
|
|
|
</tree>
|
2008-07-04 18:29:24 +04:00
|
|
|
<hbox pack="end">
|
|
|
|
<button label="Dismiss" oncommand="Shortcuts.dismiss();"/>
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
2008-07-04 10:16:46 +04:00
|
|
|
</stack>
|
2008-04-18 17:41:49 +04:00
|
|
|
|
2008-07-16 19:41:38 +04:00
|
|
|
<vbox id="findpanel-placeholder" sizetopopup="always">
|
|
|
|
<panel id="findpanel" onpopupshown="Browser.doFind()">
|
|
|
|
<findbar id="findbar"/>
|
|
|
|
</panel>
|
|
|
|
</vbox>
|
|
|
|
|
2008-04-18 17:41:49 +04:00
|
|
|
</window>
|