| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 MediaController* controller() const; | 265 MediaController* controller() const; |
| 266 void setController(PassRefPtrWillBeRawPtr<MediaController>); // Resets the M
ediaGroup and sets the MediaController. | 266 void setController(PassRefPtrWillBeRawPtr<MediaController>); // Resets the M
ediaGroup and sets the MediaController. |
| 267 | 267 |
| 268 void scheduleEvent(PassRefPtrWillBeRawPtr<Event>); | 268 void scheduleEvent(PassRefPtrWillBeRawPtr<Event>); |
| 269 void scheduleTimeupdateEvent(bool periodicEvent); | 269 void scheduleTimeupdateEvent(bool periodicEvent); |
| 270 | 270 |
| 271 // Returns the "effective media volume" value as specified in the HTML5 spec
. | 271 // Returns the "effective media volume" value as specified in the HTML5 spec
. |
| 272 double effectiveMediaVolume() const; | 272 double effectiveMediaVolume() const; |
| 273 | 273 |
| 274 #if ENABLE(OILPAN) | |
| 275 // Oilpan: finalization of the media element is observable from its | |
| 276 // attached MediaSource; it entering a closed state. | |
| 277 // | |
| 278 // Express that by having the MediaSource keep a weak reference | |
| 279 // to the media element and signal that it wants to be notified | |
| 280 // of destruction if it survives a GC, but the media element | |
| 281 // doesn't. | |
| 282 void setCloseMediaSourceWhenFinalizing(); | |
| 283 #endif | |
| 284 | |
| 285 // Predicates also used when dispatching wrapper creation (cf. [SpecialWrapF
or] IDL attribute usage.) | 274 // Predicates also used when dispatching wrapper creation (cf. [SpecialWrapF
or] IDL attribute usage.) |
| 286 virtual bool isHTMLAudioElement() const { return false; } | 275 virtual bool isHTMLAudioElement() const { return false; } |
| 287 virtual bool isHTMLVideoElement() const { return false; } | 276 virtual bool isHTMLVideoElement() const { return false; } |
| 288 | 277 |
| 289 protected: | 278 protected: |
| 290 HTMLMediaElement(const QualifiedName&, Document&); | 279 HTMLMediaElement(const QualifiedName&, Document&); |
| 291 virtual ~HTMLMediaElement(); | 280 virtual ~HTMLMediaElement(); |
| 292 #if ENABLE(OILPAN) | 281 #if ENABLE(OILPAN) |
| 293 void dispose(); | 282 void dispose(); |
| 294 #endif | 283 #endif |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 | 539 |
| 551 bool m_completelyLoaded : 1; | 540 bool m_completelyLoaded : 1; |
| 552 bool m_havePreparedToPlay : 1; | 541 bool m_havePreparedToPlay : 1; |
| 553 bool m_delayingLoadForPreloadNone : 1; | 542 bool m_delayingLoadForPreloadNone : 1; |
| 554 | 543 |
| 555 bool m_tracksAreReady : 1; | 544 bool m_tracksAreReady : 1; |
| 556 bool m_haveVisibleTextTrack : 1; | 545 bool m_haveVisibleTextTrack : 1; |
| 557 bool m_processingPreferenceChange : 1; | 546 bool m_processingPreferenceChange : 1; |
| 558 bool m_remoteRoutesAvailable : 1; | 547 bool m_remoteRoutesAvailable : 1; |
| 559 bool m_playingRemotely : 1; | 548 bool m_playingRemotely : 1; |
| 560 #if ENABLE(OILPAN) | |
| 561 bool m_isFinalizing : 1; | 549 bool m_isFinalizing : 1; |
| 562 bool m_closeMediaSourceWhenFinalizing : 1; | |
| 563 #endif | |
| 564 bool m_initialPlayWithoutUserGestures : 1; | 550 bool m_initialPlayWithoutUserGestures : 1; |
| 565 bool m_autoplayMediaCounted : 1; | 551 bool m_autoplayMediaCounted : 1; |
| 566 | 552 |
| 567 RefPtrWillBeMember<AudioTrackList> m_audioTracks; | 553 RefPtrWillBeMember<AudioTrackList> m_audioTracks; |
| 568 RefPtrWillBeMember<VideoTrackList> m_videoTracks; | 554 RefPtrWillBeMember<VideoTrackList> m_videoTracks; |
| 569 RefPtrWillBeMember<TextTrackList> m_textTracks; | 555 RefPtrWillBeMember<TextTrackList> m_textTracks; |
| 570 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> m_textTracksWhenResourceSele
ctionBegan; | 556 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> m_textTracksWhenResourceSele
ctionBegan; |
| 571 | 557 |
| 572 OwnPtrWillBeMember<CueTimeline> m_cueTimeline; | 558 OwnPtrWillBeMember<CueTimeline> m_cueTimeline; |
| 573 | 559 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 590 inline bool isHTMLMediaElement(const HTMLElement& element) | 576 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 591 { | 577 { |
| 592 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 578 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 593 } | 579 } |
| 594 | 580 |
| 595 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 581 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 596 | 582 |
| 597 } // namespace blink | 583 } // namespace blink |
| 598 | 584 |
| 599 #endif // HTMLMediaElement_h | 585 #endif // HTMLMediaElement_h |
| OLD | NEW |