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

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

Issue 11150011: Merge 130848 - Sub-fields in input[type=time] should not be focusable if the input is disabled or r… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 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
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 bool isReadOnly() const; 101 bool isReadOnly() const;
102 void layout(const StepRange&, const DateComponents&, Localizer&); 102 void layout(const StepRange&, const DateComponents&, Localizer&);
103 void updateUIState(); 103 void updateUIState();
104 104
105 // DateTimeFieldElement::FieldOwner functions. 105 // DateTimeFieldElement::FieldOwner functions.
106 virtual void didBlurFromField() OVERRIDE FINAL; 106 virtual void didBlurFromField() OVERRIDE FINAL;
107 virtual void didFocusOnField() OVERRIDE FINAL; 107 virtual void didFocusOnField() OVERRIDE FINAL;
108 virtual void fieldValueChanged() OVERRIDE FINAL; 108 virtual void fieldValueChanged() OVERRIDE FINAL;
109 virtual bool focusOnNextField(const DateTimeFieldElement&) OVERRIDE FINAL; 109 virtual bool focusOnNextField(const DateTimeFieldElement&) OVERRIDE FINAL;
110 virtual bool focusOnPreviousField(const DateTimeFieldElement&) OVERRIDE FINA L; 110 virtual bool focusOnPreviousField(const DateTimeFieldElement&) OVERRIDE FINA L;
111 virtual bool isFieldOwnerDisabledOrReadOnly() const OVERRIDE FINAL;
111 112
112 // SpinButtonElement::SpinButtonOwner functions. 113 // SpinButtonElement::SpinButtonOwner functions.
113 virtual void focusAndSelectSpinButtonOwner() OVERRIDE FINAL; 114 virtual void focusAndSelectSpinButtonOwner() OVERRIDE FINAL;
114 virtual bool shouldSpinButtonRespondToMouseEvents() OVERRIDE FINAL; 115 virtual bool shouldSpinButtonRespondToMouseEvents() OVERRIDE FINAL;
115 virtual bool shouldSpinButtonRespondToWheelEvents() OVERRIDE FINAL; 116 virtual bool shouldSpinButtonRespondToWheelEvents() OVERRIDE FINAL;
116 virtual void spinButtonStepDown() OVERRIDE FINAL; 117 virtual void spinButtonStepDown() OVERRIDE FINAL;
117 virtual void spinButtonStepUp() OVERRIDE FINAL; 118 virtual void spinButtonStepUp() OVERRIDE FINAL;
118 119
119 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; 120 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields;
120 EditControlOwner* m_editControlOwner; 121 EditControlOwner* m_editControlOwner;
121 SpinButtonElement* m_spinButton; 122 SpinButtonElement* m_spinButton;
122 }; 123 };
123 124
124 } // namespace WebCore 125 } // namespace WebCore
125 126
126 #endif 127 #endif
127 #endif 128 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698