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

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

Issue 25516002: Remove npr.org quirk in HTMLMediaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 enum InvalidURLAction { DoNothing, Complain }; 284 enum InvalidURLAction { DoNothing, Complain };
285 bool isSafeToLoadURL(const KURL&, InvalidURLAction); 285 bool isSafeToLoadURL(const KURL&, InvalidURLAction);
286 286
287 const String& mediaGroup() const; 287 const String& mediaGroup() const;
288 void setMediaGroup(const String&); 288 void setMediaGroup(const String&);
289 289
290 MediaController* controller() const; 290 MediaController* controller() const;
291 void setController(PassRefPtr<MediaController>); 291 void setController(PassRefPtr<MediaController>);
292 292
293 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE;
294
295 protected: 293 protected:
296 HTMLMediaElement(const QualifiedName&, Document&, bool); 294 HTMLMediaElement(const QualifiedName&, Document&, bool);
297 virtual ~HTMLMediaElement(); 295 virtual ~HTMLMediaElement();
298 296
299 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 297 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
300 virtual void finishParsingChildren(); 298 virtual void finishParsingChildren();
301 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 299 virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
302 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 300 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
303 301
304 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; 302 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE;
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 bool m_sentEndEvent : 1; 540 bool m_sentEndEvent : 1;
543 541
544 bool m_pausedInternal : 1; 542 bool m_pausedInternal : 1;
545 543
546 // Not all media engines provide enough information about a file to be able to 544 // Not all media engines provide enough information about a file to be able to
547 // support progress events so setting m_sendProgressEvents disables them 545 // support progress events so setting m_sendProgressEvents disables them
548 bool m_sendProgressEvents : 1; 546 bool m_sendProgressEvents : 1;
549 547
550 bool m_closedCaptionsVisible : 1; 548 bool m_closedCaptionsVisible : 1;
551 549
552 bool m_dispatchingCanPlayEvent : 1;
553 bool m_loadInitiatedByUserGesture : 1; 550 bool m_loadInitiatedByUserGesture : 1;
554 bool m_completelyLoaded : 1; 551 bool m_completelyLoaded : 1;
555 bool m_havePreparedToPlay : 1; 552 bool m_havePreparedToPlay : 1;
556 bool m_parsingInProgress : 1; 553 bool m_parsingInProgress : 1;
557 554
558 bool m_tracksAreReady : 1; 555 bool m_tracksAreReady : 1;
559 bool m_haveVisibleTextTrack : 1; 556 bool m_haveVisibleTextTrack : 1;
560 bool m_processingPreferenceChange : 1; 557 bool m_processingPreferenceChange : 1;
561 double m_lastTextTrackUpdateTime; 558 double m_lastTextTrackUpdateTime;
562 559
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 609
613 inline HTMLMediaElement* toHTMLMediaElement(Node* node) 610 inline HTMLMediaElement* toHTMLMediaElement(Node* node)
614 { 611 {
615 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); 612 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node));
616 return static_cast<HTMLMediaElement*>(node); 613 return static_cast<HTMLMediaElement*>(node);
617 } 614 }
618 615
619 } //namespace 616 } //namespace
620 617
621 #endif 618 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698