| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 288 | 288 | 
| 289     virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; | 289     virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; | 
| 290 | 290 | 
| 291 protected: | 291 protected: | 
| 292     HTMLMediaElement(const QualifiedName&, Document&, bool); | 292     HTMLMediaElement(const QualifiedName&, Document&, bool); | 
| 293     virtual ~HTMLMediaElement(); | 293     virtual ~HTMLMediaElement(); | 
| 294 | 294 | 
| 295     virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
     IDE; | 295     virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
     IDE; | 
| 296     virtual void finishParsingChildren(); | 296     virtual void finishParsingChildren(); | 
| 297     virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 297     virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 
| 298     virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 298     virtual void createRenderTree(const AttachContext& = AttachContext()) OVERRI
     DE; | 
| 299 | 299 | 
| 300     virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; | 300     virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; | 
| 301 | 301 | 
| 302     enum DisplayMode { Unknown, None, Poster, PosterWaitingForVideo, Video }; | 302     enum DisplayMode { Unknown, None, Poster, PosterWaitingForVideo, Video }; | 
| 303     DisplayMode displayMode() const { return m_displayMode; } | 303     DisplayMode displayMode() const { return m_displayMode; } | 
| 304     virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; } | 304     virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; } | 
| 305 | 305 | 
| 306     virtual bool isMediaElement() const { return true; } | 306     virtual bool isMediaElement() const { return true; } | 
| 307 | 307 | 
| 308     // Restrictions to change default behaviors. | 308     // Restrictions to change default behaviors. | 
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 608 | 608 | 
| 609 inline HTMLMediaElement* toHTMLMediaElement(Node* node) | 609 inline HTMLMediaElement* toHTMLMediaElement(Node* node) | 
| 610 { | 610 { | 
| 611     ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); | 611     ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); | 
| 612     return static_cast<HTMLMediaElement*>(node); | 612     return static_cast<HTMLMediaElement*>(node); | 
| 613 } | 613 } | 
| 614 | 614 | 
| 615 } //namespace | 615 } //namespace | 
| 616 | 616 | 
| 617 #endif | 617 #endif | 
| OLD | NEW | 
|---|