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

Side by Side Diff: Source/platform/graphics/media/InbandTextTrackPrivate.h

Issue 59913005: Remove unused TextTrack virtual functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 | « Source/core/html/track/TextTrack.cpp ('k') | Source/web/InbandTextTrackPrivateImpl.h » ('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) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 void setClient(InbandTextTrackPrivateClient* client) { m_client = client; } 47 void setClient(InbandTextTrackPrivateClient* client) { m_client = client; }
48 InbandTextTrackPrivateClient* client() { return m_client; } 48 InbandTextTrackPrivateClient* client() { return m_client; }
49 49
50 enum Mode { Disabled, Hidden, Showing }; 50 enum Mode { Disabled, Hidden, Showing };
51 virtual void setMode(Mode mode) { m_mode = mode; }; 51 virtual void setMode(Mode mode) { m_mode = mode; };
52 virtual InbandTextTrackPrivate::Mode mode() const { return m_mode; } 52 virtual InbandTextTrackPrivate::Mode mode() const { return m_mode; }
53 53
54 enum Kind { Subtitles, Captions, Descriptions, Chapters, Metadata, None }; 54 enum Kind { Subtitles, Captions, Descriptions, Chapters, Metadata, None };
55 virtual Kind kind() const { return Subtitles; } 55 virtual Kind kind() const { return Subtitles; }
56 virtual bool isClosedCaptions() const { return false; }
57 virtual bool containsOnlyForcedSubtitles() const { return false; }
58 virtual bool isMainProgramContent() const { return true; }
59 virtual bool isEasyToRead() const { return false; }
60 56
61 virtual AtomicString label() const { return emptyAtom; } 57 virtual AtomicString label() const { return emptyAtom; }
62 virtual AtomicString language() const { return emptyAtom; } 58 virtual AtomicString language() const { return emptyAtom; }
63 virtual bool isDefault() const { return false; } 59 virtual bool isDefault() const { return false; }
64 60
65 virtual int textTrackIndex() const { return 0; } 61 virtual int textTrackIndex() const { return 0; }
66 62
67 protected: 63 protected:
68 InbandTextTrackPrivate() 64 InbandTextTrackPrivate()
69 : m_client(0) 65 : m_client(0)
70 , m_mode(Disabled) 66 , m_mode(Disabled)
71 { 67 {
72 } 68 }
73 69
74 private: 70 private:
75 InbandTextTrackPrivateClient* m_client; 71 InbandTextTrackPrivateClient* m_client;
76 Mode m_mode; 72 Mode m_mode;
77 }; 73 };
78 74
79 } // namespace WebCore 75 } // namespace WebCore
80 76
81 #endif 77 #endif
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrack.cpp ('k') | Source/web/InbandTextTrackPrivateImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698