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

Side by Side Diff: Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.h

Issue 27746003: Have InputType factories take an HTMLInputElement reference in parameter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class BaseMultipleFieldsDateAndTimeInputType 46 class BaseMultipleFieldsDateAndTimeInputType
47 : public BaseDateAndTimeInputType 47 : public BaseDateAndTimeInputType
48 , protected DateTimeEditElement::EditControlOwner 48 , protected DateTimeEditElement::EditControlOwner
49 , protected PickerIndicatorElement::PickerIndicatorOwner 49 , protected PickerIndicatorElement::PickerIndicatorOwner
50 , protected SpinButtonElement::SpinButtonOwner 50 , protected SpinButtonElement::SpinButtonOwner
51 , protected ClearButtonElement::ClearButtonOwner { 51 , protected ClearButtonElement::ClearButtonOwner {
52 public: 52 public:
53 virtual bool isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, bool h asDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const = 0; 53 virtual bool isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, bool h asDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const = 0;
54 54
55 protected: 55 protected:
56 BaseMultipleFieldsDateAndTimeInputType(HTMLInputElement*); 56 BaseMultipleFieldsDateAndTimeInputType(HTMLInputElement&);
57 virtual ~BaseMultipleFieldsDateAndTimeInputType(); 57 virtual ~BaseMultipleFieldsDateAndTimeInputType();
58 58
59 virtual void setupLayoutParameters(DateTimeEditElement::LayoutParameters&, c onst DateComponents&) const = 0; 59 virtual void setupLayoutParameters(DateTimeEditElement::LayoutParameters&, c onst DateComponents&) const = 0;
60 bool shouldHaveSecondField(const DateComponents&) const; 60 bool shouldHaveSecondField(const DateComponents&) const;
61 61
62 private: 62 private:
63 // DateTimeEditElement::EditControlOwner functions 63 // DateTimeEditElement::EditControlOwner functions
64 virtual void didBlurFromControl() OVERRIDE FINAL; 64 virtual void didBlurFromControl() OVERRIDE FINAL;
65 virtual void didFocusOnControl() OVERRIDE FINAL; 65 virtual void didFocusOnControl() OVERRIDE FINAL;
66 virtual void editControlValueChanged() OVERRIDE FINAL; 66 virtual void editControlValueChanged() OVERRIDE FINAL;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 bool m_isDestroyingShadowSubtree; 122 bool m_isDestroyingShadowSubtree;
123 bool m_pickerIndicatorIsVisible; 123 bool m_pickerIndicatorIsVisible;
124 bool m_pickerIndicatorIsAlwaysVisible; 124 bool m_pickerIndicatorIsAlwaysVisible;
125 }; 125 };
126 126
127 } // namespace WebCore 127 } // namespace WebCore
128 128
129 #endif 129 #endif
130 #endif // BaseMultipleFieldsDateAndTimeInputType_h 130 #endif // BaseMultipleFieldsDateAndTimeInputType_h
OLDNEW
« no previous file with comments | « Source/core/html/forms/BaseDateAndTimeInputType.cpp ('k') | Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698