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

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

Issue 11420032: Merge 134239 - Refactoring: set read-only values on layout in DateTimeEditElement (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month 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) 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 int clampValue(int value) const { return m_range.clampValue(value); } 56 int clampValue(int value) const { return m_range.clampValue(value); }
57 virtual int clampValueForHardLimits(int) const; 57 virtual int clampValueForHardLimits(int) const;
58 virtual int defaultValueForStepDown() const; 58 virtual int defaultValueForStepDown() const;
59 virtual int defaultValueForStepUp() const; 59 virtual int defaultValueForStepUp() const;
60 const Range& range() const { return m_range; } 60 const Range& range() const { return m_range; }
61 61
62 // DateTimeFieldElement functions. 62 // DateTimeFieldElement functions.
63 virtual bool hasValue() const OVERRIDE FINAL; 63 virtual bool hasValue() const OVERRIDE FINAL;
64 virtual int maximum() const OVERRIDE FINAL; 64 virtual int maximum() const OVERRIDE FINAL;
65 virtual void setEmptyValue(const DateComponents& dateForReadOnlyField, Event Behavior = DispatchNoEvent) OVERRIDE FINAL; 65 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) OVERRIDE FINAL;
66 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRID E; 66 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRID E;
67 virtual int valueAsInteger() const OVERRIDE; 67 virtual int valueAsInteger() const OVERRIDE;
68 virtual String visibleValue() const OVERRIDE FINAL; 68 virtual String visibleValue() const OVERRIDE FINAL;
69 69
70 private: 70 private:
71 // Element function. 71 // Element function.
72 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; 72 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
73 73
74 // DateTimeFieldElement functions. 74 // DateTimeFieldElement functions.
75 virtual void didBlur() OVERRIDE FINAL; 75 virtual void didBlur() OVERRIDE FINAL;
(...skipping 10 matching lines...) Expand all
86 const String m_placeholder; 86 const String m_placeholder;
87 const Range m_range; 87 const Range m_range;
88 int m_value; 88 int m_value;
89 bool m_hasValue; 89 bool m_hasValue;
90 }; 90 };
91 91
92 } // namespace WebCore 92 } // namespace WebCore
93 93
94 #endif 94 #endif
95 #endif 95 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/html/shadow/DateTimeFieldElements.cpp ('k') | Source/WebCore/html/shadow/DateTimeNumericFieldElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698