buildable mobile browser
--HG-- branch : mobile extra : convert_revision : svn%3A4eb1ac78-321c-0410-a911-ec516a8615a5/projects/fennec/mobile%4012383
|
@ -0,0 +1,47 @@
|
|||
# ***** 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.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# the Mozilla Foundation <http://www.mozilla.org/>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2007
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Mark Finkle <mfinkle@mozilla.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 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 *****
|
||||
|
||||
DEPTH = ..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = chrome app
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
|
@ -0,0 +1,98 @@
|
|||
# ***** 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.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# the Mozilla Foundation <http://www.mozilla.org/>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2007
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Mark Finkle <mfinkle@mozilla.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 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 *****
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PREF_JS_EXPORTS = $(srcdir)/mobile.js
|
||||
DIST_FILES = application.ini
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
GRE_MILESTONE = $(shell $(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build Milestone)
|
||||
GRE_BUILDID = $(shell $(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build BuildID)
|
||||
APP_UA_NAME = $(shell echo $(MOZ_APP_DISPLAYNAME) | sed -e's/[^A-Za-z]//g')
|
||||
|
||||
DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE) -DGRE_BUILDID=$(GRE_BUILDID) -DAPP_NAME=$(MOZ_APP_DISPLAYNAME) -DAPP_VERSION=$(MOZ_APP_VERSION) -DAPP_UA_NAME=$(APP_UA_NAME)
|
||||
|
||||
APP_BINARY = $(MOZ_APP_NAME)$(BIN_SUFFIX)
|
||||
|
||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||
|
||||
APP_NAME = $(MOZ_APP_DISPLAYNAME)
|
||||
APP_VERSION = $(MOZ_APP_VERSION)
|
||||
|
||||
ifdef MOZ_DEBUG
|
||||
APP_NAME := $(APP_NAME)Debug
|
||||
endif
|
||||
|
||||
AB_CD = $(MOZ_UI_LOCALE)
|
||||
|
||||
AB := $(firstword $(subst -, ,$(AB_CD)))
|
||||
|
||||
clean clobber repackage::
|
||||
rm -rf $(DIST)/$(APP_NAME).app
|
||||
|
||||
APPFILES = Resources
|
||||
|
||||
libs repackage:: application.ini
|
||||
mkdir -p $(DIST)/$(APP_NAME).app/Contents/MacOS
|
||||
rsync -a --exclude CVS --exclude "*.in" $(srcdir)/macbuild/Contents $(DIST)/$(APP_NAME).app --exclude English.lproj
|
||||
mkdir -p $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj
|
||||
rsync -a --exclude CVS --exclude "*.in" $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj
|
||||
sed -e "s/%APP_VERSION%/$(APP_VERSION)/" -e "s/%APP_NAME%/$(APP_NAME)/" -e "s/%APP_BINARY%/$(APP_BINARY)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist
|
||||
sed -e "s/%APP_VERSION%/$(APP_VERSION)/" -e "s/%APP_NAME%/$(APP_NAME)/" $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | iconv -f UTF-8 -t UTF-16 > $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj/InfoPlist.strings
|
||||
rsync -a $(DIST)/bin/ $(DIST)/$(APP_NAME).app/Contents/$(APPFILES)
|
||||
$(RM) $(DIST)/$(APP_NAME).app/Contents/$(APPFILES)/mangle $(DIST)/$(APP_NAME).app/Contents/$(APPFILES)/shlibsign
|
||||
cp $(LIBXUL_DIST)/bin/xulrunner$(BIN_SUFFIX) $(DIST)/$(APP_NAME).app/Contents/MacOS/$(APP_BINARY)
|
||||
rsync -a --exclude nsinstall --copy-unsafe-links $(LIBXUL_DIST)/XUL.framework $(DIST)/$(APP_NAME).app/Contents/Frameworks
|
||||
echo -n APPLMOZB > $(DIST)/$(APP_NAME).app/Contents/PkgInfo
|
||||
# remove CVS dirs from packaged app
|
||||
find $(DIST)/$(APP_NAME).app -type d -name "CVS" -prune -exec rm -rf {} \;
|
||||
|
||||
else
|
||||
|
||||
libs::
|
||||
cp $(LIBXUL_DIST)/bin/xulrunner-stub$(BIN_SUFFIX) $(DIST)/bin/$(APP_BINARY)
|
||||
$(NSINSTALL) -D $(DIST)/bin/xulrunner
|
||||
(cd $(LIBXUL_SDK)/bin && tar $(TAR_CREATE_FLAGS) - .) | (cd $(DIST)/bin/xulrunner && tar -xf -)
|
||||
|
||||
endif
|
|
@ -0,0 +1,15 @@
|
|||
#filter substitution
|
||||
[App]
|
||||
Vendor=Mozilla
|
||||
Name=@APP_NAME@
|
||||
Version=@APP_VERSION@
|
||||
BuildID=@GRE_BUILDID@
|
||||
Copyright=Copyright (c) 2008 Mozilla.org
|
||||
ID={a23983c0-fd0e-11dc-95ff-0800200c9a66}
|
||||
|
||||
[Gecko]
|
||||
MinVersion=@GRE_MILESTONE@
|
||||
MaxVersion=@GRE_MILESTONE@
|
||||
|
||||
[XRE]
|
||||
EnableExtensionManager=1
|
|
@ -0,0 +1,121 @@
|
|||
/* ***** 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):
|
||||
*
|
||||
* 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 ***** */
|
||||
|
||||
#filter substitution
|
||||
|
||||
pref("toolkit.defaultChromeURI", "chrome://browser/content/browser.xul");
|
||||
pref("general.useragent.extra.mobile", "@APP_UA_NAME@/@APP_VERSION@");
|
||||
|
||||
pref("browser.startup.homepage", "http://www.mozilla.org/");
|
||||
pref("browser.ui.cursor", false);
|
||||
pref("general.smoothScroll", false);
|
||||
|
||||
/* cache prefs */
|
||||
pref("browser.cache.disk.enable", false);
|
||||
pref("browser.cache.disk.capacity", 0);
|
||||
pref("browser.cache.memory.enable", true);
|
||||
pref("browser.cache.memory.capacity", 1024);
|
||||
|
||||
/* http prefs */
|
||||
pref("network.http.pipelining", true);
|
||||
pref("network.http.pipelining.ssl", true);
|
||||
pref("network.http.proxy.pipelining", true);
|
||||
pref("network.http.pipelining.maxrequests" , 2);
|
||||
pref("network.http.keep-alive.timeout", 600);
|
||||
pref("network.http.max-connections", 4);
|
||||
pref("network.http.max-connections-per-server", 1);
|
||||
pref("network.http.max-persistent-connections-per-server", 1);
|
||||
pref("network.http.max-persistent-connections-per-proxy", 1);
|
||||
|
||||
/* session history */
|
||||
pref("browser.sessionhistory.max_total_viewers", 0);
|
||||
pref("browser.sessionhistory.max_entries", 3);
|
||||
|
||||
/* debugging prefs */
|
||||
pref("browser.dom.window.dump.enabled", true);
|
||||
pref("javascript.options.showInConsole", true);
|
||||
pref("javascript.options.strict", true);
|
||||
pref("nglayout.debug.disable_xul_cache", false);
|
||||
pref("nglayout.debug.disable_xul_fastload", false);
|
||||
|
||||
/* download manager */
|
||||
pref("browser.download.useDownloadDir", true);
|
||||
pref("browser.download.folderList", 0);
|
||||
pref("browser.download.manager.showAlertOnComplete", true);
|
||||
pref("browser.download.manager.showAlertInterval", 2000);
|
||||
pref("browser.download.manager.retention", 2);
|
||||
pref("browser.download.manager.showWhenStarting", true);
|
||||
pref("browser.download.manager.useWindow", true);
|
||||
pref("browser.download.manager.closeWhenDone", true);
|
||||
pref("browser.download.manager.openDelay", 0);
|
||||
pref("browser.download.manager.focusWhenStarting", false);
|
||||
pref("browser.download.manager.flashCount", 2);
|
||||
pref("browser.download.manager.displayedHistoryDays", 7);
|
||||
|
||||
/* download alerts */
|
||||
pref("alerts.slideIncrement", 1);
|
||||
pref("alerts.slideIncrementTime", 10);
|
||||
pref("alerts.totalOpenTime", 6000);
|
||||
pref("alerts.height", 50);
|
||||
|
||||
/* password manager */
|
||||
pref("signon.rememberSignons", true);
|
||||
pref("signon.expireMasterPassword", false);
|
||||
pref("signon.SignonFileName", "signons.txt");
|
||||
|
||||
/* autocomplete */
|
||||
pref("browser.formfill.enable", true);
|
||||
|
||||
/* spellcheck */
|
||||
pref("layout.spellcheckDefault", 1);
|
||||
|
||||
/* extension manager and xpinstall */
|
||||
pref("xpinstall.dialog.confirm", "chrome://mozapps/content/xpinstall/xpinstallConfirm.xul");
|
||||
pref("xpinstall.dialog.progress.skin", "chrome://mozapps/content/extensions/extensions.xul?type=themes");
|
||||
pref("xpinstall.dialog.progress.chrome", "chrome://mozapps/content/extensions/extensions.xul?type=extensions");
|
||||
pref("xpinstall.dialog.progress.type.skin", "Extension:Manager-themes");
|
||||
pref("xpinstall.dialog.progress.type.chrome", "Extension:Manager-extensions");
|
||||
pref("extensions.update.enabled", true);
|
||||
pref("extensions.update.interval", 86400);
|
||||
pref("extensions.dss.enabled", false);
|
||||
pref("extensions.dss.switchPending", false);
|
||||
pref("extensions.ignoreMTimeChanges", false);
|
||||
pref("extensions.logging.enabled", false);
|
||||
|
||||
/* these point at AMO */
|
||||
pref("extensions.update.url", "chrome://mozapps/locale/extensions/extensions.properties");
|
||||
pref("extensions.getMoreExtensionsURL", "chrome://mozapps/locale/extensions/extensions.properties");
|
||||
pref("extensions.getMoreThemesURL", "chrome://mozapps/locale/extensions/extensions.properties");
|
|
@ -0,0 +1,57 @@
|
|||
# ***** 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.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# the Mozilla Foundation <http://www.mozilla.org/>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2007
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Mark Finkle <mfinkle@mozilla.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 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 *****
|
||||
|
||||
TIERS += app
|
||||
|
||||
ifdef MOZ_EXTENSIONS
|
||||
tier_app_dirs += extensions
|
||||
endif
|
||||
|
||||
tier_app_dirs += \
|
||||
mobile \
|
||||
$(NULL)
|
||||
|
||||
installer:
|
||||
@echo "Mobile doesn't have an installer yet."
|
||||
@exit 1
|
||||
|
||||
package:
|
||||
@$(MAKE) -C mobile/installer
|
||||
|
||||
install::
|
||||
@echo "Mobile can't be installed directly."
|
||||
@exit 1
|
|
@ -0,0 +1,47 @@
|
|||
# ***** 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.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# the Mozilla Foundation <http://www.mozilla.org/>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2007
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Mark Finkle <mfinkle@mozilla.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 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 *****
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DEFINES += -DAB_CD=$(MOZ_UI_LOCALE) -DPACKAGE=browser
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
|
@ -0,0 +1,189 @@
|
|||
<?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"?>
|
||||
|
||||
<!DOCTYPE window SYSTEM "chrome://browser/locale/browser.dtd">
|
||||
|
||||
<window id="main-window" title="&browser.title;"
|
||||
width="800" height="480"
|
||||
onload="Browser.startup();"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<script src="chrome://global/content/inlineSpellCheckUI.js"/>
|
||||
<script src="chrome://browser/content/commandUtil.js"/>
|
||||
<script src="chrome://browser/content/browser.js"/>
|
||||
|
||||
<commandset id="cmdset_main">
|
||||
<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;" collapsed="true" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_stop" label="&stop.label;" collapsed="true" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_search" label="&search.label;" collapsed="true" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_go" label="&go.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_star" label="&star.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_bookmarks" label="&bookmarks.label;" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_newTab" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_closeTab" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_switchTab" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<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"/>
|
||||
|
||||
<panel id="bookmark_edit" hidden="true">
|
||||
<hbox flex="1" align="top">
|
||||
<image id="bookmark_star"/>
|
||||
<vbox flex="1">
|
||||
<label id="bookmark_title" value="&editBookmark.title;" flex="1"/>
|
||||
<button label="&removeBookmark.label;" oncommand="Bookmarks.remove();"/>
|
||||
</vbox>
|
||||
</hbox>
|
||||
<separator/>
|
||||
<vbox>
|
||||
<label value="&bookmarkURL.label;" control="bookmark_url"/>
|
||||
<textbox id="bookmark_url"/>
|
||||
<separator class="thin"/>
|
||||
<label value="&bookmarkName.label;" control="bookmark_name"/>
|
||||
<textbox id="bookmark_name"/>
|
||||
</vbox>
|
||||
<separator/>
|
||||
<hbox>
|
||||
<spacer flex="1"/>
|
||||
<button label="&saveBookmark.label;" oncommand="Bookmarks.save();"/>
|
||||
<button label="&closeBookmark.label;" oncommand="Bookmarks.close();"/>
|
||||
</hbox>
|
||||
</panel>
|
||||
|
||||
<panel id="bookmark_picker" hidden="true">
|
||||
<richlistbox id="bookmark_list" style="border: none !important;">
|
||||
</richlistbox>
|
||||
</panel>
|
||||
|
||||
<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>
|
||||
|
||||
<toolbox>
|
||||
<toolbar id="toolbar_main" mode="icons">
|
||||
<toolbarbutton id="tool_back" tooltiptext="&back.tooltip;" command="cmd_back"/>
|
||||
<toolbarbutton id="tool_forward" tooltiptext="&forward.tooltip;" command="cmd_forward"/>
|
||||
<toolbaritem id="urlbar-container" flex="1">
|
||||
<stack id="urlbar-image-stack">
|
||||
<image id="urlbar-throbber" src="throbber.png"/>
|
||||
<image id="urlbar-favicon" src=""/>
|
||||
</stack>
|
||||
<textbox id="urlbar" type="autocomplete" autocompletesearch="history" enablehistory="false" maxrows="6" completeselectedindex="true" flex="1"
|
||||
ontextentered="LocationBar.goToURI();" ontextreverted="LocationBar.revertURI();"/>
|
||||
<hbox id="urlbar-icons">
|
||||
<toolbarbutton id="tool_search" tooltiptext="&search.tooltip;" command="cmd_search"/>
|
||||
<toolbarbutton id="tool_go" tooltiptext="&go.tooltip;" command="cmd_go"/>
|
||||
<toolbarbutton id="tool_reload" tooltiptext="&reload.tooltip;" command="cmd_reload"/>
|
||||
<toolbarbutton id="tool_stop" tooltiptext="&stop.tooltip;" command="cmd_stop"/>
|
||||
</hbox>
|
||||
</toolbaritem>
|
||||
<toolbarbutton id="tool_star" tooltiptext="&star.tooltip;" command="cmd_star"/>
|
||||
<toolbarbutton id="tool_bookmarks" tooltiptext="&bookmarks.tooltip;" command="cmd_bookmarks"/>
|
||||
</toolbar>
|
||||
</toolbox>
|
||||
|
||||
<vbox id="browser" flex="1">
|
||||
<deckbrowser id="content" contentcontextmenu="popup_content" autocompletepopup="popup_autocomplete" flex="1">
|
||||
</deckbrowser>
|
||||
</vbox>
|
||||
|
||||
</window>
|
|
@ -0,0 +1,197 @@
|
|||
/* ***** 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):
|
||||
* Mark Finkle <mfinkle@mozilla.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 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 ***** */
|
||||
|
||||
|
||||
/**
|
||||
* Command Updater
|
||||
*/
|
||||
var CommandUpdater = {
|
||||
/**
|
||||
* Gets a controller that can handle a particular command.
|
||||
* @param command
|
||||
* A command to locate a controller for, preferring controllers that
|
||||
* show the command as enabled.
|
||||
* @returns In this order of precedence:
|
||||
* - the first controller supporting the specified command
|
||||
* associated with the focused element that advertises the
|
||||
* command as ENABLED
|
||||
* - the first controller supporting the specified command
|
||||
* associated with the global window that advertises the
|
||||
* command as ENABLED
|
||||
* - the first controller supporting the specified command
|
||||
* associated with the focused element
|
||||
* - the first controller supporting the specified command
|
||||
* associated with the global window
|
||||
*/
|
||||
_getControllerForCommand: function(command) {
|
||||
try {
|
||||
var controller = top.document.commandDispatcher.getControllerForCommand(command);
|
||||
if (controller && controller.isCommandEnabled(command))
|
||||
return controller;
|
||||
}
|
||||
catch(e) {
|
||||
}
|
||||
var controllerCount = window.controllers.getControllerCount();
|
||||
for (var i = 0; i < controllerCount; ++i) {
|
||||
var current = window.controllers.getControllerAt(i);
|
||||
try {
|
||||
if (current.supportsCommand(command) && current.isCommandEnabled(command))
|
||||
return current;
|
||||
}
|
||||
catch (e) {
|
||||
}
|
||||
}
|
||||
return controller || window.controllers.getControllerForCommand(command);
|
||||
},
|
||||
|
||||
/**
|
||||
* Updates the state of a XUL <command> element for the specified command
|
||||
* depending on its state.
|
||||
* @param command
|
||||
* The name of the command to update the XUL <command> element for
|
||||
*/
|
||||
updateCommand: function(command) {
|
||||
var enabled = false;
|
||||
try {
|
||||
var controller = this._getControllerForCommand(command);
|
||||
if (controller) {
|
||||
enabled = controller.isCommandEnabled(command);
|
||||
}
|
||||
}
|
||||
catch(ex) { }
|
||||
|
||||
this.enableCommand(command, enabled);
|
||||
},
|
||||
|
||||
/**
|
||||
* Updates the state of a XUL <command> element for the specified command
|
||||
* depending on its state.
|
||||
* @param command
|
||||
* The name of the command to update the XUL <command> element for
|
||||
*/
|
||||
updateCommands: function(_commands) {
|
||||
var commands = _commands.split(",");
|
||||
for (var command in commands) {
|
||||
this.updateCommand(commands[command]);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Enables or disables a XUL <command> element.
|
||||
* @param command
|
||||
* The name of the command to enable or disable
|
||||
* @param enabled
|
||||
* true if the command should be enabled, false otherwise.
|
||||
*/
|
||||
enableCommand: function(command, enabled) {
|
||||
var element = document.getElementById(command);
|
||||
if (!element)
|
||||
return;
|
||||
if (enabled)
|
||||
element.removeAttribute("disabled");
|
||||
else
|
||||
element.setAttribute("disabled", "true");
|
||||
},
|
||||
|
||||
/**
|
||||
* Performs the action associated with a specified command using the most
|
||||
* relevant controller.
|
||||
* @param command
|
||||
* The command to perform.
|
||||
*/
|
||||
doCommand: function(command) {
|
||||
var controller = this._getControllerForCommand(command);
|
||||
if (!controller)
|
||||
return;
|
||||
controller.doCommand(command);
|
||||
},
|
||||
|
||||
/**
|
||||
* Changes the label attribute for the specified command.
|
||||
* @param command
|
||||
* The command to update.
|
||||
* @param labelAttribute
|
||||
* The label value to use.
|
||||
*/
|
||||
setMenuValue: function(command, labelAttribute) {
|
||||
var commandNode = top.document.getElementById(command);
|
||||
if (commandNode)
|
||||
{
|
||||
var label = commandNode.getAttribute(labelAttribute);
|
||||
if ( label )
|
||||
commandNode.setAttribute('label', label);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Changes the accesskey attribute for the specified command.
|
||||
* @param command
|
||||
* The command to update.
|
||||
* @param valueAttribute
|
||||
* The value attribute to use.
|
||||
*/
|
||||
setAccessKey: function(command, valueAttribute) {
|
||||
var commandNode = top.document.getElementById(command);
|
||||
if (commandNode)
|
||||
{
|
||||
var value = commandNode.getAttribute(valueAttribute);
|
||||
if ( value )
|
||||
commandNode.setAttribute('accesskey', value);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Inform all the controllers attached to a node that an event has occurred
|
||||
* (e.g. the tree controllers need to be informed of blur events so that they can change some of the
|
||||
* menu items back to their default values)
|
||||
* @param node
|
||||
* The node receiving the event
|
||||
* @param event
|
||||
* The event.
|
||||
*/
|
||||
onEvent: function(node, event) {
|
||||
var numControllers = node.controllers.getControllerCount();
|
||||
var controller;
|
||||
|
||||
for ( var controllerIndex = 0; controllerIndex < numControllers; controllerIndex++ )
|
||||
{
|
||||
controller = node.controllers.getControllerAt(controllerIndex);
|
||||
if ( controller )
|
||||
controller.onEvent(event);
|
||||
}
|
||||
}
|
||||
};
|
|
@ -0,0 +1,42 @@
|
|||
/* ***** 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):
|
||||
* Mark Finkle <mfinkle@mozilla.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 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 ***** */
|
||||
|
||||
@namespace html url(http://www.w3.org/1999/xhtml);
|
||||
|
||||
html|* {
|
||||
cursor: none !important;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
deckpage {
|
||||
-moz-binding: url("chrome://browser/content/deckbrowser.xml#deckpage");
|
||||
}
|
||||
|
||||
deckbrowser {
|
||||
-moz-binding: url("chrome://browser/content/deckbrowser.xml#deckbrowser");
|
||||
}
|
|
@ -0,0 +1,248 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE bindings PUBLIC "-//MOZILLA//DTD XBL V1.0//EN" "http://www.mozilla.org/xbl">
|
||||
|
||||
<bindings
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xbl="http://www.mozilla.org/xbl"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<binding id="deckpage">
|
||||
<content>
|
||||
<xul:stack anonid="page" class="deckpage-container" flex="1">
|
||||
<html:canvas anonid="canvas" class="deckpage-canvas"/>
|
||||
<xul:vbox align="start">
|
||||
<xul:image anonid="close" class="deckpage-close"/>
|
||||
</xul:vbox>
|
||||
</xul:stack>
|
||||
</content>
|
||||
|
||||
</binding>
|
||||
|
||||
<binding id="deckbrowser">
|
||||
<content>
|
||||
<xul:deck anonid="container" class="deckbrowser-container" flex="1">
|
||||
</xul:deck>
|
||||
<xul:vbox anonid="tabspace" class="deckbrowser-tabspace" collapsed="true" align="center" flex="1">
|
||||
<xul:description anonid="title" class="deckbrowser-title" crop="end"/>
|
||||
<xul:description anonid="uri" class="deckbrowser-uri" crop="center"/>
|
||||
<xul:hbox anonid="tabs" class="deckbrowser-tabs" flex="1" style="overflow-x: auto">
|
||||
</xul:hbox>
|
||||
</xul:vbox>
|
||||
</content>
|
||||
|
||||
<implementation>
|
||||
<constructor>
|
||||
</constructor>
|
||||
|
||||
<field name="_container" readonly="true">
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "container");
|
||||
</field>
|
||||
|
||||
<field name="_browsers">
|
||||
null
|
||||
</field>
|
||||
|
||||
<property name="browser" readonly="true">
|
||||
<getter>
|
||||
return this._container.selectedPanel;
|
||||
</getter>
|
||||
</property>
|
||||
|
||||
<property name="browsers" readonly="true">
|
||||
<getter>
|
||||
<![CDATA[
|
||||
if (!this._browsers) {
|
||||
var browsers = [];
|
||||
for (var i = 0; i < this._container.childNodes.length; i++)
|
||||
browsers.push(this._container.childNodes[i]);
|
||||
this._browsers = browsers;
|
||||
}
|
||||
return this._browsers;
|
||||
]]>
|
||||
</getter>
|
||||
</property>
|
||||
|
||||
<method name="addBrowser">
|
||||
<parameter name="aURI"/>
|
||||
<parameter name="aReferrer"/>
|
||||
<parameter name="aPostData"/>
|
||||
<parameter name="aFixUp"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
var b = document.createElement("browser");
|
||||
b.setAttribute("class", "deckbrowser-browser");
|
||||
b.setAttribute("flex", "1");
|
||||
b.setAttribute("type", "content-targetable");
|
||||
if (this.hasAttribute("autocompletepopup"))
|
||||
b.setAttribute("autocompletepopup", this.getAttribute("autocompletepopup"));
|
||||
if (this.hasAttribute("contentcontextmenu"))
|
||||
b.setAttribute("contextmenu", this.getAttribute("contentcontextmenu"));
|
||||
|
||||
this._container.appendChild(b);
|
||||
this._container.selectedPanel = b;
|
||||
this._browsers = null;
|
||||
|
||||
if (aURI != "about:blank") {
|
||||
b.stop();
|
||||
this.loadURI(aURI, aReferrer, aPostData, aFixup);
|
||||
}
|
||||
|
||||
// Broadcast creation
|
||||
var event = document.createEvent("Event");
|
||||
event.initEvent("TabOpen", true, false);
|
||||
b.dispatchEvent(event);
|
||||
|
||||
return b;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="removeBrowser">
|
||||
<parameter name="aBrowser"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
this._browsers = null;
|
||||
if (!aBrowser)
|
||||
aBrowser = this.browser;
|
||||
|
||||
var count = this._container.childNodes.length;
|
||||
if (count == 1) {
|
||||
var self = this;
|
||||
setTimeout(function() { self.addBrowser("about:blank"); }, 0);
|
||||
}
|
||||
|
||||
var currentIndex = this._container.selectedIndex;
|
||||
var index = -1;
|
||||
for (var i = 0; i<count; i++) {
|
||||
if (this._container.childNodes[i] == aBrowser)
|
||||
index = i;
|
||||
}
|
||||
|
||||
// Broadcast removal
|
||||
var event = document.createEvent("Event");
|
||||
event.initEvent("TabClose", true, false);
|
||||
aBrowser.dispatchEvent(event);
|
||||
|
||||
this._container.removeChild(aBrowser);
|
||||
|
||||
// Select the new tab
|
||||
var newIndex = -1;
|
||||
if (currentIndex > index)
|
||||
newIndex = currentIndex - 1;
|
||||
else if (currentIndex < index)
|
||||
newIndex = currentIndex;
|
||||
else {
|
||||
newIndex = (index == count - 1) ? index - 1 : index;
|
||||
}
|
||||
this._container.selectedIndex = newIndex;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="show">
|
||||
<parameter name="aBrowser"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (aBrowser.constructor.name == "Number")
|
||||
aBrowser = this.browsers[aBrowser];
|
||||
this._container.selectedPanel = aBrowser;
|
||||
|
||||
var event = document.createEvent("Event");
|
||||
event.initEvent("TabSelect", true, false);
|
||||
aBrowser.dispatchEvent(event);
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="loadURI">
|
||||
<parameter name="aURI"/>
|
||||
<parameter name="aReferrer"/>
|
||||
<parameter name="aPostData"/>
|
||||
<parameter name="aFixUp"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (aPostData === undefined)
|
||||
aPostData = null;
|
||||
var flags = Ci.nsIWebNavigation.LOAD_FLAGS_NONE;
|
||||
if (aFixUp)
|
||||
flags = Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP;
|
||||
|
||||
this.browser.loadURIWithFlags(aURI, flags, aReferrer, null, aPostData);
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<method name="select">
|
||||
<body>
|
||||
<![CDATA[
|
||||
var tabspace = document.getAnonymousElementByAttribute(this, "anonid", "tabspace");
|
||||
var tabs = document.getAnonymousElementByAttribute(this, "anonid", "tabs");
|
||||
while (tabs.childNodes.length > 0)
|
||||
tabs.removeChild(tabs.childNodes[0]);
|
||||
|
||||
var browsers = this.browsers;
|
||||
for (var i=0; i<browsers.length; i++) {
|
||||
var webContent = browsers[i].contentWindow;
|
||||
var viewW = webContent.innerWidth;
|
||||
var viewH = webContent.innerHeight;
|
||||
var canvasW = this.boxObject.width / 1.5;
|
||||
var canvasH = (viewH / viewW) * canvasW;
|
||||
|
||||
var deckpage = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "deckpage");
|
||||
tabs.appendChild(deckpage);
|
||||
|
||||
var canvas = document.getAnonymousElementByAttribute(deckpage, "anonid", "canvas");
|
||||
canvas.setAttribute("width", canvasW);
|
||||
canvas.setAttribute("height", canvasH);
|
||||
canvas.setAttribute("left", "10");
|
||||
canvas.setAttribute("top", "10");
|
||||
|
||||
let self = this;
|
||||
let target = browsers[i];
|
||||
|
||||
var page = document.getAnonymousElementByAttribute(deckpage, "anonid", "page");
|
||||
function _selectTab(aEvent) {
|
||||
self.show(target);
|
||||
tabspace.collapsed = true;
|
||||
self._container.collapsed = false;
|
||||
}
|
||||
page.addEventListener("click", _selectTab, false);
|
||||
|
||||
var close = document.getAnonymousElementByAttribute(deckpage, "anonid", "close");
|
||||
function _closeTab(aEvent) {
|
||||
self.removeBrowser(target);
|
||||
tabspace.collapsed = true;
|
||||
self._container.collapsed = false;
|
||||
};
|
||||
close.addEventListener("click", _closeTab, false);
|
||||
|
||||
let title = document.getAnonymousElementByAttribute(this, "anonid", "title");
|
||||
let uri = document.getAnonymousElementByAttribute(this, "anonid", "uri");
|
||||
function _hoverTab(aEvent) {
|
||||
title.value = target.contentDocument.title;
|
||||
uri.value = target.currentURI.spec;
|
||||
};
|
||||
page.addEventListener("mouseover", _hoverTab, false);
|
||||
|
||||
var ctx = canvas.getContext("2d");
|
||||
ctx.clearRect(0, 0, canvasW, canvasH);
|
||||
ctx.save();
|
||||
ctx.scale(canvasW/viewW, canvasH/viewH);
|
||||
ctx.drawWindow(webContent, 0, 0, viewW, viewH, "rgba(0,0,0,0)");
|
||||
ctx.restore();
|
||||
}
|
||||
|
||||
this._container.collapsed = true;
|
||||
tabspace.collapsed = false;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
</implementation>
|
||||
|
||||
<handlers>
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
|
@ -0,0 +1,55 @@
|
|||
/* ***** 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):
|
||||
* Mark Finkle <mfinkle@mozilla.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 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 ***** */
|
||||
|
||||
/* Style the scrollbars */
|
||||
scrollbar {
|
||||
-moz-appearance: none !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
scrollbarbutton {
|
||||
-moz-appearance: none !important;
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
thumb {
|
||||
min-width: 10px !important;
|
||||
-moz-appearance: none !important;
|
||||
background-color: gray !important;
|
||||
border: 1px solid gray !important;
|
||||
-moz-border-radius: 4px !important;
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
#filter substitution
|
||||
|
||||
browser.jar:
|
||||
% content browser %content/
|
||||
* content/browser.xul (content/browser.xul)
|
||||
content/browser.js (content/browser.js)
|
||||
content/commandUtil.js (content/commandUtil.js)
|
||||
content/deckbrowser.xml (content/deckbrowser.xml)
|
||||
content/deckbrowser.css (content/deckbrowser.css)
|
||||
content/scrollbars.css (content/scrollbars.css)
|
||||
content/content.css (content/content.css)
|
||||
% content branding %branding/
|
||||
% locale branding @AB_CD@ %branding/
|
||||
branding/brand.dtd (locale/@AB_CD@/brand/brand.dtd)
|
||||
branding/brand.properties (locale/@AB_CD@/brand/brand.properties)
|
||||
|
||||
classic.jar:
|
||||
% skin browser classic/1.0 %
|
||||
browser.css (skin/browser.css)
|
||||
images/bookmarks.png (skin/images/bookmarks.png)
|
||||
images/close.png (skin/images/close.png)
|
||||
images/default-favicon.png (skin/images/default-favicon.png)
|
||||
images/go-arrow.png (skin/images/go-arrow.png)
|
||||
images/page-starred.png (skin/images/page-starred.png)
|
||||
images/search-glass.png (skin/images/search-glass.png)
|
||||
images/star-page.png (skin/images/star-page.png)
|
||||
images/starred48.png (skin/images/starred48.png)
|
||||
images/tap-n-hold.png (skin/images/tap-n-hold.png)
|
||||
images/throbber.png (skin/images/throbber.png)
|
||||
images/throbber.gif (skin/images/throbber.gif)
|
||||
images/toolbar.png (skin/images/toolbar.png)
|
||||
|
||||
@AB_CD@.jar:
|
||||
% locale browser @AB_CD@ %
|
||||
browser.dtd (locale/@AB_CD@/browser.dtd)
|
|
@ -0,0 +1,2 @@
|
|||
<!ENTITY brandShortName "Firefox">
|
||||
<!ENTITY brandFullName "Firefox">
|
|
@ -0,0 +1,2 @@
|
|||
brandShortName=Firefox
|
||||
brandFullName=Firefox
|
|
@ -0,0 +1,38 @@
|
|||
<!ENTITY browser.title "Firefox">
|
||||
<!ENTITY back.label "Back">
|
||||
<!ENTITY back.tooltip "Back">
|
||||
<!ENTITY forward.label "Forward">
|
||||
<!ENTITY forward.tooltip "Forward">
|
||||
<!ENTITY reload.label "Reload">
|
||||
<!ENTITY reload.tooltip "Reload">
|
||||
<!ENTITY stop.label "Stop">
|
||||
<!ENTITY stop.tooltip "Stop">
|
||||
<!ENTITY search.label "Search">
|
||||
<!ENTITY search.tooltip "Search">
|
||||
<!ENTITY go.label "Go">
|
||||
<!ENTITY go.tooltip "Go">
|
||||
<!ENTITY star.label "Star">
|
||||
<!ENTITY star.tooltip "Bookmark this page">
|
||||
<!ENTITY bookmarks.label "Bookmarks">
|
||||
<!ENTITY bookmarks.tooltip "View bookmarks">
|
||||
|
||||
<!ENTITY cut.label "Cut">
|
||||
<!ENTITY copy.label "Copy">
|
||||
<!ENTITY copylink.label "Copy Link Location">
|
||||
<!ENTITY paste.label "Paste">
|
||||
<!ENTITY delete.label "Delete">
|
||||
<!ENTITY selectAll.label "Select All">
|
||||
<!ENTITY noSuggestions.label "(No suggestions)">
|
||||
<!ENTITY addToDictionary.label "Add to Dictionary">
|
||||
|
||||
<!ENTITY newTab.label "New Tab">
|
||||
<!ENTITY closeTab.label "Close Tab">
|
||||
<!ENTITY switchTab.label "Switch Tab...">
|
||||
<!ENTITY addons.label "Add-ons">
|
||||
|
||||
<!ENTITY editBookmark.title "Edit Bookmark">
|
||||
<!ENTITY bookmarkURL.label "Address:">
|
||||
<!ENTITY bookmarkName.label "Name:">
|
||||
<!ENTITY removeBookmark.label "Remove Bookmark">
|
||||
<!ENTITY saveBookmark.label "Done">
|
||||
<!ENTITY closeBookmark.label "Cancel">
|
|
@ -0,0 +1,275 @@
|
|||
/* ***** 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):
|
||||
* Mark Finkle <mfinkle@mozilla.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 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 ***** */
|
||||
|
||||
/* global skin ------------------------------------------------------------- */
|
||||
@import url(chrome://global/skin/);
|
||||
|
||||
/* hildon stuff ------------------------------------------------------------ */
|
||||
popup,
|
||||
panel,
|
||||
menupopup {
|
||||
padding: 16px !important;
|
||||
}
|
||||
|
||||
menu,
|
||||
menuitem {
|
||||
padding: 0px !important;
|
||||
margin: 0px !important;
|
||||
font-family: "Nokia Sans", sans-serif !important;
|
||||
font-size: 16.75pt !important;
|
||||
}
|
||||
|
||||
.menu-text {
|
||||
padding-start-value: 0px !important;
|
||||
}
|
||||
|
||||
label,
|
||||
description,
|
||||
textbox {
|
||||
font-family: "Nokia Sans", sans-serif !important;
|
||||
font-size: 16.75pt !important;
|
||||
}
|
||||
|
||||
richlistitem {
|
||||
font-family: "Nokia Sans", sans-serif !important;
|
||||
font-size: 16.75pt !important;
|
||||
}
|
||||
|
||||
|
||||
/* toolbar ----------------------------------------------------------------- */
|
||||
toolbar {
|
||||
height: 55px;
|
||||
background-color: rgb(247, 247, 247) !important;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
}
|
||||
|
||||
toolbar[mode="icons"] .toolbarbutton-text {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
toolbar[mode="text"] .toolbarbutton-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
toolbarbutton {
|
||||
-moz-appearance: none !important;
|
||||
-moz-box-orient: vertical;
|
||||
min-width: 0px;
|
||||
padding: 5px !important;
|
||||
margin: 0px !important;
|
||||
-moz-margin-end: 0px;
|
||||
list-style-image: url("chrome://browser/skin/images/toolbar.png");
|
||||
}
|
||||
|
||||
toolbarbutton:hover,
|
||||
toolbarbutton:hover:active,
|
||||
toolbarbutton[open="true"] {
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
#tool_back {
|
||||
-moz-image-region: rect(0px 24px 24px 0px);
|
||||
/*list-style-image: url("moz-icon://stock/gtk-go-back?size=toolbar");*/
|
||||
}
|
||||
|
||||
#tool_back[disabled="true"] {
|
||||
-moz-image-region: rect(48px 24px 72px 0px);
|
||||
/*list-style-image: url("moz-icon://stock/gtk-go-back?size=toolbar&state=disabled");*/
|
||||
}
|
||||
|
||||
#tool_forward {
|
||||
-moz-image-region: rect(0px 48px 24px 24px);
|
||||
/*list-style-image: url("moz-icon://stock/gtk-go-forward?size=toolbar");*/
|
||||
}
|
||||
|
||||
#tool_forward[disabled="true"] {
|
||||
-moz-image-region: rect(48px 48px 72px 24px);
|
||||
/*list-style-image: url("moz-icon://stock/gtk-go-forward?size=toolbar&state=disabled");*/
|
||||
}
|
||||
|
||||
#tool_reload {
|
||||
-moz-image-region: rect(0px 96px 24px 72px);
|
||||
/*list-style-image: url("moz-icon://stock/gtk-refresh?size=toolbar");*/
|
||||
}
|
||||
|
||||
#tool_reload[disabled="true"] {
|
||||
-moz-image-region: rect(48px 96px 72px 72px);
|
||||
/*list-style-image: url("moz-icon://stock/gtk-refresh?size=toolbar&state=disabled");*/
|
||||
}
|
||||
|
||||
#tool_stop {
|
||||
-moz-image-region: rect(0px 72px 24px 48px);
|
||||
/*list-style-image: url("moz-icon://stock/gtk-stop?size=toolbar");*/
|
||||
}
|
||||
|
||||
#tool_stop[disabled="true"] {
|
||||
-moz-image-region: rect(48px 72px 72px 48px);
|
||||
/*list-style-image: url("moz-icon://stock/gtk-stop?size=toolbar&state=disabled");*/
|
||||
}
|
||||
|
||||
#tool_search {
|
||||
list-style-image: url(chrome://browser/skin/images/search-glass.png);
|
||||
}
|
||||
|
||||
#tool_go {
|
||||
list-style-image: url(chrome://browser/skin/images/go-arrow.png);
|
||||
}
|
||||
|
||||
#tool_star {
|
||||
list-style-image: url(chrome://browser/skin/images/star-page.png);
|
||||
}
|
||||
|
||||
#tool_star[starred="true"] {
|
||||
list-style-image: url(chrome://browser/skin/images/page-starred.png);
|
||||
}
|
||||
|
||||
#tool_bookmarks {
|
||||
-moz-image-region: rect(0px 192px 24px 168px);
|
||||
/*list-style-image: url(chrome://browser/skin/images/bookmarks.png);*/
|
||||
}
|
||||
|
||||
#urlbar-container {
|
||||
-moz-box-orient: horizontal;
|
||||
-moz-box-align: center;
|
||||
background-color: #fff;
|
||||
border: 1px solid #000;
|
||||
-moz-border-radius: 14px;
|
||||
margin: 8px 8px 8px 4px;
|
||||
}
|
||||
|
||||
/* favicon images are 16x16 */
|
||||
#urlbar-image-stack {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin: 2px 2px 2px 4px;
|
||||
}
|
||||
|
||||
/* urlbar toolbuttons images are 24x24 */
|
||||
#urlbar-icons {
|
||||
height: 26px;
|
||||
-moz-box-align: center;
|
||||
-moz-padding-end: 2px;
|
||||
}
|
||||
|
||||
#urlbar {
|
||||
-moz-appearance: none !important;
|
||||
padding: 0px !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
#urlbar > .autocomplete-history-popup {
|
||||
-moz-appearance: none !important;
|
||||
}
|
||||
|
||||
/* bookmark editor --------------------------------------------------------- */
|
||||
#bookmark_edit {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
#bookmark_star {
|
||||
list-style-image: url("chrome://browser/skin/images/starred48.png");
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
#bookmark_title {
|
||||
font-size: 130%;
|
||||
}
|
||||
|
||||
/* bookmarks picker -------------------------------------------------------- */
|
||||
#bookmark_picker {
|
||||
-moz-appearance: none !important;
|
||||
background-color: #fff;
|
||||
border: 1px solid #000 !important;
|
||||
padding: 0px !important;
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
#bookmark_list {
|
||||
-moz-appearance: none !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.bookmarklist-item {
|
||||
-moz-appearance: none !important;
|
||||
border-top: 1px dotted rgb(192, 192, 192);
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
.bookmarklist-item:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.bookmarklist-item:hover {
|
||||
background-color: Highlight;
|
||||
color: HighlightText;
|
||||
}
|
||||
|
||||
.bookmarklist-image {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.deckbrowser-tabspace {
|
||||
background-color: #9c9a9c;
|
||||
}
|
||||
|
||||
.deckbrowser-title {
|
||||
color: #fff;
|
||||
font-size: 2.5em;
|
||||
}
|
||||
|
||||
.deckbrowser-uri {
|
||||
color: lightgray;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.deckpage-container {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.deckpage-close {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
-moz-image-region: rect(0px, 16px, 16px, 0px);
|
||||
list-style-image: url(chrome://browser/skin/images/close.png);
|
||||
}
|
||||
|
||||
.deckpage-close:hover {
|
||||
-moz-image-region: rect(0px, 32px, 16px, 16px);
|
||||
}
|
После Ширина: | Высота: | Размер: 508 B |
После Ширина: | Высота: | Размер: 1.8 KiB |
После Ширина: | Высота: | Размер: 733 B |
После Ширина: | Высота: | Размер: 573 B |
После Ширина: | Высота: | Размер: 718 B |
После Ширина: | Высота: | Размер: 862 B |
После Ширина: | Высота: | Размер: 718 B |
После Ширина: | Высота: | Размер: 1.9 KiB |
После Ширина: | Высота: | Размер: 3.2 KiB |
После Ширина: | Высота: | Размер: 825 B |
После Ширина: | Высота: | Размер: 214 B |
После Ширина: | Высота: | Размер: 19 KiB |
|
@ -0,0 +1,46 @@
|
|||
# ***** 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.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# the Mozilla Foundation <http://www.mozilla.org/>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2007
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Mark Finkle <mfinkle@mozilla.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 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 *****
|
||||
|
||||
MOZ_APP_NAME=fennec
|
||||
MOZ_APP_DISPLAYNAME=Fennec
|
||||
MOZ_APP_VERSION=0.3
|
||||
|
||||
MOZ_XUL_APP=1
|
||||
MOZ_UPDATER=0
|
||||
MOZ_ENABLE_LIBXUL=1
|
||||
MOZ_NO_XPCOM_OBSOLETE=1
|
||||
MOZ_XULRUNNER=1
|
|
@ -0,0 +1,66 @@
|
|||
# ***** 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.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# the Mozilla Foundation <http://www.mozilla.org/>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2007
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Mark Finkle <mfinkle@mozilla.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 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 *****
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
NO_PKG_FILES = \
|
||||
$(MOZ_APP_NAME)-config \
|
||||
$(MOZ_APP_NAME)-bin.elf \
|
||||
regchrome* \
|
||||
regxpcom* \
|
||||
xpcshell* \
|
||||
xpidl* \
|
||||
xpt_dump* \
|
||||
xpt_link* \
|
||||
res \
|
||||
bloaturls.txt \
|
||||
run-mozilla.sh \
|
||||
nsinstall \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||
_BINPATH = /$(_APPNAME)/Contents/Resources
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
|
|
@ -0,0 +1,45 @@
|
|||
# ***** 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.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# the Mozilla Foundation <http://www.mozilla.org/>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2007
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Mark Finkle <mfinkle@mozilla.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 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 *****
|
||||
|
||||
add_makefiles "
|
||||
mobile/Makefile
|
||||
mobile/chrome/Makefile
|
||||
mobile/chrome/branding/Makefile
|
||||
mobile/chrome/content/Makefile
|
||||
mobile/app/Makefile
|
||||
mobile/installer/Makefile
|
||||
"
|