Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: Source/core/html/HTMLMediaElement.h

Issue 142413014: Use isFinishedParsingChildren() in HTMLMediaElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLAudioElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/HTMLAudioElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698