зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
abc5ec7eb8
Коммит
4666291a49
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче