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

Side by Side Diff: Source/core/svg/SVGString.h

Issue 631153003: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/svg/SVGStopElement.h ('k') | Source/core/svg/SVGStringList.h » ('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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 { 47 {
48 return adoptRef(new SVGString()); 48 return adoptRef(new SVGString());
49 } 49 }
50 50
51 static PassRefPtr<SVGString> create(const String& value) 51 static PassRefPtr<SVGString> create(const String& value)
52 { 52 {
53 return adoptRef(new SVGString(value)); 53 return adoptRef(new SVGString(value));
54 } 54 }
55 55
56 PassRefPtr<SVGString> clone() const { return create(m_value); } 56 PassRefPtr<SVGString> clone() const { return create(m_value); }
57 virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String& value) c onst OVERRIDE 57 virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String& value) c onst override
58 { 58 {
59 return create(value); 59 return create(value);
60 } 60 }
61 61
62 virtual String valueAsString() const OVERRIDE { return m_value; } 62 virtual String valueAsString() const override { return m_value; }
63 void setValueAsString(const String& value, ExceptionState&) { m_value = valu e; } 63 void setValueAsString(const String& value, ExceptionState&) { m_value = valu e; }
64 64
65 virtual void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) OVERR IDE; 65 virtual void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) overr ide;
66 virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBa se> to, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) OVERRID E; 66 virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBa se> to, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) overrid e;
67 virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*) OVERRIDE; 67 virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*) override;
68 68
69 const String& value() const { return m_value; } 69 const String& value() const { return m_value; }
70 void setValue(const String& value) { m_value = value; } 70 void setValue(const String& value) { m_value = value; }
71 71
72 static AnimatedPropertyType classType() { return AnimatedString; } 72 static AnimatedPropertyType classType() { return AnimatedString; }
73 73
74 private: 74 private:
75 SVGString() 75 SVGString()
76 : SVGPropertyBase(classType()) 76 : SVGPropertyBase(classType())
77 { 77 {
(...skipping 11 matching lines...) Expand all
89 inline PassRefPtr<SVGString> toSVGString(PassRefPtr<SVGPropertyBase> passBase) 89 inline PassRefPtr<SVGString> toSVGString(PassRefPtr<SVGPropertyBase> passBase)
90 { 90 {
91 RefPtr<SVGPropertyBase> base = passBase; 91 RefPtr<SVGPropertyBase> base = passBase;
92 ASSERT(base->type() == SVGString::classType()); 92 ASSERT(base->type() == SVGString::classType());
93 return static_pointer_cast<SVGString>(base.release()); 93 return static_pointer_cast<SVGString>(base.release());
94 } 94 }
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // SVGString_h 98 #endif // SVGString_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGStopElement.h ('k') | Source/core/svg/SVGStringList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698