| 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 20 matching lines...) Expand all Loading... |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 class ExceptionState; | 33 class ExceptionState; |
| 34 class HTMLImageLoader; | 34 class HTMLImageLoader; |
| 35 | 35 |
| 36 class HTMLVideoElement FINAL : public HTMLMediaElement { | 36 class HTMLVideoElement FINAL : public HTMLMediaElement { |
| 37 public: | 37 public: |
| 38 static PassRefPtr<HTMLVideoElement> create(Document& document) { return crea
te(HTMLNames::videoTag, document, false); } | 38 static PassRefPtr<HTMLVideoElement> create(Document& document) { return crea
te(HTMLNames::videoTag, document, false); } |
| 39 static PassRefPtr<HTMLVideoElement> create(const QualifiedName&, Document&,
bool); | 39 static PassRefPtr<HTMLVideoElement> create(const QualifiedName&, Document&,
bool); |
| 40 | 40 |
| 41 unsigned width() const; | |
| 42 unsigned height() const; | |
| 43 | |
| 44 unsigned videoWidth() const; | 41 unsigned videoWidth() const; |
| 45 unsigned videoHeight() const; | 42 unsigned videoHeight() const; |
| 46 | 43 |
| 47 // Fullscreen | 44 // Fullscreen |
| 48 void webkitEnterFullscreen(ExceptionState&); | 45 void webkitEnterFullscreen(ExceptionState&); |
| 49 void webkitExitFullscreen(); | 46 void webkitExitFullscreen(); |
| 50 bool webkitSupportsFullscreen(); | 47 bool webkitSupportsFullscreen(); |
| 51 bool webkitDisplayingFullscreen(); | 48 bool webkitDisplayingFullscreen(); |
| 52 | 49 |
| 53 // Statistics | 50 // Statistics |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 inline bool isHTMLVideoElement(const Element* element) | 95 inline bool isHTMLVideoElement(const Element* element) |
| 99 { | 96 { |
| 100 return element->hasTagName(HTMLNames::videoTag); | 97 return element->hasTagName(HTMLNames::videoTag); |
| 101 } | 98 } |
| 102 | 99 |
| 103 DEFINE_NODE_TYPE_CASTS(HTMLVideoElement, hasTagName(HTMLNames::videoTag)); | 100 DEFINE_NODE_TYPE_CASTS(HTMLVideoElement, hasTagName(HTMLNames::videoTag)); |
| 104 | 101 |
| 105 } //namespace | 102 } //namespace |
| 106 | 103 |
| 107 #endif | 104 #endif |
| OLD | NEW |