| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 virtual bool hasVideo() const { return false; } | 81 virtual bool hasVideo() const { return false; } |
| 82 bool hasAudio() const; | 82 bool hasAudio() const; |
| 83 | 83 |
| 84 bool supportsSave() const; | 84 bool supportsSave() const; |
| 85 | 85 |
| 86 WebLayer* platformLayer() const; | 86 WebLayer* platformLayer() const; |
| 87 | 87 |
| 88 enum DelayedActionType { | 88 enum DelayedActionType { |
| 89 LoadMediaResource = 1 << 0, | 89 LoadMediaResource = 1 << 0, |
| 90 LoadTextTrackResource = 1 << 1, | 90 LoadTextTrackResource = 1 << 1 |
| 91 TextTrackChangesNotification = 1 << 2 | |
| 92 }; | 91 }; |
| 93 void scheduleDelayedAction(DelayedActionType); | 92 void scheduleDelayedAction(DelayedActionType); |
| 94 | 93 |
| 95 bool hasRemoteRoutes() const { return m_remoteRoutesAvailable; } | 94 bool hasRemoteRoutes() const { return m_remoteRoutesAvailable; } |
| 96 bool isPlayingRemotely() const { return m_playingRemotely; } | 95 bool isPlayingRemotely() const { return m_playingRemotely; } |
| 97 | 96 |
| 98 // error state | 97 // error state |
| 99 MediaError* error() const; | 98 MediaError* error() const; |
| 100 | 99 |
| 101 // network state | 100 // network state |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 inline bool isHTMLMediaElement(const HTMLElement& element) | 623 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 625 { | 624 { |
| 626 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 625 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 627 } | 626 } |
| 628 | 627 |
| 629 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 628 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 630 | 629 |
| 631 } // namespace blink | 630 } // namespace blink |
| 632 | 631 |
| 633 #endif // HTMLMediaElement_h | 632 #endif // HTMLMediaElement_h |
| OLD | NEW |