OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2007, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007, 2010 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "core/dom/ActiveDOMObject.h" | 26 #include "core/dom/ActiveDOMObject.h" |
27 #include "core/html/HTMLElement.h" | 27 #include "core/html/HTMLElement.h" |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 class ExceptionState; | 31 class ExceptionState; |
32 class RenderMarquee; | 32 class RenderMarquee; |
33 | 33 |
34 class HTMLMarqueeElement FINAL : public HTMLElement, private ActiveDOMObject { | 34 class HTMLMarqueeElement FINAL : public HTMLElement, private ActiveDOMObject { |
35 public: | 35 public: |
36 static PassRefPtr<HTMLMarqueeElement> create(const QualifiedName&, Document*
); | 36 static PassRefPtr<HTMLMarqueeElement> create(const QualifiedName&, Document&
); |
37 | 37 |
38 int minimumDelay() const; | 38 int minimumDelay() const; |
39 | 39 |
40 // DOM Functions | 40 // DOM Functions |
41 | 41 |
42 void start(); | 42 void start(); |
43 void stop(); | 43 void stop(); |
44 | 44 |
45 int scrollAmount() const; | 45 int scrollAmount() const; |
46 void setScrollAmount(int, ExceptionState&); | 46 void setScrollAmount(int, ExceptionState&); |
47 | 47 |
48 int scrollDelay() const; | 48 int scrollDelay() const; |
49 void setScrollDelay(int, ExceptionState&); | 49 void setScrollDelay(int, ExceptionState&); |
50 | 50 |
51 int loop() const; | 51 int loop() const; |
52 void setLoop(int, ExceptionState&); | 52 void setLoop(int, ExceptionState&); |
53 | 53 |
54 private: | 54 private: |
55 HTMLMarqueeElement(const QualifiedName&, Document*); | 55 HTMLMarqueeElement(const QualifiedName&, Document&); |
56 | 56 |
57 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 57 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
58 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 58 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
59 | 59 |
60 // ActiveDOMObject | 60 // ActiveDOMObject |
61 virtual bool canSuspend() const; | 61 virtual bool canSuspend() const; |
62 virtual void suspend(ReasonForSuspension); | 62 virtual void suspend(ReasonForSuspension); |
63 virtual void resume(); | 63 virtual void resume(); |
64 | 64 |
65 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE FINAL; | 65 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE FINAL; |
66 | 66 |
67 RenderMarquee* renderMarquee() const; | 67 RenderMarquee* renderMarquee() const; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace WebCore | 70 } // namespace WebCore |
71 | 71 |
72 #endif // HTMLMarqueeElement_h | 72 #endif // HTMLMarqueeElement_h |
OLD | NEW |