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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 size_t fieldIndexOf(const DateTimeFieldElement&) const; 127 size_t fieldIndexOf(const DateTimeFieldElement&) const;
128 DateTimeFieldElement* focusedField() const; 128 DateTimeFieldElement* focusedField() const;
129 size_t focusedFieldIndex() const; 129 size_t focusedFieldIndex() const;
130 bool focusOnNextFocusableField(size_t startIndex); 130 bool focusOnNextFocusableField(size_t startIndex);
131 bool isDisabled() const; 131 bool isDisabled() const;
132 bool isReadOnly() const; 132 bool isReadOnly() const;
133 void layout(const LayoutParameters&, const DateComponents&); 133 void layout(const LayoutParameters&, const DateComponents&);
134 void updateUIState(); 134 void updateUIState();
135 135
136 // Element function. 136 // Element function.
137 virtual PassRefPtr<LayoutStyle> customStyleForLayoutObject() override; 137 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject() override;
138 virtual bool isDateTimeEditElement() const override; 138 virtual bool isDateTimeEditElement() const override;
139 139
140 // DateTimeFieldElement::FieldOwner functions. 140 // DateTimeFieldElement::FieldOwner functions.
141 virtual void didBlurFromField() override; 141 virtual void didBlurFromField() override;
142 virtual void didFocusOnField() override; 142 virtual void didFocusOnField() override;
143 virtual void fieldValueChanged() override; 143 virtual void fieldValueChanged() override;
144 virtual bool focusOnNextField(const DateTimeFieldElement&) override; 144 virtual bool focusOnNextField(const DateTimeFieldElement&) override;
145 virtual bool focusOnPreviousField(const DateTimeFieldElement&) override; 145 virtual bool focusOnPreviousField(const DateTimeFieldElement&) override;
146 virtual bool isFieldOwnerDisabled() const override; 146 virtual bool isFieldOwnerDisabled() const override;
147 virtual bool isFieldOwnerReadOnly() const override; 147 virtual bool isFieldOwnerReadOnly() const override;
148 virtual AtomicString localeIdentifier() const override; 148 virtual AtomicString localeIdentifier() const override;
149 virtual void fieldDidChangeValueByKeyboard() override; 149 virtual void fieldDidChangeValueByKeyboard() override;
150 150
151 WillBeHeapVector<RawPtrWillBeMember<DateTimeFieldElement>, maximumNumberOfFi elds> m_fields; 151 WillBeHeapVector<RawPtrWillBeMember<DateTimeFieldElement>, maximumNumberOfFi elds> m_fields;
152 RawPtrWillBeMember<EditControlOwner> m_editControlOwner; 152 RawPtrWillBeMember<EditControlOwner> m_editControlOwner;
153 }; 153 };
154 154
155 DEFINE_TYPE_CASTS(DateTimeEditElement, Element, element, element->isDateTimeEdit Element(), element.isDateTimeEditElement()); 155 DEFINE_TYPE_CASTS(DateTimeEditElement, Element, element, element->isDateTimeEdit Element(), element.isDateTimeEditElement());
156 156
157 } // namespace blink 157 } // namespace blink
158 158
159 #endif 159 #endif
160 #endif 160 #endif
OLDNEW
« no previous file with comments | « Source/core/html/forms/TextFieldInputType.cpp ('k') | Source/core/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698