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

Side by Side Diff: Source/core/html/HTMLInputElement.h

Issue 14859003: Remove the compile time flag for DATALIST Element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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) 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Returns the minimum value for type=date, number, or range. Don't call th is for other types. 68 // Returns the minimum value for type=date, number, or range. Don't call th is for other types.
69 double minimum() const; 69 double minimum() const;
70 // Returns the maximum value for type=date, number, or range. Don't call th is for other types. 70 // Returns the maximum value for type=date, number, or range. Don't call th is for other types.
71 // This always returns a value which is >= minimum(). 71 // This always returns a value which is >= minimum().
72 double maximum() const; 72 double maximum() const;
73 // Sets the "allowed value step" defined in the HTML spec to the specified d ouble pointer. 73 // Sets the "allowed value step" defined in the HTML spec to the specified d ouble pointer.
74 // Returns false if there is no "allowed value step." 74 // Returns false if there is no "allowed value step."
75 bool getAllowedValueStep(Decimal*) const; 75 bool getAllowedValueStep(Decimal*) const;
76 StepRange createStepRange(AnyStepHandling) const; 76 StepRange createStepRange(AnyStepHandling) const;
77 77
78 #if ENABLE(DATALIST_ELEMENT)
79 Decimal findClosestTickMarkValue(const Decimal&); 78 Decimal findClosestTickMarkValue(const Decimal&);
80 #endif
81 79
82 // Implementations of HTMLInputElement::stepUp() and stepDown(). 80 // Implementations of HTMLInputElement::stepUp() and stepDown().
83 void stepUp(int, ExceptionCode&); 81 void stepUp(int, ExceptionCode&);
84 void stepDown(int, ExceptionCode&); 82 void stepDown(int, ExceptionCode&);
85 void stepUp(ExceptionCode& ec) { stepUp(1, ec); } 83 void stepUp(ExceptionCode& ec) { stepUp(1, ec); }
86 void stepDown(ExceptionCode& ec) { stepDown(1, ec); } 84 void stepDown(ExceptionCode& ec) { stepDown(1, ec); }
87 // stepUp()/stepDown() for user-interaction. 85 // stepUp()/stepDown() for user-interaction.
88 bool isSteppable() const; 86 bool isSteppable() const;
89 87
90 bool isTextButton() const; 88 bool isTextButton() const;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 bool canReceiveDroppedFiles() const; 233 bool canReceiveDroppedFiles() const;
236 void setCanReceiveDroppedFiles(bool); 234 void setCanReceiveDroppedFiles(bool);
237 235
238 void addSearchResult(); 236 void addSearchResult();
239 void onSearch(); 237 void onSearch();
240 238
241 void updateClearButtonVisibility(); 239 void updateClearButtonVisibility();
242 240
243 virtual bool willRespondToMouseClickEvents() OVERRIDE; 241 virtual bool willRespondToMouseClickEvents() OVERRIDE;
244 242
245 #if ENABLE(DATALIST_ELEMENT)
246 HTMLElement* list() const; 243 HTMLElement* list() const;
247 HTMLDataListElement* dataList() const; 244 HTMLDataListElement* dataList() const;
248 void listAttributeTargetChanged(); 245 void listAttributeTargetChanged();
249 #endif
250 246
251 HTMLInputElement* checkedRadioButtonForGroup() const; 247 HTMLInputElement* checkedRadioButtonForGroup() const;
252 bool isInRequiredRadioButtonGroup(); 248 bool isInRequiredRadioButtonGroup();
253 249
254 // Functions for InputType classes. 250 // Functions for InputType classes.
255 void setValueInternal(const String&, TextFieldEventBehavior); 251 void setValueInternal(const String&, TextFieldEventBehavior);
256 bool isTextFormControlKeyboardFocusable(KeyboardEvent*) const; 252 bool isTextFormControlKeyboardFocusable(KeyboardEvent*) const;
257 bool isTextFormControlMouseFocusable() const; 253 bool isTextFormControlMouseFocusable() const;
258 bool valueAttributeWasUpdatedAfterParsing() const { return m_valueAttributeW asUpdatedAfterParsing; } 254 bool valueAttributeWasUpdatedAfterParsing() const { return m_valueAttributeW asUpdatedAfterParsing; }
259 255
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 373
378 virtual bool isOptionalFormControl() const { return !isRequiredFormControl() ; } 374 virtual bool isOptionalFormControl() const { return !isRequiredFormControl() ; }
379 virtual bool isRequiredFormControl() const; 375 virtual bool isRequiredFormControl() const;
380 virtual bool recalcWillValidate() const; 376 virtual bool recalcWillValidate() const;
381 virtual void requiredAttributeChanged() OVERRIDE; 377 virtual void requiredAttributeChanged() OVERRIDE;
382 378
383 void updateType(); 379 void updateType();
384 380
385 virtual void subtreeHasChanged(); 381 virtual void subtreeHasChanged();
386 382
387 #if ENABLE(DATALIST_ELEMENT)
388 void resetListAttributeTargetObserver(); 383 void resetListAttributeTargetObserver();
389 #endif
390 void parseMaxLengthAttribute(const AtomicString&); 384 void parseMaxLengthAttribute(const AtomicString&);
391 void updateValueIfNeeded(); 385 void updateValueIfNeeded();
392 386
393 // Returns null if this isn't associated with any radio button group. 387 // Returns null if this isn't associated with any radio button group.
394 CheckedRadioButtons* checkedRadioButtons() const; 388 CheckedRadioButtons* checkedRadioButtons() const;
395 void addToRadioButtonGroup(); 389 void addToRadioButtonGroup();
396 void removeFromRadioButtonGroup(); 390 void removeFromRadioButtonGroup();
397 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 391 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
398 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; 392 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
399 #endif 393 #endif
400 394
401 AtomicString m_name; 395 AtomicString m_name;
402 String m_valueIfDirty; 396 String m_valueIfDirty;
403 String m_suggestedValue; 397 String m_suggestedValue;
404 int m_size; 398 int m_size;
405 int m_maxLength; 399 int m_maxLength;
406 short m_maxResults; 400 short m_maxResults;
407 bool m_isChecked : 1; 401 bool m_isChecked : 1;
408 bool m_reflectsCheckedAttribute : 1; 402 bool m_reflectsCheckedAttribute : 1;
409 bool m_isIndeterminate : 1; 403 bool m_isIndeterminate : 1;
410 bool m_hasType : 1; 404 bool m_hasType : 1;
411 bool m_isActivatedSubmit : 1; 405 bool m_isActivatedSubmit : 1;
412 unsigned m_autocomplete : 2; // AutoCompleteSetting 406 unsigned m_autocomplete : 2; // AutoCompleteSetting
413 bool m_isAutofilled : 1; 407 bool m_isAutofilled : 1;
414 #if ENABLE(DATALIST_ELEMENT)
415 bool m_hasNonEmptyList : 1; 408 bool m_hasNonEmptyList : 1;
416 #endif
417 bool m_stateRestored : 1; 409 bool m_stateRestored : 1;
418 bool m_parsingInProgress : 1; 410 bool m_parsingInProgress : 1;
419 bool m_valueAttributeWasUpdatedAfterParsing : 1; 411 bool m_valueAttributeWasUpdatedAfterParsing : 1;
420 bool m_wasModifiedByUser : 1; 412 bool m_wasModifiedByUser : 1;
421 bool m_canReceiveDroppedFiles : 1; 413 bool m_canReceiveDroppedFiles : 1;
422 bool m_hasTouchEventHandler : 1; 414 bool m_hasTouchEventHandler : 1;
423 OwnPtr<InputType> m_inputType; 415 OwnPtr<InputType> m_inputType;
424 // The ImageLoader must be owned by this element because the loader code ass umes 416 // The ImageLoader must be owned by this element because the loader code ass umes
425 // that it lives as long as its owning element lives. If we move the loader into 417 // that it lives as long as its owning element lives. If we move the loader into
426 // the ImageInput object we may delete the loader while this element lives o n. 418 // the ImageInput object we may delete the loader while this element lives o n.
427 OwnPtr<HTMLImageLoader> m_imageLoader; 419 OwnPtr<HTMLImageLoader> m_imageLoader;
428 #if ENABLE(DATALIST_ELEMENT)
429 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver; 420 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver;
430 #endif
431 }; 421 };
432 422
433 } //namespace 423 } //namespace
434 #endif 424 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698