Bug 881978 - Make WebVTTLoadListener callbacks private. r=rillian

WebVTTLoadListener::OnParsedCue() and WebVTTLoadListener::OnReportError() are
for private use and should not be exposed publicly.
This commit is contained in:
Caitlin Potter 2013-06-11 21:12:39 -04:00
Родитель abc5ec7eb8
Коммит 4666291a49
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -60,8 +60,7 @@ class WebVTTLoadListener MOZ_FINAL : public nsIStreamListener,
public:
WebVTTLoadListener(HTMLTrackElement* aElement);
~WebVTTLoadListener();
void OnParsedCue(webvtt_cue* aCue);
int OnReportError(uint32_t aLine, uint32_t aCol, webvtt_error aError);
// Loads the libwebvtt parser. Must call this function in order to the
// WebVTTLoadListener to be ready to accept data.
nsresult LoadResource();
@ -74,6 +73,9 @@ private:
nsRefPtr<HTMLTrackElement> mElement;
nsAutoRef<webvtt_parser_t> mParser;
void OnParsedCue(webvtt_cue* aCue);
int OnReportError(uint32_t aLine, uint32_t aCol, webvtt_error aError);
static void WEBVTT_CALLBACK OnParsedCueWebVTTCallBack(void* aUserData,
webvtt_cue* aCue);
static int WEBVTT_CALLBACK OnReportErrorWebVTTCallBack(void* aUserData,