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

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

Issue 993613005: Stop pushing the value of 'default' to LoadableTextTrack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/core/html/HTMLTrackElement.cpp ('k') | 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // TextTrack method. 49 // TextTrack method.
50 virtual void setMode(const AtomicString&) override; 50 virtual void setMode(const AtomicString&) override;
51 51
52 size_t trackElementIndex(); 52 size_t trackElementIndex();
53 HTMLTrackElement* trackElement() { return m_trackElement; } 53 HTMLTrackElement* trackElement() { return m_trackElement; }
54 #if !ENABLE(OILPAN) 54 #if !ENABLE(OILPAN)
55 void clearTrackElement(); 55 void clearTrackElement();
56 #endif 56 #endif
57 57
58 virtual bool isDefault() const override { return m_isDefault; } 58 virtual bool isDefault() const override;
59 virtual void setIsDefault(bool isDefault) override { m_isDefault = isDefaul t; }
60 59
61 DECLARE_VIRTUAL_TRACE(); 60 DECLARE_VIRTUAL_TRACE();
62 61
63 private: 62 private:
64 // TextTrackLoaderClient 63 // TextTrackLoaderClient
65 virtual void newCuesAvailable(TextTrackLoader*) override; 64 virtual void newCuesAvailable(TextTrackLoader*) override;
66 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) overr ide; 65 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) overr ide;
67 virtual void newRegionsAvailable(TextTrackLoader*) override; 66 virtual void newRegionsAvailable(TextTrackLoader*) override;
68 67
69 explicit LoadableTextTrack(HTMLTrackElement*); 68 explicit LoadableTextTrack(HTMLTrackElement*);
70 69
71 void loadTimerFired(Timer<LoadableTextTrack>*); 70 void loadTimerFired(Timer<LoadableTextTrack>*);
72 71
73 RawPtrWillBeMember<HTMLTrackElement> m_trackElement; 72 RawPtrWillBeMember<HTMLTrackElement> m_trackElement;
74 Timer<LoadableTextTrack> m_loadTimer; 73 Timer<LoadableTextTrack> m_loadTimer;
75 OwnPtrWillBeMember<TextTrackLoader> m_loader; 74 OwnPtrWillBeMember<TextTrackLoader> m_loader;
76 KURL m_url; 75 KURL m_url;
77 bool m_isDefault;
78 }; 76 };
79 } // namespace blink 77 } // namespace blink
80 78
81 #endif 79 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTrackElement.cpp ('k') | Source/core/html/track/LoadableTextTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698