OLD | NEW |
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 Loading... |
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 |
OLD | NEW |