OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 public: | 43 public: |
44 explicit ProgressShadowElement(Document&); | 44 explicit ProgressShadowElement(Document&); |
45 HTMLProgressElement* progressElement() const; | 45 HTMLProgressElement* progressElement() const; |
46 | 46 |
47 protected: | 47 protected: |
48 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; | 48 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; |
49 }; | 49 }; |
50 | 50 |
51 class ProgressInnerElement FINAL : public ProgressShadowElement { | 51 class ProgressInnerElement FINAL : public ProgressShadowElement { |
52 public: | 52 public: |
53 static PassRefPtrWillBeRawPtr<ProgressInnerElement> create(Document&); | 53 DECLARE_NODE_FACTORY(ProgressInnerElement); |
54 | 54 |
55 private: | 55 private: |
56 explicit ProgressInnerElement(Document&); | 56 explicit ProgressInnerElement(Document&); |
57 | 57 |
58 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 58 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
59 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; | 59 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; |
60 }; | 60 }; |
61 | 61 |
62 inline PassRefPtrWillBeRawPtr<ProgressInnerElement> ProgressInnerElement::create
(Document& document) | |
63 { | |
64 return adoptRefWillBeRefCountedGarbageCollected(new ProgressInnerElement(doc
ument)); | |
65 } | |
66 | |
67 class ProgressBarElement FINAL : public ProgressShadowElement { | 62 class ProgressBarElement FINAL : public ProgressShadowElement { |
68 public: | 63 public: |
69 static PassRefPtrWillBeRawPtr<ProgressBarElement> create(Document&); | 64 DECLARE_NODE_FACTORY(ProgressBarElement); |
70 | 65 |
71 private: | 66 private: |
72 explicit ProgressBarElement(Document&); | 67 explicit ProgressBarElement(Document&); |
73 }; | 68 }; |
74 | 69 |
75 inline PassRefPtrWillBeRawPtr<ProgressBarElement> ProgressBarElement::create(Doc
ument& document) | |
76 { | |
77 return adoptRefWillBeRefCountedGarbageCollected(new ProgressBarElement(docum
ent)); | |
78 } | |
79 | |
80 class ProgressValueElement FINAL : public ProgressShadowElement { | 70 class ProgressValueElement FINAL : public ProgressShadowElement { |
81 public: | 71 public: |
82 static PassRefPtrWillBeRawPtr<ProgressValueElement> create(Document&); | 72 DECLARE_NODE_FACTORY(ProgressValueElement); |
83 void setWidthPercentage(double); | 73 void setWidthPercentage(double); |
84 | 74 |
85 private: | 75 private: |
86 explicit ProgressValueElement(Document&); | 76 explicit ProgressValueElement(Document&); |
87 }; | 77 }; |
88 | 78 |
89 inline PassRefPtrWillBeRawPtr<ProgressValueElement> ProgressValueElement::create
(Document& document) | |
90 { | |
91 return adoptRefWillBeRefCountedGarbageCollected(new ProgressValueElement(doc
ument)); | |
92 } | |
93 | |
94 } | 79 } |
95 | 80 |
96 #endif // ProgressShadowElement_h | 81 #endif // ProgressShadowElement_h |
OLD | NEW |