зеркало из https://github.com/mozilla/gecko-dev.git
Bug 531256 Move nsBrowserStatusFilter from xpfe/browser to toolkit/components/statusfilter. r=dtownsend,sr=Neil
--HG-- rename : xpfe/browser/src/Makefile.in => toolkit/components/statusfilter/Makefile.in rename : xpfe/browser/src/nsBrowserStatusFilter.cpp => toolkit/components/statusfilter/nsBrowserStatusFilter.cpp rename : xpfe/browser/src/nsBrowserStatusFilter.h => toolkit/components/statusfilter/nsBrowserStatusFilter.h
This commit is contained in:
Родитель
99c10eb77f
Коммит
a30470de12
|
@ -63,6 +63,7 @@ PARALLEL_DIRS += \
|
|||
passwordmgr \
|
||||
places \
|
||||
startup \
|
||||
statusfilter \
|
||||
typeaheadfind \
|
||||
urlformatter \
|
||||
viewconfig \
|
||||
|
|
|
@ -65,10 +65,11 @@ include $(topsrcdir)/config/config.mk
|
|||
|
||||
LOCAL_INCLUDES = \
|
||||
-I$(srcdir)/../downloads/src \
|
||||
-I$(srcdir)/../feeds/src \
|
||||
-I$(srcdir)/../startup/src \
|
||||
-I$(srcdir)/../statusfilter \
|
||||
-I$(srcdir)/../typeaheadfind/src \
|
||||
-I$(srcdir)/../url-classifier/src \
|
||||
-I$(srcdir)/../feeds/src \
|
||||
$(NULL)
|
||||
|
||||
ifdef ALERTS_SERVICE
|
||||
|
@ -78,7 +79,9 @@ LOCAL_INCLUDES += \
|
|||
endif
|
||||
|
||||
SHARED_LIBRARY_LIBS = \
|
||||
../typeaheadfind/src/$(LIB_PREFIX)fastfind_s.$(LIB_SUFFIX) \
|
||||
../startup/src/$(LIB_PREFIX)appstartup_s.$(LIB_SUFFIX) \
|
||||
../statusfilter/$(LIB_PREFIX)mozbrwsr_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
ifndef MOZ_DISABLE_PARENTAL_CONTROLS
|
||||
|
@ -111,7 +114,6 @@ ifdef MOZ_FEEDS
|
|||
SHARED_LIBRARY_LIBS += ../feeds/src/$(LIB_PREFIX)feed_s.$(LIB_SUFFIX)
|
||||
endif
|
||||
|
||||
SHARED_LIBRARY_LIBS += ../typeaheadfind/src/$(LIB_PREFIX)fastfind_s.$(LIB_SUFFIX)
|
||||
EXTRA_DSO_LIBS = gkgfx
|
||||
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
|
|
|
@ -68,6 +68,8 @@
|
|||
#include "nsScriptableUnescapeHTML.h"
|
||||
#endif
|
||||
|
||||
#include "nsBrowserStatusFilter.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsAppStartup, Init)
|
||||
|
@ -118,6 +120,8 @@ nsUrlClassifierDBServiceConstructor(nsISupports *aOuter, REFNSIID aIID,
|
|||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsScriptableUnescapeHTML)
|
||||
#endif
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBrowserStatusFilter)
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static const nsModuleComponentInfo components[] =
|
||||
|
@ -186,6 +190,10 @@ static const nsModuleComponentInfo components[] =
|
|||
NS_SCRIPTABLEUNESCAPEHTML_CONTRACTID,
|
||||
nsScriptableUnescapeHTMLConstructor },
|
||||
#endif
|
||||
{ NS_BROWSERSTATUSFILTER_CLASSNAME,
|
||||
NS_BROWSERSTATUSFILTER_CID,
|
||||
NS_BROWSERSTATUSFILTER_CONTRACTID,
|
||||
nsBrowserStatusFilterConstructor },
|
||||
};
|
||||
|
||||
NS_IMPL_NSGETMODULE(nsToolkitCompsModule, components)
|
||||
|
|
|
@ -592,8 +592,6 @@ MAKEFILES_xpfe="
|
|||
widget/src/xremoteclient/Makefile
|
||||
toolkit/components/remote/Makefile
|
||||
xpfe/Makefile
|
||||
xpfe/browser/Makefile
|
||||
xpfe/browser/src/Makefile
|
||||
xpfe/components/Makefile
|
||||
xpfe/components/directory/Makefile
|
||||
xpfe/components/find/Makefile
|
||||
|
@ -736,6 +734,7 @@ MAKEFILES_xulapp="
|
|||
toolkit/components/startup/Makefile
|
||||
toolkit/components/startup/public/Makefile
|
||||
toolkit/components/startup/src/Makefile
|
||||
toolkit/components/statusfilter/Makefile
|
||||
toolkit/components/typeaheadfind/Makefile
|
||||
toolkit/components/typeaheadfind/public/Makefile
|
||||
toolkit/components/typeaheadfind/src/Makefile
|
||||
|
|
|
@ -44,10 +44,6 @@ include $(DEPTH)/config/autoconf.mk
|
|||
|
||||
MODULE = browser
|
||||
|
||||
ifndef MOZ_SUNBIRD
|
||||
DIRS += browser
|
||||
endif
|
||||
|
||||
# Because of our great use of encapsulation, there are
|
||||
# some header file in xpfe/components that are required
|
||||
# by layout and the dom. This MOZ_XPFE_COMPONENTS, if
|
||||
|
|
|
@ -1,49 +0,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.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1998
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either of 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
|
||||
|
||||
MODULE = browser
|
||||
|
||||
DIRS = src
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
|
@ -83,8 +83,4 @@ DIRS += \
|
|||
DIRS += build
|
||||
endif
|
||||
|
||||
ifdef MOZ_THUNDERBIRD
|
||||
DIRS += build
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -54,14 +54,9 @@ CPPSRCS = nsModule.cpp
|
|||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
ifndef MOZ_THUNDERBIRD
|
||||
# General includes
|
||||
SHARED_LIBRARY_LIBS += ../directory/$(LIB_PREFIX)directory_s.$(LIB_SUFFIX)
|
||||
LOCAL_INCLUDES += -I$(srcdir)/../directory
|
||||
endif
|
||||
|
||||
SHARED_LIBRARY_LIBS += ../../browser/src/$(LIB_PREFIX)mozbrwsr_s.$(LIB_SUFFIX)
|
||||
LOCAL_INCLUDES += -I$(srcdir)/../../browser/src
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32)
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
#include "nsICategoryManager.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#ifndef MOZ_THUNDERBIRD
|
||||
#include "nsDirectoryViewer.h"
|
||||
#ifdef MOZ_RDF
|
||||
#include "rdf.h"
|
||||
|
@ -47,21 +46,13 @@
|
|||
#endif
|
||||
#include "nsCURILoader.h"
|
||||
#include "nsXPFEComponentsCID.h"
|
||||
#endif
|
||||
|
||||
#include "nsBrowserStatusFilter.h"
|
||||
|
||||
#ifndef MOZ_THUNDERBIRD
|
||||
#ifdef MOZ_RDF
|
||||
// Factory constructors
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsHTTPIndex, Init)
|
||||
#endif
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDirectoryViewerFactory)
|
||||
#endif
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBrowserStatusFilter)
|
||||
|
||||
#ifndef MOZ_THUNDERBIRD
|
||||
static NS_METHOD
|
||||
RegisterProc(nsIComponentManager *aCompMgr,
|
||||
nsIFile *aPath,
|
||||
|
@ -94,10 +85,8 @@ UnregisterProc(nsIComponentManager *aCompMgr,
|
|||
return catman->DeleteCategoryEntry("Gecko-Content-Viewers",
|
||||
"application/http-index-format", PR_TRUE);
|
||||
}
|
||||
#endif
|
||||
|
||||
static const nsModuleComponentInfo components[] = {
|
||||
#ifndef MOZ_THUNDERBIRD
|
||||
{ "Directory Viewer", NS_DIRECTORYVIEWERFACTORY_CID,
|
||||
"@mozilla.org/xpfe/http-index-format-factory-constructor",
|
||||
nsDirectoryViewerFactoryConstructor, RegisterProc, UnregisterProc },
|
||||
|
@ -107,12 +96,6 @@ static const nsModuleComponentInfo components[] = {
|
|||
{ "Directory Viewer", NS_HTTPINDEX_SERVICE_CID, NS_HTTPINDEX_DATASOURCE_CONTRACTID,
|
||||
nsHTTPIndexConstructor },
|
||||
#endif
|
||||
#endif
|
||||
{ NS_BROWSERSTATUSFILTER_CLASSNAME,
|
||||
NS_BROWSERSTATUSFILTER_CID,
|
||||
NS_BROWSERSTATUSFILTER_CONTRACTID,
|
||||
nsBrowserStatusFilterConstructor
|
||||
},
|
||||
};
|
||||
|
||||
NS_IMPL_NSGETMODULE(application, components)
|
||||
|
|
Загрузка…
Ссылка в новой задаче