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

Side by Side Diff: Source/WebCore/html/shadow/DateTimeEditElement.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual void defaultEventHandler(Event*) OVERRIDE; 90 virtual void defaultEventHandler(Event*) OVERRIDE;
91 void disabledStateChanged(); 91 void disabledStateChanged();
92 void focusIfNoFocus(); 92 void focusIfNoFocus();
93 void focusByOwner(); 93 void focusByOwner();
94 bool hasFocusedField(); 94 bool hasFocusedField();
95 void readOnlyStateChanged(); 95 void readOnlyStateChanged();
96 void removeEditControlOwner() { m_editControlOwner = 0; } 96 void removeEditControlOwner() { m_editControlOwner = 0; }
97 void resetFields(); 97 void resetFields();
98 void setEmptyValue(const LayoutParameters&, const DateComponents& dateForRea dOnlyField); 98 void setEmptyValue(const LayoutParameters&, const DateComponents& dateForRea dOnlyField);
99 void setValueAsDate(const LayoutParameters&, const DateComponents&); 99 void setValueAsDate(const LayoutParameters&, const DateComponents&);
100 void setValueAsDateTimeFieldsState(const DateTimeFieldsState&, const DateCom ponents& dateForReadOnlyField); 100 void setValueAsDateTimeFieldsState(const DateTimeFieldsState&);
101 void stepDown(); 101 void stepDown();
102 void stepUp(); 102 void stepUp();
103 String value() const; 103 String value() const;
104 DateTimeFieldsState valueAsDateTimeFieldsState() const; 104 DateTimeFieldsState valueAsDateTimeFieldsState() const;
105 105
106 private: 106 private:
107 static const size_t invalidFieldIndex = static_cast<size_t>(-1); 107 static const size_t invalidFieldIndex = static_cast<size_t>(-1);
108 108
109 // Datetime can be represent at most five fields, such as 109 // Datetime can be represent at most five fields, such as
110 // 1. year 110 // 1. year
(...skipping 27 matching lines...) Expand all
138 virtual AtomicString localeIdentifier() const OVERRIDE FINAL; 138 virtual AtomicString localeIdentifier() const OVERRIDE FINAL;
139 139
140 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; 140 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields;
141 EditControlOwner* m_editControlOwner; 141 EditControlOwner* m_editControlOwner;
142 }; 142 };
143 143
144 } // namespace WebCore 144 } // namespace WebCore
145 145
146 #endif 146 #endif
147 #endif 147 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/html/BaseMultipleFieldsDateAndTimeInputType.cpp ('k') | Source/WebCore/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698