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

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: rebasing after r150849 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
« no previous file with comments | « Source/core/html/HTMLDataListElement.idl ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // drag-and-drop operation. 231 // drag-and-drop operation.
234 bool canReceiveDroppedFiles() const; 232 bool canReceiveDroppedFiles() const;
235 void setCanReceiveDroppedFiles(bool); 233 void setCanReceiveDroppedFiles(bool);
236 234
237 void onSearch(); 235 void onSearch();
238 236
239 void updateClearButtonVisibility(); 237 void updateClearButtonVisibility();
240 238
241 virtual bool willRespondToMouseClickEvents() OVERRIDE; 239 virtual bool willRespondToMouseClickEvents() OVERRIDE;
242 240
243 #if ENABLE(DATALIST_ELEMENT)
244 HTMLElement* list() const; 241 HTMLElement* list() const;
245 HTMLDataListElement* dataList() const; 242 HTMLDataListElement* dataList() const;
246 void listAttributeTargetChanged(); 243 void listAttributeTargetChanged();
247 #endif
248 244
249 HTMLInputElement* checkedRadioButtonForGroup() const; 245 HTMLInputElement* checkedRadioButtonForGroup() const;
250 bool isInRequiredRadioButtonGroup(); 246 bool isInRequiredRadioButtonGroup();
251 247
252 // Functions for InputType classes. 248 // Functions for InputType classes.
253 void setValueInternal(const String&, TextFieldEventBehavior); 249 void setValueInternal(const String&, TextFieldEventBehavior);
254 bool isTextFormControlKeyboardFocusable(KeyboardEvent*) const; 250 bool isTextFormControlKeyboardFocusable(KeyboardEvent*) const;
255 bool isTextFormControlMouseFocusable() const; 251 bool isTextFormControlMouseFocusable() const;
256 bool valueAttributeWasUpdatedAfterParsing() const { return m_valueAttributeW asUpdatedAfterParsing; } 252 bool valueAttributeWasUpdatedAfterParsing() const { return m_valueAttributeW asUpdatedAfterParsing; }
257 253
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 371
376 virtual bool isOptionalFormControl() const { return !isRequiredFormControl() ; } 372 virtual bool isOptionalFormControl() const { return !isRequiredFormControl() ; }
377 virtual bool isRequiredFormControl() const; 373 virtual bool isRequiredFormControl() const;
378 virtual bool recalcWillValidate() const; 374 virtual bool recalcWillValidate() const;
379 virtual void requiredAttributeChanged() OVERRIDE; 375 virtual void requiredAttributeChanged() OVERRIDE;
380 376
381 void updateType(); 377 void updateType();
382 378
383 virtual void subtreeHasChanged(); 379 virtual void subtreeHasChanged();
384 380
385 #if ENABLE(DATALIST_ELEMENT)
386 void resetListAttributeTargetObserver(); 381 void resetListAttributeTargetObserver();
387 #endif
388 void parseMaxLengthAttribute(const AtomicString&); 382 void parseMaxLengthAttribute(const AtomicString&);
389 void updateValueIfNeeded(); 383 void updateValueIfNeeded();
390 384
391 // Returns null if this isn't associated with any radio button group. 385 // Returns null if this isn't associated with any radio button group.
392 CheckedRadioButtons* checkedRadioButtons() const; 386 CheckedRadioButtons* checkedRadioButtons() const;
393 void addToRadioButtonGroup(); 387 void addToRadioButtonGroup();
394 void removeFromRadioButtonGroup(); 388 void removeFromRadioButtonGroup();
395 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 389 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
396 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; 390 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
397 #endif 391 #endif
398 392
399 AtomicString m_name; 393 AtomicString m_name;
400 String m_valueIfDirty; 394 String m_valueIfDirty;
401 String m_suggestedValue; 395 String m_suggestedValue;
402 int m_size; 396 int m_size;
403 int m_maxLength; 397 int m_maxLength;
404 short m_maxResults; 398 short m_maxResults;
405 bool m_isChecked : 1; 399 bool m_isChecked : 1;
406 bool m_reflectsCheckedAttribute : 1; 400 bool m_reflectsCheckedAttribute : 1;
407 bool m_isIndeterminate : 1; 401 bool m_isIndeterminate : 1;
408 bool m_hasType : 1; 402 bool m_hasType : 1;
409 bool m_isActivatedSubmit : 1; 403 bool m_isActivatedSubmit : 1;
410 unsigned m_autocomplete : 2; // AutoCompleteSetting 404 unsigned m_autocomplete : 2; // AutoCompleteSetting
411 bool m_isAutofilled : 1; 405 bool m_isAutofilled : 1;
412 #if ENABLE(DATALIST_ELEMENT)
413 bool m_hasNonEmptyList : 1; 406 bool m_hasNonEmptyList : 1;
414 #endif
415 bool m_stateRestored : 1; 407 bool m_stateRestored : 1;
416 bool m_parsingInProgress : 1; 408 bool m_parsingInProgress : 1;
417 bool m_valueAttributeWasUpdatedAfterParsing : 1; 409 bool m_valueAttributeWasUpdatedAfterParsing : 1;
418 bool m_wasModifiedByUser : 1; 410 bool m_wasModifiedByUser : 1;
419 bool m_canReceiveDroppedFiles : 1; 411 bool m_canReceiveDroppedFiles : 1;
420 bool m_hasTouchEventHandler : 1; 412 bool m_hasTouchEventHandler : 1;
421 OwnPtr<InputType> m_inputType; 413 OwnPtr<InputType> m_inputType;
422 // The ImageLoader must be owned by this element because the loader code ass umes 414 // The ImageLoader must be owned by this element because the loader code ass umes
423 // that it lives as long as its owning element lives. If we move the loader into 415 // that it lives as long as its owning element lives. If we move the loader into
424 // the ImageInput object we may delete the loader while this element lives o n. 416 // the ImageInput object we may delete the loader while this element lives o n.
425 OwnPtr<HTMLImageLoader> m_imageLoader; 417 OwnPtr<HTMLImageLoader> m_imageLoader;
426 #if ENABLE(DATALIST_ELEMENT)
427 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver; 418 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver;
428 #endif
429 }; 419 };
430 420
431 } //namespace 421 } //namespace
432 #endif 422 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDataListElement.idl ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698