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

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

Issue 159903004: Revert of Revert "Revert of Update of change event for input type number (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 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
248 bool BaseMultipleFieldsDateAndTimeInputType::isPickerIndicatorOwnerDisabledOrRea dOnly() const 243 bool BaseMultipleFieldsDateAndTimeInputType::isPickerIndicatorOwnerDisabledOrRea dOnly() const
249 { 244 {
250 return element().isDisabledOrReadOnly(); 245 return element().isDisabledOrReadOnly();
251 } 246 }
252 247
253 void BaseMultipleFieldsDateAndTimeInputType::pickerIndicatorChooseValue(const St ring& value) 248 void BaseMultipleFieldsDateAndTimeInputType::pickerIndicatorChooseValue(const St ring& value)
254 { 249 {
255 if (element().isValidValue(value)) { 250 if (element().isValidValue(value)) {
256 element().setValue(value, DispatchInputAndChangeEvent); 251 element().setValue(value, DispatchInputAndChangeEvent);
257 return; 252 return;
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 clearButton->setInlineStyleProperty(CSSPropertyPointerEvents, CSSValueNo ne); 602 clearButton->setInlineStyleProperty(CSSPropertyPointerEvents, CSSValueNo ne);
608 } else { 603 } else {
609 clearButton->removeInlineStyleProperty(CSSPropertyOpacity); 604 clearButton->removeInlineStyleProperty(CSSPropertyOpacity);
610 clearButton->removeInlineStyleProperty(CSSPropertyPointerEvents); 605 clearButton->removeInlineStyleProperty(CSSPropertyPointerEvents);
611 } 606 }
612 } 607 }
613 608
614 } // namespace WebCore 609 } // namespace WebCore
615 610
616 #endif 611 #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