Bug 864035 - Don't use a forward declaration for mozilla::dom::SpeechRecognition for use with a WeakPtr. r=smaug

This commit is contained in:
Mike Hommey 2013-05-18 09:51:54 +02:00
parent 0745f908eb
commit 5638e38904
3 changed files with 10 additions and 10 deletions

View File

@ -16,6 +16,7 @@ XPIDL_SOURCES = [
TEST_DIRS += ['test']
EXPORTS.mozilla.dom += [
'EnableWebSpeechRecognitionCheck.h',
'FakeSpeechRecognitionService.h',
'SpeechGrammar.h',
'SpeechGrammarList.h',
@ -24,5 +25,8 @@ EXPORTS.mozilla.dom += [
'SpeechRecognitionResult.h',
'SpeechRecognitionResultList.h',
'SpeechStreamListener.h',
'endpointer.h',
'energy_endpointer.h',
'energy_endpointer_params.h',
]

View File

@ -8,16 +8,7 @@
#include "nsCOMPtr.h"
#include "nsIObserver.h"
// nsISpeechRecognitionService needs these declarations
namespace mozilla {
class AudioSegment;
namespace dom {
class SpeechRecognition;
class SpeechRecognitionResultList;
}
}
#include "SpeechRecognition.h"
#include "nsISpeechRecognitionService.h"

View File

@ -2,6 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_dom_MediaManager_h
#define mozilla_dom_MediaManager_h
#include "MediaEngine.h"
#include "mozilla/dom/ContentChild.h"
#include "mozilla/Services.h"
@ -493,3 +496,5 @@ private:
};
} // namespace mozilla
#endif /* mozilla_dom_MediaManager_h */