| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 virtual void changedClosedCaptionsVisibility() = 0; | 66 virtual void changedClosedCaptionsVisibility() = 0; |
| 67 | 67 |
| 68 virtual void showVolumeSlider() = 0; | 68 virtual void showVolumeSlider() = 0; |
| 69 virtual void updateTimeDisplay() = 0; | 69 virtual void updateTimeDisplay() = 0; |
| 70 | 70 |
| 71 protected: | 71 protected: |
| 72 MediaControls(HTMLMediaElement*); | 72 MediaControls(HTMLMediaElement*); |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 MediaControls(); | 75 MediaControls(); |
| 76 |
| 77 virtual bool isMediaControls() const { return true; } |
| 76 }; | 78 }; |
| 77 | 79 |
| 80 inline MediaControls* toMediaControls(Node* node) |
| 81 { |
| 82 ASSERT(!node || node->isMediaControls()); |
| 83 return static_cast<MediaControls*>(node); |
| 84 } |
| 85 |
| 86 // This will catch anyone doing an unneccessary cast. |
| 87 void toMediaControls(const Node*); |
| 88 |
| 78 } | 89 } |
| 79 | 90 |
| 80 #endif | 91 #endif |
| 81 | 92 |
| 82 #endif | 93 #endif |
| OLD | NEW |