зеркало из https://github.com/mozilla/gecko-dev.git
Bug 380674, Move nsTObserverArray from content/* to xpcom/*, r=bsmedberg
This commit is contained in:
Родитель
276bc7a680
Коммит
2390b0efe2
|
@ -95,7 +95,6 @@ EXPORTS = \
|
|||
nsStubImageDecoderObserver.h \
|
||||
nsStubMutationObserver.h \
|
||||
nsTextFragment.h \
|
||||
nsTObserverArray.h \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
|
@ -130,7 +129,7 @@ CPPSRCS = \
|
|||
nsGkAtoms.cpp \
|
||||
nsHTMLContentSerializer.cpp \
|
||||
nsImageLoadingContent.cpp \
|
||||
nsLineBreaker.cpp \
|
||||
nsLineBreaker.cpp \
|
||||
nsLoadListenerProxy.cpp \
|
||||
nsMappedAttributes.cpp \
|
||||
nsNameSpaceManager.cpp \
|
||||
|
@ -153,7 +152,6 @@ CPPSRCS = \
|
|||
nsSyncLoadService.cpp \
|
||||
nsTextFragment.cpp \
|
||||
nsTextNode.cpp \
|
||||
nsTObserverArray.cpp \
|
||||
nsTreeWalker.cpp \
|
||||
nsXMLContentSerializer.cpp \
|
||||
nsXMLHttpRequest.cpp \
|
||||
|
|
|
@ -109,6 +109,7 @@ SDK_HEADERS = \
|
|||
nsServiceManagerUtils.h \
|
||||
nsVersionComparator.h \
|
||||
nsIClassInfoImpl.h \
|
||||
nsTObserverArray.h \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS = \
|
||||
|
|
0
content/base/src/nsTObserverArray.cpp → xpcom/glue/nsTObserverArray.cpp
Executable file → Normal file
0
content/base/src/nsTObserverArray.cpp → xpcom/glue/nsTObserverArray.cpp
Executable file → Normal file
|
@ -40,7 +40,7 @@
|
|||
|
||||
#include "nsVoidArray.h"
|
||||
|
||||
class nsTObserverArray_base {
|
||||
class NS_COM_GLUE nsTObserverArray_base {
|
||||
public:
|
||||
class Iterator_base;
|
||||
friend class Iterator_base;
|
||||
|
@ -169,7 +169,7 @@ class nsTObserverArray : public nsTObserverArray_base {
|
|||
return mObservers.Count() == 0;
|
||||
}
|
||||
|
||||
T* SafeObserverAt(PRInt32 aIndex) {
|
||||
T* SafeObserverAt(PRInt32 aIndex) const {
|
||||
return NS_STATIC_CAST(T*, mObservers.SafeElementAt(aIndex));
|
||||
}
|
||||
|
|
@ -63,6 +63,7 @@ XPCOM_GLUE_SRC_LCPPSRCS = \
|
|||
nsVoidArray.cpp \
|
||||
nsTArray.cpp \
|
||||
nsThreadUtils.cpp \
|
||||
nsTObserverArray.cpp \
|
||||
$(NULL)
|
||||
|
||||
XPCOM_GLUE_SRC_CPPSRCS = $(addprefix $(topsrcdir)/xpcom/glue/, $(XPCOM_GLUE_SRC_LCPPSRCS))
|
||||
|
|
Загрузка…
Ссылка в новой задаче