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

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

Issue 128153002: Update of change event for datetime input type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added keyboard change event Created 6 years, 11 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;
62 }; 63 };
63 64
64 struct LayoutParameters { 65 struct LayoutParameters {
65 String dateTimeFormat; 66 String dateTimeFormat;
66 String fallbackDateTimeFormat; 67 String fallbackDateTimeFormat;
67 Locale& locale; 68 Locale& locale;
68 const StepRange stepRange; 69 const StepRange stepRange;
69 DateComponents minimum; 70 DateComponents minimum;
70 DateComponents maximum; 71 DateComponents maximum;
71 String placeholderForDay; 72 String placeholderForDay;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 138
138 // DateTimeFieldElement::FieldOwner functions. 139 // DateTimeFieldElement::FieldOwner functions.
139 virtual void didBlurFromField() OVERRIDE; 140 virtual void didBlurFromField() OVERRIDE;
140 virtual void didFocusOnField() OVERRIDE; 141 virtual void didFocusOnField() OVERRIDE;
141 virtual void fieldValueChanged() OVERRIDE; 142 virtual void fieldValueChanged() OVERRIDE;
142 virtual bool focusOnNextField(const DateTimeFieldElement&) OVERRIDE; 143 virtual bool focusOnNextField(const DateTimeFieldElement&) OVERRIDE;
143 virtual bool focusOnPreviousField(const DateTimeFieldElement&) OVERRIDE; 144 virtual bool focusOnPreviousField(const DateTimeFieldElement&) OVERRIDE;
144 virtual bool isFieldOwnerDisabled() const OVERRIDE; 145 virtual bool isFieldOwnerDisabled() const OVERRIDE;
145 virtual bool isFieldOwnerReadOnly() const OVERRIDE; 146 virtual bool isFieldOwnerReadOnly() const OVERRIDE;
146 virtual AtomicString localeIdentifier() const OVERRIDE; 147 virtual AtomicString localeIdentifier() const OVERRIDE;
148 virtual void fieldDidChangeValueByKeyboard() OVERRIDE;
147 149
148 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; 150 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields;
149 EditControlOwner* m_editControlOwner; 151 EditControlOwner* m_editControlOwner;
150 }; 152 };
151 153
152 DEFINE_TYPE_CASTS(DateTimeEditElement, Element, element, element->isDateTimeEdit Element(), element.isDateTimeEditElement()); 154 DEFINE_TYPE_CASTS(DateTimeEditElement, Element, element, element->isDateTimeEdit Element(), element.isDateTimeEditElement());
153 155
154 } // namespace WebCore 156 } // namespace WebCore
155 157
156 #endif 158 #endif
157 #endif 159 #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