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

Side by Side Diff: Source/core/html/HTMLMeterElement.h

Issue 948063002: Move rendering/RenderMeter to layout/LayoutMeter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLMeterElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 * 18 *
19 */ 19 */
20 20
21 #ifndef HTMLMeterElement_h 21 #ifndef HTMLMeterElement_h
22 #define HTMLMeterElement_h 22 #define HTMLMeterElement_h
23 23
24 #include "core/html/LabelableElement.h" 24 #include "core/html/LabelableElement.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class MeterValueElement; 28 class MeterValueElement;
29 class RenderMeter; 29 class LayoutMeter;
30 30
31 class HTMLMeterElement final : public LabelableElement { 31 class HTMLMeterElement final : public LabelableElement {
32 DEFINE_WRAPPERTYPEINFO(); 32 DEFINE_WRAPPERTYPEINFO();
33 public: 33 public:
34 static PassRefPtrWillBeRawPtr<HTMLMeterElement> create(Document&); 34 static PassRefPtrWillBeRawPtr<HTMLMeterElement> create(Document&);
35 35
36 enum GaugeRegion { 36 enum GaugeRegion {
37 GaugeRegionOptimum, 37 GaugeRegionOptimum,
38 GaugeRegionSuboptimal, 38 GaugeRegionSuboptimal,
39 GaugeRegionEvenLessGood 39 GaugeRegionEvenLessGood
(...skipping 23 matching lines...) Expand all
63 virtual bool canContainRangeEndPoint() const override { return false; } 63 virtual bool canContainRangeEndPoint() const override { return false; }
64 64
65 DECLARE_VIRTUAL_TRACE(); 65 DECLARE_VIRTUAL_TRACE();
66 66
67 private: 67 private:
68 explicit HTMLMeterElement(Document&); 68 explicit HTMLMeterElement(Document&);
69 virtual ~HTMLMeterElement(); 69 virtual ~HTMLMeterElement();
70 70
71 virtual bool areAuthorShadowsAllowed() const override { return false; } 71 virtual bool areAuthorShadowsAllowed() const override { return false; }
72 virtual void willAddFirstOpenShadowRoot() override; 72 virtual void willAddFirstOpenShadowRoot() override;
73 RenderMeter* renderMeter() const; 73 LayoutMeter* layoutMeter() const;
74 74
75 virtual bool supportLabels() const override { return true; } 75 virtual bool supportLabels() const override { return true; }
76 76
77 virtual LayoutObject* createRenderer(const LayoutStyle&) override; 77 virtual LayoutObject* createRenderer(const LayoutStyle&) override;
78 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 78 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
79 79
80 void didElementStateChange(); 80 void didElementStateChange();
81 virtual void didAddClosedShadowRoot(ShadowRoot&) override; 81 virtual void didAddClosedShadowRoot(ShadowRoot&) override;
82 82
83 RefPtrWillBeMember<MeterValueElement> m_value; 83 RefPtrWillBeMember<MeterValueElement> m_value;
84 }; 84 };
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // HTMLMeterElement_h 88 #endif // HTMLMeterElement_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLMeterElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698