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

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

Issue 525773002: Remove PosterWaitingForVideo which is redundant (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 HTMLMediaElement(const QualifiedName&, Document&); 307 HTMLMediaElement(const QualifiedName&, Document&);
308 virtual ~HTMLMediaElement(); 308 virtual ~HTMLMediaElement();
309 309
310 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 310 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
311 virtual void finishParsingChildren() OVERRIDE FINAL; 311 virtual void finishParsingChildren() OVERRIDE FINAL;
312 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 312 virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
313 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 313 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
314 314
315 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 315 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
316 316
317 enum DisplayMode { Unknown, Poster, PosterWaitingForVideo, Video }; 317 enum DisplayMode { Unknown, Poster, Video };
318 DisplayMode displayMode() const { return m_displayMode; } 318 DisplayMode displayMode() const { return m_displayMode; }
319 virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; } 319 virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; }
320 320
321 void setControllerInternal(PassRefPtrWillBeRawPtr<MediaController>); 321 void setControllerInternal(PassRefPtrWillBeRawPtr<MediaController>);
322 322
323 bool ignoreTrackDisplayUpdateRequests() const { return m_ignoreTrackDisplayU pdate > 0; } 323 bool ignoreTrackDisplayUpdateRequests() const { return m_ignoreTrackDisplayU pdate > 0; }
324 void beginIgnoringTrackDisplayUpdateRequests(); 324 void beginIgnoringTrackDisplayUpdateRequests();
325 void endIgnoringTrackDisplayUpdateRequests(); 325 void endIgnoringTrackDisplayUpdateRequests();
326 326
327 private: 327 private:
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 inline bool isHTMLMediaElement(const HTMLElement& element) 626 inline bool isHTMLMediaElement(const HTMLElement& element)
627 { 627 {
628 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 628 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
629 } 629 }
630 630
631 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 631 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
632 632
633 } //namespace 633 } //namespace
634 634
635 #endif 635 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLVideoElement.h » ('j') | Source/core/html/HTMLVideoElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698