OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #include "core/html/HTMLElement.h" | 29 #include "core/html/HTMLElement.h" |
30 #include "platform/Timer.h" | 30 #include "platform/Timer.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class HTMLSourceElement FINAL : public HTMLElement { | 34 class HTMLSourceElement FINAL : public HTMLElement { |
35 public: | 35 public: |
36 static PassRefPtr<HTMLSourceElement> create(Document&); | 36 static PassRefPtr<HTMLSourceElement> create(Document&); |
37 | 37 |
38 const AtomicString& media() const; | |
39 const AtomicString& type() const; | 38 const AtomicString& type() const; |
40 void setSrc(const String&); | 39 void setSrc(const String&); |
41 void setMedia(const AtomicString&); | |
42 void setType(const AtomicString&); | 40 void setType(const AtomicString&); |
43 | 41 |
44 void scheduleErrorEvent(); | 42 void scheduleErrorEvent(); |
45 void cancelPendingErrorEvent(); | 43 void cancelPendingErrorEvent(); |
46 | 44 |
47 private: | 45 private: |
48 explicit HTMLSourceElement(Document&); | 46 explicit HTMLSourceElement(Document&); |
49 | 47 |
50 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 48 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
51 virtual void removedFrom(ContainerNode*) OVERRIDE; | 49 virtual void removedFrom(ContainerNode*) OVERRIDE; |
52 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 50 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
53 | 51 |
54 void errorEventTimerFired(Timer<HTMLSourceElement>*); | 52 void errorEventTimerFired(Timer<HTMLSourceElement>*); |
55 | 53 |
56 Timer<HTMLSourceElement> m_errorEventTimer; | 54 Timer<HTMLSourceElement> m_errorEventTimer; |
57 }; | 55 }; |
58 | 56 |
59 } // namespace WebCore | 57 } // namespace WebCore |
60 | 58 |
61 #endif | 59 #endif |
OLD | NEW |