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

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

Issue 60633004: Remove WebInbandTextTrack::isDefault() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@unusedtrack
Patch Set: remove more 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/HTMLTrackElement.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 56
57 virtual AtomicString label() const { return emptyAtom; } 57 virtual AtomicString label() const { return emptyAtom; }
58 virtual AtomicString language() const { return emptyAtom; } 58 virtual AtomicString language() const { return emptyAtom; }
59 virtual bool isDefault() const { return false; }
60 59
61 virtual int textTrackIndex() const { return 0; } 60 virtual int textTrackIndex() const { return 0; }
62 61
63 protected: 62 protected:
64 InbandTextTrackPrivate() 63 InbandTextTrackPrivate()
65 : m_client(0) 64 : m_client(0)
66 , m_mode(Disabled) 65 , m_mode(Disabled)
67 { 66 {
68 } 67 }
69 68
70 private: 69 private:
71 InbandTextTrackPrivateClient* m_client; 70 InbandTextTrackPrivateClient* m_client;
72 Mode m_mode; 71 Mode m_mode;
73 }; 72 };
74 73
75 } // namespace WebCore 74 } // namespace WebCore
76 75
77 #endif 76 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTrackElement.cpp ('k') | Source/web/InbandTextTrackPrivateImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698