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

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

Issue 60203008: Remove the mode getter/setter for in-band text tracks (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/AssertMatchingEnums.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) 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 29 matching lines...) Expand all
40 public: 40 public:
41 static PassRefPtr<InbandTextTrackPrivate> create() 41 static PassRefPtr<InbandTextTrackPrivate> create()
42 { 42 {
43 return adoptRef(new InbandTextTrackPrivate()); 43 return adoptRef(new InbandTextTrackPrivate());
44 } 44 }
45 virtual ~InbandTextTrackPrivate() { } 45 virtual ~InbandTextTrackPrivate() { }
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 };
51 virtual void setMode(Mode mode) { m_mode = mode; };
52 virtual InbandTextTrackPrivate::Mode mode() const { return m_mode; }
53
54 enum Kind { Subtitles, Captions, Descriptions, Chapters, Metadata, None }; 50 enum Kind { Subtitles, Captions, Descriptions, Chapters, Metadata, None };
55 virtual Kind kind() const { return Subtitles; } 51 virtual Kind kind() const { return Subtitles; }
56 52
57 virtual AtomicString label() const { return emptyAtom; } 53 virtual AtomicString label() const { return emptyAtom; }
58 virtual AtomicString language() const { return emptyAtom; } 54 virtual AtomicString language() const { return emptyAtom; }
59 55
60 virtual int textTrackIndex() const { return 0; } 56 virtual int textTrackIndex() const { return 0; }
61 57
62 protected: 58 protected:
63 InbandTextTrackPrivate() 59 InbandTextTrackPrivate()
64 : m_client(0) 60 : m_client(0)
65 , m_mode(Disabled)
66 { 61 {
67 } 62 }
68 63
69 private: 64 private:
70 InbandTextTrackPrivateClient* m_client; 65 InbandTextTrackPrivateClient* m_client;
71 Mode m_mode;
72 }; 66 };
73 67
74 } // namespace WebCore 68 } // namespace WebCore
75 69
76 #endif 70 #endif
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrack.cpp ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698