| 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 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class ExceptionState; | 38 class ExceptionState; |
| 39 class HTMLImageLoader; | 39 class HTMLImageLoader; |
| 40 | 40 |
| 41 class HTMLVideoElement FINAL : public HTMLMediaElement, public CanvasImageSource
{ | 41 class HTMLVideoElement FINAL : public HTMLMediaElement, public CanvasImageSource
{ |
| 42 public: | 42 public: |
| 43 static PassRefPtrWillBeRawPtr<HTMLVideoElement> create(Document&); | 43 static PassRefPtrWillBeRawPtr<HTMLVideoElement> create(Document&); |
| 44 virtual void trace(Visitor*) OVERRIDE; |
| 44 | 45 |
| 45 unsigned videoWidth() const; | 46 unsigned videoWidth() const; |
| 46 unsigned videoHeight() const; | 47 unsigned videoHeight() const; |
| 47 | 48 |
| 48 // Fullscreen | 49 // Fullscreen |
| 49 void webkitEnterFullscreen(ExceptionState&); | 50 void webkitEnterFullscreen(ExceptionState&); |
| 50 void webkitExitFullscreen(); | 51 void webkitExitFullscreen(); |
| 51 bool webkitSupportsFullscreen(); | 52 bool webkitSupportsFullscreen(); |
| 52 bool webkitDisplayingFullscreen(); | 53 bool webkitDisplayingFullscreen(); |
| 53 | 54 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 virtual bool hasVideo() const OVERRIDE { return webMediaPlayer() && webMedia
Player()->hasVideo(); } | 89 virtual bool hasVideo() const OVERRIDE { return webMediaPlayer() && webMedia
Player()->hasVideo(); } |
| 89 bool supportsFullscreen() const; | 90 bool supportsFullscreen() const; |
| 90 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 91 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
| 91 virtual const AtomicString imageSourceURL() const OVERRIDE; | 92 virtual const AtomicString imageSourceURL() const OVERRIDE; |
| 92 | 93 |
| 93 bool hasAvailableVideoFrame() const; | 94 bool hasAvailableVideoFrame() const; |
| 94 virtual void updateDisplayState() OVERRIDE; | 95 virtual void updateDisplayState() OVERRIDE; |
| 95 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; | 96 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; |
| 96 virtual void setDisplayMode(DisplayMode) OVERRIDE; | 97 virtual void setDisplayMode(DisplayMode) OVERRIDE; |
| 97 | 98 |
| 98 OwnPtr<HTMLImageLoader> m_imageLoader; | 99 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
| 99 | 100 |
| 100 AtomicString m_defaultPosterURL; | 101 AtomicString m_defaultPosterURL; |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } //namespace | 104 } //namespace |
| 104 | 105 |
| 105 #endif | 106 #endif |
| OLD | NEW |