Bug 656826 part.2 Rename nsPrefService.cpp and move nsPrefService.h to public r=roc+bsmedberg

--HG--
rename : modules/libpref/src/nsPrefService.h => modules/libpref/public/Preferences.h
rename : modules/libpref/src/nsPrefService.cpp => modules/libpref/src/Preferences.cpp
This commit is contained in:
Masayuki Nakano 2011-05-23 23:54:03 +09:00
parent fdf7ec7096
commit f7fff3eea0
5 changed files with 17 additions and 7 deletions

View File

@ -45,6 +45,8 @@ include $(DEPTH)/config/autoconf.mk
MODULE = pref
GRE_MODULE = 1
EXPORTS_NAMESPACES = mozilla
SDK_XPIDLSRCS = \
nsIPrefService.idl \
nsIPrefBranch.idl \
@ -59,7 +61,11 @@ XPIDLSRCS = \
EXPORTS = \
PPrefTuple.h \
PrefTuple.h
PrefTuple.h \
$(NULL)
EXPORTS_mozilla = \
Preferences.h \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@ -37,8 +37,12 @@
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsPrefService_h__
#define nsPrefService_h__
#ifndef mozilla_Preferences_h
#define mozilla_Preferences_h
#ifndef MOZILLA_INTERNAL_API
#error "This header is only usable from within libxul (MOZILLA_INTERNAL_API)."
#endif
#include "nsIPrefService.h"
#include "nsIPrefBranch.h"
@ -87,4 +91,4 @@ private:
} // namespace mozilla
#endif // nsPrefService_h__
#endif // mozilla_Preferences_h

View File

@ -55,10 +55,10 @@ LIBXUL_LIBRARY = 1
CPPSRCS = \
nsPrefBranch.cpp \
nsPrefService.cpp \
nsPrefsFactory.cpp \
prefapi.cpp \
prefread.cpp \
Preferences.cpp \
$(NULL)
DEFINES += -DOS_ARCH=$(OS_ARCH) \

View File

@ -40,7 +40,7 @@
#include "mozilla/dom/ContentChild.h"
#include "nsXULAppAPI.h"
#include "nsPrefService.h"
#include "mozilla/Preferences.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsDirectoryServiceDefs.h"
#include "nsICategoryManager.h"

View File

@ -37,7 +37,7 @@
* ***** END LICENSE BLOCK ***** */
#include "mozilla/ModuleUtils.h"
#include "nsPrefService.h"
#include "mozilla/Preferences.h"
#include "nsPrefBranch.h"
#include "prefapi.h"