From e8ee5dabe0d07e7a4badff722c10a34eacee2f7e Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Wed, 20 Jul 2005 00:00:55 +0000 Subject: [PATCH] Bug 278377 - add 'window' and 'help' menus to View Source windows. r=mconnor, a=bsmedberg. --- browser/base/content/viewSourceOverlay.xul | 58 +++++++++++++++++++ browser/base/jar.mn | 3 + .../viewsource/content/viewPartialSource.xul | 2 +- .../viewsource/content/viewSource.xul | 2 +- 4 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 browser/base/content/viewSourceOverlay.xul diff --git a/browser/base/content/viewSourceOverlay.xul b/browser/base/content/viewSourceOverlay.xul new file mode 100644 index 000000000000..3108b59fef28 --- /dev/null +++ b/browser/base/content/viewSourceOverlay.xul @@ -0,0 +1,58 @@ + +# ***** 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.org code. +# +# The Initial Developer of the Original Code is Asaf Romano +# Portions created by the Initial Developer are Copyright (C) 2005 +# the Initial Developer. All Rights Reserved. +# +# Contributor(s): +# Asaf Romano +# +# 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 ***** + + + + + + + + + + + + +#ifdef XP_MACOSX + + +#endif + + + + diff --git a/browser/base/jar.mn b/browser/base/jar.mn index 0342832ba0b4..e89dbb9c9f92 100644 --- a/browser/base/jar.mn +++ b/browser/base/jar.mn @@ -7,6 +7,8 @@ browser.jar: % overlay chrome://mozapps/content/extensions/extensions.xul?type=themes chrome://browser/content/extensionsManagerOverlay.xul % overlay chrome://global/content/console.xul chrome://browser/content/jsConsoleOverlay.xul #endif +% overlay chrome://global/content/viewSource.xul chrome://browser/content/viewSourceOverlay.xul +% overlay chrome://global/content/viewPartialSource.xul chrome://browser/content/viewSourceOverlay.xul * content/browser/aboutDialog.xul (content/aboutDialog.xul) * content/browser/aboutDialog.js (content/aboutDialog.js) * content/browser/aboutDialog.css (content/aboutDialog.css) @@ -40,6 +42,7 @@ browser.jar: * content/browser/extensionsManagerOverlay.xul (content/extensionsManagerOverlay.xul) * content/browser/jsConsoleOverlay.xul (content/jsConsoleOverlay.xul) #endif +* content/browser/viewSourceOverlay.xul (content/viewSourceOverlay.xul) #ifndef MOZ_USE_OFFICIAL_BRANDING % content branding %content/branding/ xpcnativewrappers=yes content/branding/about.png (branding/about.png) diff --git a/toolkit/components/viewsource/content/viewPartialSource.xul b/toolkit/components/viewsource/content/viewPartialSource.xul index 61a176aabcb4..0803d79739f3 100644 --- a/toolkit/components/viewsource/content/viewPartialSource.xul +++ b/toolkit/components/viewsource/content/viewPartialSource.xul @@ -57,7 +57,7 @@ %findBarDTD; ]> - -