| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 bool shouldDisplayPosterImage() const { return displayMode() == Poster || di
splayMode() == PosterWaitingForVideo; } | 69 bool shouldDisplayPosterImage() const { return displayMode() == Poster || di
splayMode() == PosterWaitingForVideo; } |
| 70 | 70 |
| 71 KURL posterImageURL() const; | 71 KURL posterImageURL() const; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 HTMLVideoElement(const QualifiedName&, Document&, bool); | 74 HTMLVideoElement(const QualifiedName&, Document&, bool); |
| 75 | 75 |
| 76 virtual bool rendererIsNeeded(const RenderStyle&); | 76 virtual bool rendererIsNeeded(const RenderStyle&); |
| 77 virtual RenderObject* createRenderer(RenderStyle*); | 77 virtual RenderObject* createRenderer(RenderStyle*); |
| 78 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 78 virtual void createRenderTree(const AttachContext& = AttachContext()) OVERRI
DE; |
| 79 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 79 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 80 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 80 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 81 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 81 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
| 82 virtual bool isVideo() const { return true; } | 82 virtual bool isVideo() const { return true; } |
| 83 virtual bool hasVideo() const { return player() && player()->hasVideo(); } | 83 virtual bool hasVideo() const { return player() && player()->hasVideo(); } |
| 84 virtual bool supportsFullscreen() const; | 84 virtual bool supportsFullscreen() const; |
| 85 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 85 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
| 86 virtual const AtomicString imageSourceURL() const OVERRIDE; | 86 virtual const AtomicString imageSourceURL() const OVERRIDE; |
| 87 | 87 |
| 88 virtual bool hasAvailableVideoFrame() const; | 88 virtual bool hasAvailableVideoFrame() const; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 107 | 107 |
| 108 inline HTMLVideoElement* toHTMLVideoElement(Node* node) | 108 inline HTMLVideoElement* toHTMLVideoElement(Node* node) |
| 109 { | 109 { |
| 110 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLVideoElement(node)); | 110 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLVideoElement(node)); |
| 111 return static_cast<HTMLVideoElement*>(node); | 111 return static_cast<HTMLVideoElement*>(node); |
| 112 } | 112 } |
| 113 | 113 |
| 114 } //namespace | 114 } //namespace |
| 115 | 115 |
| 116 #endif | 116 #endif |
| OLD | NEW |