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/forms/BaseMultipleFieldsDateAndTimeInputType.cpp

Issue 408883003: Remove shouldUseInputMethod (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove shouldUseInputMethod completely Created 6 years, 5 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 void BaseMultipleFieldsDateAndTimeInputType::setValue(const String& sanitizedVal ue, bool valueChanged, TextFieldEventBehavior eventBehavior) 487 void BaseMultipleFieldsDateAndTimeInputType::setValue(const String& sanitizedVal ue, bool valueChanged, TextFieldEventBehavior eventBehavior)
488 { 488 {
489 InputType::setValue(sanitizedValue, valueChanged, eventBehavior); 489 InputType::setValue(sanitizedValue, valueChanged, eventBehavior);
490 DateTimeEditElement* edit = dateTimeEditElement(); 490 DateTimeEditElement* edit = dateTimeEditElement();
491 if (valueChanged || (sanitizedValue.isEmpty() && edit && edit->anyEditableFi eldsHaveValues())) { 491 if (valueChanged || (sanitizedValue.isEmpty() && edit && edit->anyEditableFi eldsHaveValues())) {
492 element().updateView(); 492 element().updateView();
493 element().setNeedsValidityCheck(); 493 element().setNeedsValidityCheck();
494 } 494 }
495 } 495 }
496 496
497 bool BaseMultipleFieldsDateAndTimeInputType::shouldUseInputMethod() const
498 {
499 return false;
500 }
501
502 void BaseMultipleFieldsDateAndTimeInputType::stepAttributeChanged() 497 void BaseMultipleFieldsDateAndTimeInputType::stepAttributeChanged()
503 { 498 {
504 updateView(); 499 updateView();
505 } 500 }
506 501
507 void BaseMultipleFieldsDateAndTimeInputType::updateView() 502 void BaseMultipleFieldsDateAndTimeInputType::updateView()
508 { 503 {
509 DateTimeEditElement* edit = dateTimeEditElement(); 504 DateTimeEditElement* edit = dateTimeEditElement();
510 if (!edit) 505 if (!edit)
511 return; 506 return;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 clearButton->setInlineStyleProperty(CSSPropertyPointerEvents, CSSValueNo ne); 611 clearButton->setInlineStyleProperty(CSSPropertyPointerEvents, CSSValueNo ne);
617 } else { 612 } else {
618 clearButton->removeInlineStyleProperty(CSSPropertyOpacity); 613 clearButton->removeInlineStyleProperty(CSSPropertyOpacity);
619 clearButton->removeInlineStyleProperty(CSSPropertyPointerEvents); 614 clearButton->removeInlineStyleProperty(CSSPropertyPointerEvents);
620 } 615 }
621 } 616 }
622 617
623 } // namespace blink 618 } // namespace blink
624 619
625 #endif 620 #endif
OLDNEW
« no previous file with comments | « Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.h ('k') | Source/core/html/forms/InputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698