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

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

Issue 128133002: Update of change event for input type number (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review changes 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) 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 if (DateTimeEditElement* edit = dateTimeEditElement()) 233 if (DateTimeEditElement* edit = dateTimeEditElement())
234 edit->stepDown(); 234 edit->stepDown();
235 } 235 }
236 236
237 void BaseMultipleFieldsDateAndTimeInputType::spinButtonStepUp() 237 void BaseMultipleFieldsDateAndTimeInputType::spinButtonStepUp()
238 { 238 {
239 if (DateTimeEditElement* edit = dateTimeEditElement()) 239 if (DateTimeEditElement* edit = dateTimeEditElement())
240 edit->stepUp(); 240 edit->stepUp();
241 } 241 }
242 242
243 void BaseMultipleFieldsDateAndTimeInputType::spinButtonDidReleaseMouseCapture()
244 {
245 element().dispatchFormControlChangeEvent();
246 }
247
243 bool BaseMultipleFieldsDateAndTimeInputType::isPickerIndicatorOwnerDisabledOrRea dOnly() const 248 bool BaseMultipleFieldsDateAndTimeInputType::isPickerIndicatorOwnerDisabledOrRea dOnly() const
244 { 249 {
245 return element().isDisabledOrReadOnly(); 250 return element().isDisabledOrReadOnly();
246 } 251 }
247 252
248 void BaseMultipleFieldsDateAndTimeInputType::pickerIndicatorChooseValue(const St ring& value) 253 void BaseMultipleFieldsDateAndTimeInputType::pickerIndicatorChooseValue(const St ring& value)
249 { 254 {
250 if (element().isValidValue(value)) { 255 if (element().isValidValue(value)) {
251 element().setValue(value, DispatchInputAndChangeEvent); 256 element().setValue(value, DispatchInputAndChangeEvent);
252 return; 257 return;
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 clearButton->setInlineStyleProperty(CSSPropertyPointerEvents, CSSValueNo ne); 607 clearButton->setInlineStyleProperty(CSSPropertyPointerEvents, CSSValueNo ne);
603 } else { 608 } else {
604 clearButton->removeInlineStyleProperty(CSSPropertyOpacity); 609 clearButton->removeInlineStyleProperty(CSSPropertyOpacity);
605 clearButton->removeInlineStyleProperty(CSSPropertyPointerEvents); 610 clearButton->removeInlineStyleProperty(CSSPropertyPointerEvents);
606 } 611 }
607 } 612 }
608 613
609 } // namespace WebCore 614 } // namespace WebCore
610 615
611 #endif 616 #endif
OLDNEW
« no previous file with comments | « Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.h ('k') | Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698