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

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

Issue 53533003: Remove TextTrackLoaderClient::shouldLoadCues and ::cueLoadingStarted (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@fetchRawResourceNull
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | Source/core/html/track/LoadableTextTrack.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void clearClient(); 56 virtual void clearClient();
57 57
58 size_t trackElementIndex(); 58 size_t trackElementIndex();
59 HTMLTrackElement* trackElement() { return m_trackElement; } 59 HTMLTrackElement* trackElement() { return m_trackElement; }
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 void newCuesAvailable(TextTrackLoader*) OVERRIDE;
67 virtual void newCuesAvailable(TextTrackLoader*); 67 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) OVERR IDE;
68 virtual void cueLoadingStarted(TextTrackLoader*); 68 virtual void newRegionsAvailable(TextTrackLoader*) OVERRIDE;
69 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed);
70 virtual void newRegionsAvailable(TextTrackLoader*);
71 69
72 LoadableTextTrack(HTMLTrackElement*, const String& kind, const String& label , const String& language); 70 LoadableTextTrack(HTMLTrackElement*, const String& kind, const String& label , const String& language);
73 71
74 void loadTimerFired(Timer<LoadableTextTrack>*); 72 void loadTimerFired(Timer<LoadableTextTrack>*);
75 73
76 HTMLTrackElement* m_trackElement; 74 HTMLTrackElement* m_trackElement;
77 Timer<LoadableTextTrack> m_loadTimer; 75 Timer<LoadableTextTrack> m_loadTimer;
78 OwnPtr<TextTrackLoader> m_loader; 76 OwnPtr<TextTrackLoader> m_loader;
79 KURL m_url; 77 KURL m_url;
80 bool m_isDefault; 78 bool m_isDefault;
81 }; 79 };
82 } // namespace WebCore 80 } // namespace WebCore
83 81
84 #endif 82 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/track/LoadableTextTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698