Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: Source/core/html/track/LoadableTextTrack.h

Issue 25798003: Enable WebVTT regions for runtime testing, updated tests and minor fixes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 virtual bool isDefault() const OVERRIDE { return m_isDefault; } 61 virtual bool isDefault() const OVERRIDE { return m_isDefault; }
62 virtual void setIsDefault(bool isDefault) OVERRIDE { m_isDefault = isDefaul t; } 62 virtual void setIsDefault(bool isDefault) OVERRIDE { m_isDefault = isDefaul t; }
63 63
64 private: 64 private:
65 // TextTrackLoaderClient 65 // TextTrackLoaderClient
66 virtual bool shouldLoadCues(TextTrackLoader*) { return true; } 66 virtual bool shouldLoadCues(TextTrackLoader*) { return true; }
67 virtual void newCuesAvailable(TextTrackLoader*); 67 virtual void newCuesAvailable(TextTrackLoader*);
68 virtual void cueLoadingStarted(TextTrackLoader*); 68 virtual void cueLoadingStarted(TextTrackLoader*);
69 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed); 69 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed);
70 #if ENABLE(WEBVTT_REGIONS)
71 virtual void newRegionsAvailable(TextTrackLoader*); 70 virtual void newRegionsAvailable(TextTrackLoader*);
72 #endif
73 71
74 LoadableTextTrack(HTMLTrackElement*, const String& kind, const String& label , const String& language); 72 LoadableTextTrack(HTMLTrackElement*, const String& kind, const String& label , const String& language);
75 73
76 void loadTimerFired(Timer<LoadableTextTrack>*); 74 void loadTimerFired(Timer<LoadableTextTrack>*);
77 75
78 HTMLTrackElement* m_trackElement; 76 HTMLTrackElement* m_trackElement;
79 Timer<LoadableTextTrack> m_loadTimer; 77 Timer<LoadableTextTrack> m_loadTimer;
80 OwnPtr<TextTrackLoader> m_loader; 78 OwnPtr<TextTrackLoader> m_loader;
81 KURL m_url; 79 KURL m_url;
82 bool m_isDefault; 80 bool m_isDefault;
83 }; 81 };
84 } // namespace WebCore 82 } // namespace WebCore
85 83
86 #endif 84 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.cpp ('k') | Source/core/html/track/LoadableTextTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698