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

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

Issue 159893007: Revert of Update of change event for datetime input type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class EditControlOwner { 52 class EditControlOwner {
53 public: 53 public:
54 virtual ~EditControlOwner(); 54 virtual ~EditControlOwner();
55 virtual void didBlurFromControl() = 0; 55 virtual void didBlurFromControl() = 0;
56 virtual void didFocusOnControl() = 0; 56 virtual void didFocusOnControl() = 0;
57 virtual void editControlValueChanged() = 0; 57 virtual void editControlValueChanged() = 0;
58 virtual String formatDateTimeFieldsState(const DateTimeFieldsState&) con st = 0; 58 virtual String formatDateTimeFieldsState(const DateTimeFieldsState&) con st = 0;
59 virtual bool isEditControlOwnerDisabled() const = 0; 59 virtual bool isEditControlOwnerDisabled() const = 0;
60 virtual bool isEditControlOwnerReadOnly() const = 0; 60 virtual bool isEditControlOwnerReadOnly() const = 0;
61 virtual AtomicString localeIdentifier() const = 0; 61 virtual AtomicString localeIdentifier() const = 0;
62 virtual void editControlDidChangeValueByKeyboard() = 0;
63 }; 62 };
64 63
65 struct LayoutParameters { 64 struct LayoutParameters {
66 String dateTimeFormat; 65 String dateTimeFormat;
67 String fallbackDateTimeFormat; 66 String fallbackDateTimeFormat;
68 Locale& locale; 67 Locale& locale;
69 const StepRange stepRange; 68 const StepRange stepRange;
70 DateComponents minimum; 69 DateComponents minimum;
71 DateComponents maximum; 70 DateComponents maximum;
72 String placeholderForDay; 71 String placeholderForDay;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 137
139 // DateTimeFieldElement::FieldOwner functions. 138 // DateTimeFieldElement::FieldOwner functions.
140 virtual void didBlurFromField() OVERRIDE; 139 virtual void didBlurFromField() OVERRIDE;
141 virtual void didFocusOnField() OVERRIDE; 140 virtual void didFocusOnField() OVERRIDE;
142 virtual void fieldValueChanged() OVERRIDE; 141 virtual void fieldValueChanged() OVERRIDE;
143 virtual bool focusOnNextField(const DateTimeFieldElement&) OVERRIDE; 142 virtual bool focusOnNextField(const DateTimeFieldElement&) OVERRIDE;
144 virtual bool focusOnPreviousField(const DateTimeFieldElement&) OVERRIDE; 143 virtual bool focusOnPreviousField(const DateTimeFieldElement&) OVERRIDE;
145 virtual bool isFieldOwnerDisabled() const OVERRIDE; 144 virtual bool isFieldOwnerDisabled() const OVERRIDE;
146 virtual bool isFieldOwnerReadOnly() const OVERRIDE; 145 virtual bool isFieldOwnerReadOnly() const OVERRIDE;
147 virtual AtomicString localeIdentifier() const OVERRIDE; 146 virtual AtomicString localeIdentifier() const OVERRIDE;
148 virtual void fieldDidChangeValueByKeyboard() OVERRIDE;
149 147
150 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; 148 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields;
151 EditControlOwner* m_editControlOwner; 149 EditControlOwner* m_editControlOwner;
152 }; 150 };
153 151
154 DEFINE_TYPE_CASTS(DateTimeEditElement, Element, element, element->isDateTimeEdit Element(), element.isDateTimeEditElement()); 152 DEFINE_TYPE_CASTS(DateTimeEditElement, Element, element, element->isDateTimeEdit Element(), element.isDateTimeEditElement());
155 153
156 } // namespace WebCore 154 } // namespace WebCore
157 155
158 #endif 156 #endif
159 #endif 157 #endif
OLDNEW
« no previous file with comments | « Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp ('k') | Source/core/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698