Bug 1008322: Guard webspeech-specific parts of ShimInterfaceInfo.cpp to fix --disable-webspeech builds. r=ehsan

This commit is contained in:
Daniel Holbert 2014-05-09 11:34:36 -07:00
parent 627c4acee4
commit 76f1b18803

View File

@ -148,8 +148,10 @@
#include "nsIDOMSerializer.h"
#include "nsIDOMSimpleGestureEvent.h"
#include "nsIDOMSmartCardEvent.h"
#ifdef MOZ_WEBSPEECH
#include "nsIDOMSpeechRecognitionEvent.h"
#include "nsIDOMSpeechSynthesisEvent.h"
#endif // MOZ_WEBSPEECH
#include "nsIDOMStorageEvent.h"
#include "nsIDOMStyleSheet.h"
#include "nsIDOMStyleSheetList.h"
@ -317,8 +319,10 @@
#include "mozilla/dom/ScrollAreaEventBinding.h"
#include "mozilla/dom/SimpleGestureEventBinding.h"
#include "mozilla/dom/SmartCardEventBinding.h"
#ifdef MOZ_WEBSPEECH
#include "mozilla/dom/SpeechRecognitionEventBinding.h"
#include "mozilla/dom/SpeechSynthesisEventBinding.h"
#endif // MOZ_WEBSPEECH
#include "mozilla/dom/StorageEventBinding.h"
#include "mozilla/dom/StyleSheetBinding.h"
#include "mozilla/dom/StyleSheetListBinding.h"
@ -502,8 +506,10 @@ const ComponentsInterfaceShimEntry kComponentsInterfaceShimMap[] =
DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIDOMSerializer, XMLSerializer),
DEFINE_SHIM(SimpleGestureEvent),
DEFINE_SHIM(SmartCardEvent),
#ifdef MOZ_WEBSPEECH
DEFINE_SHIM(SpeechRecognitionEvent),
DEFINE_SHIM(SpeechSynthesisEvent),
#endif // MOZ_WEBSPEECH
DEFINE_SHIM(StorageEvent),
DEFINE_SHIM(StyleSheet),
DEFINE_SHIM(StyleSheetList),