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

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

Issue 1219013005: Fix virtual/override/final usage in Source/core/html/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 protected: 64 protected:
65 DateTimeNumericFieldElement(Document&, FieldOwner&, const Range&, const Rang e& hardLimits, const String& placeholder, const Step& = Step()); 65 DateTimeNumericFieldElement(Document&, FieldOwner&, const Range&, const Rang e& hardLimits, const String& placeholder, const Step& = Step());
66 66
67 int clampValue(int value) const { return m_range.clampValue(value); } 67 int clampValue(int value) const { return m_range.clampValue(value); }
68 virtual int defaultValueForStepDown() const; 68 virtual int defaultValueForStepDown() const;
69 virtual int defaultValueForStepUp() const; 69 virtual int defaultValueForStepUp() const;
70 const Range& range() const { return m_range; } 70 const Range& range() const { return m_range; }
71 71
72 // DateTimeFieldElement functions. 72 // DateTimeFieldElement functions.
73 virtual bool hasValue() const override final; 73 bool hasValue() const final;
74 void initialize(const AtomicString& pseudo, const String& axHelpText); 74 void initialize(const AtomicString& pseudo, const String& axHelpText);
75 int maximum() const; 75 int maximum() const;
76 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) override final; 76 void setEmptyValue(EventBehavior = DispatchNoEvent) final;
77 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) overrid e; 77 void setValueAsInteger(int, EventBehavior = DispatchNoEvent) override;
78 virtual int valueAsInteger() const override final; 78 int valueAsInteger() const final;
79 virtual String visibleValue() const override final; 79 String visibleValue() const final;
80 80
81 private: 81 private:
82 // DateTimeFieldElement functions. 82 // DateTimeFieldElement functions.
83 virtual void handleKeyboardEvent(KeyboardEvent*) override final; 83 void handleKeyboardEvent(KeyboardEvent*) final;
84 virtual float maximumWidth(const Font&) override; 84 float maximumWidth(const Font&) override;
85 virtual void stepDown() override final; 85 void stepDown() final;
86 virtual void stepUp() override final; 86 void stepUp() final;
87 virtual String value() const override final; 87 String value() const final;
88 88
89 // Node functions. 89 // Node functions.
90 virtual void setFocus(bool) override final; 90 void setFocus(bool) final;
91 91
92 String formatValue(int) const; 92 String formatValue(int) const;
93 int roundUp(int) const; 93 int roundUp(int) const;
94 int roundDown(int) const; 94 int roundDown(int) const;
95 int typeAheadValue() const; 95 int typeAheadValue() const;
96 96
97 const String m_placeholder; 97 const String m_placeholder;
98 const Range m_range; 98 const Range m_range;
99 const Range m_hardLimits; 99 const Range m_hardLimits;
100 const Step m_step; 100 const Step m_step;
101 int m_value; 101 int m_value;
102 bool m_hasValue; 102 bool m_hasValue;
103 mutable StringBuilder m_typeAheadBuffer; 103 mutable StringBuilder m_typeAheadBuffer;
104 }; 104 };
105 105
106 } // namespace blink 106 } // namespace blink
107 107
108 #endif 108 #endif
109 #endif 109 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/DateTimeFieldElements.h ('k') | Source/core/html/shadow/DateTimeSymbolicFieldElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698