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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 AudioSourceProvider* audioSourceProvider(); | 274 AudioSourceProvider* audioSourceProvider(); |
275 #endif | 275 #endif |
276 | 276 |
277 enum InvalidURLAction { DoNothing, Complain }; | 277 enum InvalidURLAction { DoNothing, Complain }; |
278 bool isSafeToLoadURL(const KURL&, InvalidURLAction); | 278 bool isSafeToLoadURL(const KURL&, InvalidURLAction); |
279 | 279 |
280 MediaController* controller() const; | 280 MediaController* controller() const; |
281 void setController(PassRefPtr<MediaController>); // Resets the MediaGroup an
d sets the MediaController. | 281 void setController(PassRefPtr<MediaController>); // Resets the MediaGroup an
d sets the MediaController. |
282 | 282 |
283 protected: | 283 protected: |
284 HTMLMediaElement(const QualifiedName&, Document&, bool); | 284 HTMLMediaElement(const QualifiedName&, Document&); |
285 virtual ~HTMLMediaElement(); | 285 virtual ~HTMLMediaElement(); |
286 | 286 |
287 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 287 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
288 virtual void finishParsingChildren() OVERRIDE FINAL; | 288 virtual void finishParsingChildren() OVERRIDE FINAL; |
289 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 289 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
290 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 290 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
291 | 291 |
292 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; | 292 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; |
293 | 293 |
294 enum DisplayMode { Unknown, None, Poster, PosterWaitingForVideo, Video }; | 294 enum DisplayMode { Unknown, None, Poster, PosterWaitingForVideo, Video }; |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 // time has not changed since sending an "ended" event | 540 // time has not changed since sending an "ended" event |
541 bool m_sentEndEvent : 1; | 541 bool m_sentEndEvent : 1; |
542 | 542 |
543 bool m_pausedInternal : 1; | 543 bool m_pausedInternal : 1; |
544 | 544 |
545 bool m_closedCaptionsVisible : 1; | 545 bool m_closedCaptionsVisible : 1; |
546 | 546 |
547 bool m_loadInitiatedByUserGesture : 1; | 547 bool m_loadInitiatedByUserGesture : 1; |
548 bool m_completelyLoaded : 1; | 548 bool m_completelyLoaded : 1; |
549 bool m_havePreparedToPlay : 1; | 549 bool m_havePreparedToPlay : 1; |
550 bool m_parsingInProgress : 1; | |
551 | 550 |
552 bool m_tracksAreReady : 1; | 551 bool m_tracksAreReady : 1; |
553 bool m_haveVisibleTextTrack : 1; | 552 bool m_haveVisibleTextTrack : 1; |
554 bool m_processingPreferenceChange : 1; | 553 bool m_processingPreferenceChange : 1; |
555 double m_lastTextTrackUpdateTime; | 554 double m_lastTextTrackUpdateTime; |
556 | 555 |
557 RefPtr<TextTrackList> m_textTracks; | 556 RefPtr<TextTrackList> m_textTracks; |
558 Vector<RefPtr<TextTrack> > m_textTracksWhenResourceSelectionBegan; | 557 Vector<RefPtr<TextTrack> > m_textTracksWhenResourceSelectionBegan; |
559 | 558 |
560 CueIntervalTree m_cueTree; | 559 CueIntervalTree m_cueTree; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 inline bool isHTMLMediaElement(const Node& node) | 602 inline bool isHTMLMediaElement(const Node& node) |
604 { | 603 { |
605 return node.isElementNode() && toElement(node).isMediaElement(); | 604 return node.isElementNode() && toElement(node).isMediaElement(); |
606 } | 605 } |
607 | 606 |
608 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 607 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
609 | 608 |
610 } //namespace | 609 } //namespace |
611 | 610 |
612 #endif | 611 #endif |
OLD | NEW |