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

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

Issue 12159003: Merge 141195 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 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
« no previous file with comments | « Source/WebCore/html/InputType.cpp ('k') | Source/WebCore/html/shadow/DateTimeEditElement.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) 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 }; 83 };
84 84
85 static PassRefPtr<DateTimeEditElement> create(Document*, EditControlOwner&); 85 static PassRefPtr<DateTimeEditElement> create(Document*, EditControlOwner&);
86 86
87 virtual ~DateTimeEditElement(); 87 virtual ~DateTimeEditElement();
88 void addField(PassRefPtr<DateTimeFieldElement>); 88 void addField(PassRefPtr<DateTimeFieldElement>);
89 bool anyEditableFieldsHaveValues() const; 89 bool anyEditableFieldsHaveValues() const;
90 void blurByOwner(); 90 void blurByOwner();
91 virtual void defaultEventHandler(Event*) OVERRIDE; 91 virtual void defaultEventHandler(Event*) OVERRIDE;
92 void disabledStateChanged(); 92 void disabledStateChanged();
93 Element* fieldsWrapperElement() const;
93 void focusIfNoFocus(); 94 void focusIfNoFocus();
94 void focusByOwner(); 95 void focusByOwner();
95 bool hasFocusedField(); 96 bool hasFocusedField();
96 void readOnlyStateChanged(); 97 void readOnlyStateChanged();
97 void removeEditControlOwner() { m_editControlOwner = 0; } 98 void removeEditControlOwner() { m_editControlOwner = 0; }
98 void resetFields(); 99 void resetFields();
99 void setEmptyValue(const LayoutParameters&, const DateComponents& dateForRea dOnlyField); 100 void setEmptyValue(const LayoutParameters&, const DateComponents& dateForRea dOnlyField);
100 void setValueAsDate(const LayoutParameters&, const DateComponents&); 101 void setValueAsDate(const LayoutParameters&, const DateComponents&);
101 void setValueAsDateTimeFieldsState(const DateTimeFieldsState&); 102 void setValueAsDateTimeFieldsState(const DateTimeFieldsState&);
102 void setOnlyYearMonthDay(const DateComponents&); 103 void setOnlyYearMonthDay(const DateComponents&);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 virtual AtomicString localeIdentifier() const OVERRIDE FINAL; 144 virtual AtomicString localeIdentifier() const OVERRIDE FINAL;
144 145
145 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; 146 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields;
146 EditControlOwner* m_editControlOwner; 147 EditControlOwner* m_editControlOwner;
147 }; 148 };
148 149
149 } // namespace WebCore 150 } // namespace WebCore
150 151
151 #endif 152 #endif
152 #endif 153 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/html/InputType.cpp ('k') | Source/WebCore/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698