OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 void setSize(unsigned); | 202 void setSize(unsigned); |
203 void setSize(unsigned, ExceptionState&); | 203 void setSize(unsigned, ExceptionState&); |
204 | 204 |
205 KURL src() const; | 205 KURL src() const; |
206 | 206 |
207 virtual int maxLength() const; | 207 virtual int maxLength() const; |
208 void setMaxLength(int, ExceptionState&); | 208 void setMaxLength(int, ExceptionState&); |
209 | 209 |
210 bool multiple() const; | 210 bool multiple() const; |
211 | 211 |
212 bool isAutofilled() const { return m_isAutofilled; } | |
213 void setAutofilled(bool = true); | |
214 | |
215 FileList* files(); | 212 FileList* files(); |
216 void setFiles(PassRefPtr<FileList>); | 213 void setFiles(PassRefPtr<FileList>); |
217 | 214 |
218 // Returns true if the given DragData has more than one dropped files. | 215 // Returns true if the given DragData has more than one dropped files. |
219 bool receiveDroppedFiles(const DragData*); | 216 bool receiveDroppedFiles(const DragData*); |
220 | 217 |
221 String droppedFileSystemId(); | 218 String droppedFileSystemId(); |
222 | 219 |
223 Icon* icon() const; | 220 Icon* icon() const; |
224 // These functions are used for rendering the input active during a | 221 // These functions are used for rendering the input active during a |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 virtual void finishParsingChildren(); | 325 virtual void finishParsingChildren(); |
329 | 326 |
330 virtual void copyNonAttributePropertiesFromElement(const Element&); | 327 virtual void copyNonAttributePropertiesFromElement(const Element&); |
331 | 328 |
332 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 329 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
333 | 330 |
334 virtual bool appendFormData(FormDataList&, bool); | 331 virtual bool appendFormData(FormDataList&, bool); |
335 | 332 |
336 virtual bool isSuccessfulSubmitButton() const; | 333 virtual bool isSuccessfulSubmitButton() const; |
337 | 334 |
338 virtual void reset(); | 335 virtual void resetImpl() OVERRIDE; |
339 | 336 |
340 virtual void* preDispatchEventHandler(Event*); | 337 virtual void* preDispatchEventHandler(Event*); |
341 virtual void postDispatchEventHandler(Event*, void* dataFromPreDispatch); | 338 virtual void postDispatchEventHandler(Event*, void* dataFromPreDispatch); |
342 | 339 |
343 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 340 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
344 virtual bool isInRange() const; | 341 virtual bool isInRange() const; |
345 virtual bool isOutOfRange() const; | 342 virtual bool isOutOfRange() const; |
346 | 343 |
347 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; | 344 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; |
348 | 345 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 String m_suggestedValue; | 382 String m_suggestedValue; |
386 int m_size; | 383 int m_size; |
387 int m_maxLength; | 384 int m_maxLength; |
388 short m_maxResults; | 385 short m_maxResults; |
389 bool m_isChecked : 1; | 386 bool m_isChecked : 1; |
390 bool m_reflectsCheckedAttribute : 1; | 387 bool m_reflectsCheckedAttribute : 1; |
391 bool m_isIndeterminate : 1; | 388 bool m_isIndeterminate : 1; |
392 bool m_hasType : 1; | 389 bool m_hasType : 1; |
393 bool m_isActivatedSubmit : 1; | 390 bool m_isActivatedSubmit : 1; |
394 unsigned m_autocomplete : 2; // AutoCompleteSetting | 391 unsigned m_autocomplete : 2; // AutoCompleteSetting |
395 bool m_isAutofilled : 1; | |
396 bool m_hasNonEmptyList : 1; | 392 bool m_hasNonEmptyList : 1; |
397 bool m_stateRestored : 1; | 393 bool m_stateRestored : 1; |
398 bool m_parsingInProgress : 1; | 394 bool m_parsingInProgress : 1; |
399 bool m_valueAttributeWasUpdatedAfterParsing : 1; | 395 bool m_valueAttributeWasUpdatedAfterParsing : 1; |
400 bool m_wasModifiedByUser : 1; | 396 bool m_wasModifiedByUser : 1; |
401 bool m_canReceiveDroppedFiles : 1; | 397 bool m_canReceiveDroppedFiles : 1; |
402 bool m_hasTouchEventHandler : 1; | 398 bool m_hasTouchEventHandler : 1; |
403 RefPtr<InputType> m_inputType; | 399 RefPtr<InputType> m_inputType; |
404 RefPtr<InputTypeView> m_inputTypeView; | 400 RefPtr<InputTypeView> m_inputTypeView; |
405 // The ImageLoader must be owned by this element because the loader code ass
umes | 401 // The ImageLoader must be owned by this element because the loader code ass
umes |
(...skipping 14 matching lines...) Expand all Loading... |
420 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT
ag)); | 416 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT
ag)); |
421 return static_cast<const HTMLInputElement*>(node); | 417 return static_cast<const HTMLInputElement*>(node); |
422 } | 418 } |
423 | 419 |
424 // This will catch anyone doing an unnecessary cast. | 420 // This will catch anyone doing an unnecessary cast. |
425 void toHTMLElement(const HTMLElement*); | 421 void toHTMLElement(const HTMLElement*); |
426 | 422 |
427 | 423 |
428 } //namespace | 424 } //namespace |
429 #endif | 425 #endif |
OLD | NEW |