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"?>
|
|
|
|
<?xml-stylesheet href="chrome://browser/content/deckbrowser.css" type="text/css"?>
|
|
|
|
|
2008-05-10 02:56:14 +04:00
|
|
|
<?xul-overlay href="chrome://browser/content/toolbar.xul"?>
|
|
|
|
<?xul-overlay href="chrome://browser/content/bookmarks.xul"?>
|
2008-05-03 00:15:45 +04:00
|
|
|
<?xul-overlay href="chrome://browser/content/downloads.xul"?>
|
|
|
|
|
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-06-20 21:33:34 +04:00
|
|
|
<window id="main-window" title="&brandShortName;"
|
2008-04-18 17:41:49 +04:00
|
|
|
width="800" height="480"
|
|
|
|
onload="Browser.startup();"
|
|
|
|
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-04-18 17:41:49 +04:00
|
|
|
|
|
|
|
<commandset id="cmdset_main">
|
2008-05-03 00:15:45 +04:00
|
|
|
<command id="cmd_newTab" label="New Tab" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_closeTab" label="Close Tab" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_switchTab" label="Tabs" oncommand="CommandUpdater.doCommand(this.id);"/>
|
2008-04-18 17:41:49 +04:00
|
|
|
<command id="cmd_menu" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<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);"/>
|
|
|
|
<command id="cmd_scrollPageUp" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<command id="cmd_scrollPageDown" oncommand="CommandUpdater.doCommand(this.id);"/>
|
|
|
|
<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);"/>
|
|
|
|
</commandset>
|
|
|
|
|
|
|
|
<keyset id="mainKeyset">
|
|
|
|
<key id="key_menu" keycode="VK_F4" command="cmd_menu"/>
|
|
|
|
<key id="key_fullscreen" keycode="VK_F6" command="cmd_fullscreen"/>
|
|
|
|
|
|
|
|
<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"/>
|
|
|
|
|
|
|
|
<key id="key_pageUp" keycode="VK_UP" command="cmd_scrollPageUp" modifiers="shift"/>
|
|
|
|
<key id="key_pageDown" keycode="VK_DOWN" command="cmd_scrollPageDown" modifiers="shift"/>
|
|
|
|
|
|
|
|
<key id="key_newTab" key="T" command="cmd_newTab" modifiers="control"/>
|
|
|
|
<key id="key_removeTab" key="W" command="cmd_removeTab" modifiers="control"/>
|
|
|
|
<key id="key_switchTab" key="S" command="cmd_switchTab" modifiers="control"/>
|
|
|
|
|
|
|
|
<key id="key_downloads" key="J" command="cmd_downloads" modifiers="control"/>
|
|
|
|
</keyset>
|
|
|
|
|
|
|
|
<popupset id="mainPopupSet">
|
|
|
|
<menupopup id="mainmenu">
|
|
|
|
<menuitem label="Hello"/>
|
|
|
|
<menuitem label="World"/>
|
|
|
|
</menupopup>
|
|
|
|
|
|
|
|
<panel type="autocomplete" id="popup_autocomplete" noautofocus="true"/>
|
|
|
|
|
|
|
|
<menupopup id="popup_content">
|
|
|
|
<menuitem id="menuitem_noSuggestions" disabled="true" label="&noSuggestions.label;"/>
|
|
|
|
<menuitem id="menuitem_addToDictionary" label="&addToDictionary.label;" oncommand="InlineSpellCheckerUI.addToDictionary();"/>
|
|
|
|
<menuseparator id="menusep_spellcheck"/>
|
|
|
|
<!--
|
|
|
|
<menuitem id="menuitem_cut" command="cmd_cut"/>
|
|
|
|
<menuitem id="menuitem_copy" command="cmd_copy"/>
|
|
|
|
<menuitem id="menuitem_paste" command="cmd_paste"/>
|
|
|
|
<menuitem id="menuitem_delete" command="cmd_delete"/>
|
|
|
|
<menuseparator id="menusep_edit"/>
|
|
|
|
<menuitem id="menuitem_selectAll" command="cmd_selectAll"/>
|
|
|
|
<menuseparator id="menusep_copylink"/>
|
|
|
|
<menuitem id="menuitem_copylink" command="cmd_copylink"/>
|
|
|
|
<menuseparator id="menusep_tabs"/>
|
|
|
|
-->
|
|
|
|
<menuitem label="&newTab.label;" command="cmd_newTab"/>
|
|
|
|
<menuitem label="&closeTab.label;" command="cmd_closeTab"/>
|
|
|
|
<menuitem label="&switchTab.label;" command="cmd_switchTab"/>
|
|
|
|
<menuseparator id="menusep_tools"/>
|
|
|
|
<menuitem label="&addons.label;" command="cmd_addons"/>
|
|
|
|
</menupopup>
|
|
|
|
</popupset>
|
|
|
|
|
|
|
|
<vbox id="browser" flex="1">
|
2008-06-16 20:43:15 +04:00
|
|
|
<deckbrowser id="content" autocompletepopup="popup_autocomplete" flex="1"/>
|
2008-04-18 17:41:49 +04:00
|
|
|
</vbox>
|
|
|
|
|
|
|
|
</window>
|