Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions are | 7 * modification, are permitted provided that the following conditions are |
| 8 * met: | 8 * met: |
| 9 * | 9 * |
| 10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 | 80 |
| 81 // Form value functions | 81 // Form value functions |
| 82 | 82 |
| 83 virtual bool shouldSaveAndRestoreFormControlState() const; | 83 virtual bool shouldSaveAndRestoreFormControlState() const; |
| 84 virtual bool isFormDataAppendable() const; | 84 virtual bool isFormDataAppendable() const; |
| 85 virtual void appendToFormData(FormData&) const; | 85 virtual void appendToFormData(FormData&) const; |
| 86 virtual String resultForDialogSubmit() const; | 86 virtual String resultForDialogSubmit() const; |
| 87 | 87 |
| 88 // DOM property functions | 88 // DOM property functions |
| 89 | 89 |
| 90 virtual bool getTypeSpecificValue( | 90 // Checked first, before internal storage or the value attribute. |
|
yosin_UTC9
2016/10/03 04:00:24
It seems function comment and function declaration
tkent
2016/10/03 04:14:14
IMO, it's out of scope of this CL, and should be a
| |
| 91 String&); // Checked first, before internal storage or the value attribut e. | 91 virtual bool getTypeSpecificValue(String&); |
| 92 virtual String fallbackValue() | 92 // Checked last, if both internal storage and value attribute are missing. |
| 93 const; // Checked last, if both internal storage and value attribute are missing. | 93 virtual String fallbackValue() const; |
| 94 virtual String defaultValue() | 94 // Checked after even fallbackValue, only when the valueWithDefault function |
| 95 const; // Checked after even fallbackValue, only when the valueWithDefaul t function is called. | 95 // is called. |
| 96 virtual String defaultValue() const; | |
| 97 | |
| 96 virtual double valueAsDate() const; | 98 virtual double valueAsDate() const; |
| 97 virtual void setValueAsDate(double, ExceptionState&) const; | 99 virtual void setValueAsDate(double, ExceptionState&) const; |
| 98 virtual double valueAsDouble() const; | 100 virtual double valueAsDouble() const; |
| 99 virtual void setValueAsDouble(double, | 101 virtual void setValueAsDouble(double, |
| 100 TextFieldEventBehavior, | 102 TextFieldEventBehavior, |
| 101 ExceptionState&) const; | 103 ExceptionState&) const; |
| 102 virtual void setValueAsDecimal(const Decimal&, | 104 virtual void setValueAsDecimal(const Decimal&, |
| 103 TextFieldEventBehavior, | 105 TextFieldEventBehavior, |
| 104 ExceptionState&) const; | 106 ExceptionState&) const; |
| 105 virtual void readingChecked() const; | 107 virtual void readingChecked() const; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 162 virtual bool layoutObjectIsNeeded(); | 164 virtual bool layoutObjectIsNeeded(); |
| 163 virtual void countUsage(); | 165 virtual void countUsage(); |
| 164 virtual void sanitizeValueInResponseToMinOrMaxAttributeChange(); | 166 virtual void sanitizeValueInResponseToMinOrMaxAttributeChange(); |
| 165 virtual bool shouldRespectAlignAttribute(); | 167 virtual bool shouldRespectAlignAttribute(); |
| 166 virtual FileList* files(); | 168 virtual FileList* files(); |
| 167 virtual void setFiles(FileList*); | 169 virtual void setFiles(FileList*); |
| 168 virtual void setFilesFromPaths(const Vector<String>&); | 170 virtual void setFilesFromPaths(const Vector<String>&); |
| 169 // Should return true if the given DragData has more than one dropped files. | 171 // Should return true if the given DragData has more than one dropped files. |
| 170 virtual bool receiveDroppedFiles(const DragData*); | 172 virtual bool receiveDroppedFiles(const DragData*); |
| 171 virtual String droppedFileSystemId(); | 173 virtual String droppedFileSystemId(); |
| 172 // Should return true if the corresponding layoutObject for a type can display a suggested value. | 174 // Should return true if the corresponding layoutObject for a type can display |
| 175 // a suggested value. | |
| 173 virtual bool canSetSuggestedValue(); | 176 virtual bool canSetSuggestedValue(); |
| 174 virtual bool shouldSendChangeEventAfterCheckedChanged(); | 177 virtual bool shouldSendChangeEventAfterCheckedChanged(); |
| 175 virtual bool canSetValue(const String&); | 178 virtual bool canSetValue(const String&); |
| 176 virtual bool storesValueSeparateFromAttribute(); | 179 virtual bool storesValueSeparateFromAttribute(); |
| 177 virtual void setValue(const String&, | 180 virtual void setValue(const String&, |
| 178 bool valueChanged, | 181 bool valueChanged, |
| 179 TextFieldEventBehavior); | 182 TextFieldEventBehavior); |
| 180 virtual bool shouldRespectListAttribute(); | 183 virtual bool shouldRespectListAttribute(); |
| 181 virtual bool isEnumeratable(); | 184 virtual bool isEnumeratable(); |
| 182 virtual bool isCheckable(); | 185 virtual bool isCheckable(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 | 238 |
| 236 StepRange createStepRange(AnyStepHandling, | 239 StepRange createStepRange(AnyStepHandling, |
| 237 const Decimal& stepBaseDefault, | 240 const Decimal& stepBaseDefault, |
| 238 const Decimal& minimumDefault, | 241 const Decimal& minimumDefault, |
| 239 const Decimal& maximumDefault, | 242 const Decimal& maximumDefault, |
| 240 const StepRange::StepDescription&) const; | 243 const StepRange::StepDescription&) const; |
| 241 void addWarningToConsole(const char* messageFormat, | 244 void addWarningToConsole(const char* messageFormat, |
| 242 const String& value) const; | 245 const String& value) const; |
| 243 | 246 |
| 244 private: | 247 private: |
| 245 // Helper for stepUp()/stepDown(). Adds step value * count to the current valu e. | 248 // Helper for stepUp()/stepDown(). Adds step value * count to the current |
| 249 // value. | |
| 246 void applyStep(const Decimal&, | 250 void applyStep(const Decimal&, |
| 247 int count, | 251 int count, |
| 248 AnyStepHandling, | 252 AnyStepHandling, |
| 249 TextFieldEventBehavior, | 253 TextFieldEventBehavior, |
| 250 ExceptionState&); | 254 ExceptionState&); |
| 251 | 255 |
| 252 Member<HTMLInputElement> m_element; | 256 Member<HTMLInputElement> m_element; |
| 253 }; | 257 }; |
| 254 | 258 |
| 255 } // namespace blink | 259 } // namespace blink |
| 256 #endif | 260 #endif |
| OLD | NEW |