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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |