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

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

Issue 1957593003: Simplify PROGRESS shadow elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 23 matching lines...) Expand all
34 34
35 #include "core/html/HTMLDivElement.h" 35 #include "core/html/HTMLDivElement.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class HTMLProgressElement; 40 class HTMLProgressElement;
41 41
42 class ProgressShadowElement : public HTMLDivElement { 42 class ProgressShadowElement : public HTMLDivElement {
43 public: 43 public:
44 DECLARE_NODE_FACTORY(ProgressShadowElement);
45
46 private:
44 explicit ProgressShadowElement(Document&); 47 explicit ProgressShadowElement(Document&);
45 HTMLProgressElement* progressElement() const; 48 HTMLProgressElement* progressElement() const;
46
47 protected:
48 bool layoutObjectIsNeeded(const ComputedStyle&) override; 49 bool layoutObjectIsNeeded(const ComputedStyle&) override;
49 }; 50 };
50 51
51 class ProgressInnerElement final : public ProgressShadowElement {
52 public:
53 DECLARE_NODE_FACTORY(ProgressInnerElement);
54
55 private:
56 explicit ProgressInnerElement(Document&);
57
58 bool layoutObjectIsNeeded(const ComputedStyle&) override;
59 };
60
61 class ProgressBarElement final : public ProgressShadowElement {
62 public:
63 DECLARE_NODE_FACTORY(ProgressBarElement);
64
65 private:
66 explicit ProgressBarElement(Document&);
67 };
68
69 class ProgressValueElement final : public ProgressShadowElement {
70 public:
71 DECLARE_NODE_FACTORY(ProgressValueElement);
72 void setWidthPercentage(double);
73
74 private:
75 explicit ProgressValueElement(Document&);
76 };
77
78 } // namespace blink 52 } // namespace blink
79 53
80 #endif // ProgressShadowElement_h 54 #endif // ProgressShadowElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698