Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: Source/core/html/shadow/ProgressShadowElement.h

Issue 14022022: FINALizing of the Node hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Action review comments. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 30 matching lines...) Expand all
41 41
42 class ProgressShadowElement : public HTMLDivElement { 42 class ProgressShadowElement : public HTMLDivElement {
43 public: 43 public:
44 ProgressShadowElement(Document*); 44 ProgressShadowElement(Document*);
45 HTMLProgressElement* progressElement() const; 45 HTMLProgressElement* progressElement() const;
46 46
47 protected: 47 protected:
48 virtual bool rendererIsNeeded(const NodeRenderingContext&); 48 virtual bool rendererIsNeeded(const NodeRenderingContext&);
49 }; 49 };
50 50
51 class ProgressInnerElement : public ProgressShadowElement { 51 class ProgressInnerElement FINAL : public ProgressShadowElement {
52 public: 52 public:
53 ProgressInnerElement(Document*); 53 ProgressInnerElement(Document*);
54 54
55 static PassRefPtr<ProgressInnerElement> create(Document*); 55 static PassRefPtr<ProgressInnerElement> create(Document*);
56 private: 56 private:
57 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) OVERRIDE; 57 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*) OVERRIDE;
58 virtual bool rendererIsNeeded(const NodeRenderingContext&); 58 virtual bool rendererIsNeeded(const NodeRenderingContext&);
59 }; 59 };
60 60
61 class ProgressBarElement : public ProgressShadowElement { 61 class ProgressBarElement FINAL : public ProgressShadowElement {
62 public: 62 public:
63 ProgressBarElement(Document* document) 63 ProgressBarElement(Document* document)
64 : ProgressShadowElement(document) 64 : ProgressShadowElement(document)
65 { 65 {
66 DEFINE_STATIC_LOCAL(AtomicString, pseudoId, ("-webkit-progress-bar", Ato micString::ConstructFromLiteral)); 66 DEFINE_STATIC_LOCAL(AtomicString, pseudoId, ("-webkit-progress-bar", Ato micString::ConstructFromLiteral));
67 setPseudo(pseudoId); 67 setPseudo(pseudoId);
68 } 68 }
69 69
70 static PassRefPtr<ProgressBarElement> create(Document*); 70 static PassRefPtr<ProgressBarElement> create(Document*);
71 }; 71 };
72 72
73 inline PassRefPtr<ProgressBarElement> ProgressBarElement::create(Document* docum ent) 73 inline PassRefPtr<ProgressBarElement> ProgressBarElement::create(Document* docum ent)
74 { 74 {
75 return adoptRef(new ProgressBarElement(document)); 75 return adoptRef(new ProgressBarElement(document));
76 } 76 }
77 77
78 class ProgressValueElement : public ProgressShadowElement { 78 class ProgressValueElement FINAL : public ProgressShadowElement {
79 public: 79 public:
80 ProgressValueElement(Document* document) 80 ProgressValueElement(Document* document)
81 : ProgressShadowElement(document) 81 : ProgressShadowElement(document)
82 { 82 {
83 DEFINE_STATIC_LOCAL(AtomicString, pseudoId, ("-webkit-progress-value", A tomicString::ConstructFromLiteral)); 83 DEFINE_STATIC_LOCAL(AtomicString, pseudoId, ("-webkit-progress-value", A tomicString::ConstructFromLiteral));
84 setPseudo(pseudoId); 84 setPseudo(pseudoId);
85 } 85 }
86 86
87 static PassRefPtr<ProgressValueElement> create(Document*); 87 static PassRefPtr<ProgressValueElement> create(Document*);
88 void setWidthPercentage(double); 88 void setWidthPercentage(double);
89 }; 89 };
90 90
91 inline PassRefPtr<ProgressValueElement> ProgressValueElement::create(Document* d ocument) 91 inline PassRefPtr<ProgressValueElement> ProgressValueElement::create(Document* d ocument)
92 { 92 {
93 return adoptRef(new ProgressValueElement(document)); 93 return adoptRef(new ProgressValueElement(document));
94 } 94 }
95 95
96 } 96 }
97 97
98 #endif // ProgressShadowElement_h 98 #endif // ProgressShadowElement_h
OLDNEW
« no previous file with comments | « Source/core/html/shadow/PickerIndicatorElement.h ('k') | Source/core/html/shadow/SliderThumbElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698