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 18 matching lines...) Expand all Loading... |
29 #if ENABLE(VIDEO) | 29 #if ENABLE(VIDEO) |
30 #include "HTMLElement.h" | 30 #include "HTMLElement.h" |
31 #include "Timer.h" | 31 #include "Timer.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 class HTMLSourceElement : public HTMLElement { | 35 class HTMLSourceElement : public HTMLElement { |
36 public: | 36 public: |
37 static PassRefPtr<HTMLSourceElement> create(const QualifiedName&, Document*)
; | 37 static PassRefPtr<HTMLSourceElement> create(const QualifiedName&, Document*)
; |
38 | 38 |
| 39 String src() const; |
39 String media() const; | 40 String media() const; |
40 String type() const; | 41 String type() const; |
41 void setSrc(const String&); | 42 void setSrc(const String&); |
42 void setMedia(const String&); | 43 void setMedia(const String&); |
43 void setType(const String&); | 44 void setType(const String&); |
44 | 45 |
45 void scheduleErrorEvent(); | 46 void scheduleErrorEvent(); |
46 void cancelPendingErrorEvent(); | 47 void cancelPendingErrorEvent(); |
47 | 48 |
48 private: | 49 private: |
49 HTMLSourceElement(const QualifiedName&, Document*); | 50 HTMLSourceElement(const QualifiedName&, Document*); |
50 | 51 |
51 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 52 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
52 virtual void removedFrom(ContainerNode*) OVERRIDE; | 53 virtual void removedFrom(ContainerNode*) OVERRIDE; |
53 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 54 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
54 | 55 |
55 void errorEventTimerFired(Timer<HTMLSourceElement>*); | 56 void errorEventTimerFired(Timer<HTMLSourceElement>*); |
56 | 57 |
57 Timer<HTMLSourceElement> m_errorEventTimer; | 58 Timer<HTMLSourceElement> m_errorEventTimer; |
58 }; | 59 }; |
59 | 60 |
60 } //namespace | 61 } //namespace |
61 | 62 |
62 #endif | 63 #endif |
63 #endif | 64 #endif |
OLD | NEW |