OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual void reportedError() = 0; | 63 virtual void reportedError() = 0; |
64 virtual void loadedMetadata() = 0; | 64 virtual void loadedMetadata() = 0; |
65 virtual void changedClosedCaptionsVisibility() = 0; | 65 virtual void changedClosedCaptionsVisibility() = 0; |
66 | 66 |
67 virtual void showVolumeSlider() = 0; | 67 virtual void showVolumeSlider() = 0; |
68 virtual void updateTimeDisplay() = 0; | 68 virtual void updateTimeDisplay() = 0; |
69 virtual void updateStatusDisplay() = 0; | 69 virtual void updateStatusDisplay() = 0; |
70 | 70 |
71 virtual bool shouldHideControls() = 0; | 71 virtual bool shouldHideControls() = 0; |
72 | 72 |
| 73 virtual void bufferingProgressed() = 0; |
| 74 |
73 protected: | 75 protected: |
74 MediaControls(HTMLMediaElement*); | 76 MediaControls(HTMLMediaElement*); |
75 | 77 |
76 private: | 78 private: |
77 MediaControls(); | 79 MediaControls(); |
78 | 80 |
79 virtual bool isMediaControls() const { return true; } | 81 virtual bool isMediaControls() const { return true; } |
80 }; | 82 }; |
81 | 83 |
82 inline MediaControls* toMediaControls(Node* node) | 84 inline MediaControls* toMediaControls(Node* node) |
83 { | 85 { |
84 ASSERT(!node || node->isMediaControls()); | 86 ASSERT(!node || node->isMediaControls()); |
85 return static_cast<MediaControls*>(node); | 87 return static_cast<MediaControls*>(node); |
86 } | 88 } |
87 | 89 |
88 // This will catch anyone doing an unneccessary cast. | 90 // This will catch anyone doing an unneccessary cast. |
89 void toMediaControls(const MediaControls*); | 91 void toMediaControls(const MediaControls*); |
90 | 92 |
91 } | 93 } |
92 | 94 |
93 #endif | 95 #endif |
94 | 96 |
95 #endif | 97 #endif |
OLD | NEW |