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

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

Issue 23458005: Add HTMLInputType::m_inputTypeView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 22 matching lines...) Expand all
33 33
34 class CheckedRadioButtons; 34 class CheckedRadioButtons;
35 class DragData; 35 class DragData;
36 class ExceptionState; 36 class ExceptionState;
37 class FileList; 37 class FileList;
38 class HTMLDataListElement; 38 class HTMLDataListElement;
39 class HTMLImageLoader; 39 class HTMLImageLoader;
40 class HTMLOptionElement; 40 class HTMLOptionElement;
41 class Icon; 41 class Icon;
42 class InputType; 42 class InputType;
43 class InputTypeView;
43 class KURL; 44 class KURL;
44 class ListAttributeTargetObserver; 45 class ListAttributeTargetObserver;
45 struct DateTimeChooserParameters; 46 struct DateTimeChooserParameters;
46 47
47 class HTMLInputElement : public HTMLTextFormControlElement { 48 class HTMLInputElement : public HTMLTextFormControlElement {
48 public: 49 public:
49 static PassRefPtr<HTMLInputElement> create(const QualifiedName&, Document*, HTMLFormElement*, bool createdByParser); 50 static PassRefPtr<HTMLInputElement> create(const QualifiedName&, Document*, HTMLFormElement*, bool createdByParser);
50 virtual ~HTMLInputElement(); 51 virtual ~HTMLInputElement();
51 52
52 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitspeechchange); 53 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitspeechchange);
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 unsigned m_autocomplete : 2; // AutoCompleteSetting 396 unsigned m_autocomplete : 2; // AutoCompleteSetting
396 bool m_isAutofilled : 1; 397 bool m_isAutofilled : 1;
397 bool m_hasNonEmptyList : 1; 398 bool m_hasNonEmptyList : 1;
398 bool m_stateRestored : 1; 399 bool m_stateRestored : 1;
399 bool m_parsingInProgress : 1; 400 bool m_parsingInProgress : 1;
400 bool m_valueAttributeWasUpdatedAfterParsing : 1; 401 bool m_valueAttributeWasUpdatedAfterParsing : 1;
401 bool m_wasModifiedByUser : 1; 402 bool m_wasModifiedByUser : 1;
402 bool m_canReceiveDroppedFiles : 1; 403 bool m_canReceiveDroppedFiles : 1;
403 bool m_hasTouchEventHandler : 1; 404 bool m_hasTouchEventHandler : 1;
404 RefPtr<InputType> m_inputType; 405 RefPtr<InputType> m_inputType;
406 RefPtr<InputTypeView> m_inputTypeView;
405 // The ImageLoader must be owned by this element because the loader code ass umes 407 // The ImageLoader must be owned by this element because the loader code ass umes
406 // that it lives as long as its owning element lives. If we move the loader into 408 // that it lives as long as its owning element lives. If we move the loader into
407 // the ImageInput object we may delete the loader while this element lives o n. 409 // the ImageInput object we may delete the loader while this element lives o n.
408 OwnPtr<HTMLImageLoader> m_imageLoader; 410 OwnPtr<HTMLImageLoader> m_imageLoader;
409 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver; 411 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver;
410 }; 412 };
411 413
412 inline HTMLInputElement* toHTMLInputElement(Node* node) 414 inline HTMLInputElement* toHTMLInputElement(Node* node)
413 { 415 {
414 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT ag)); 416 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT ag));
415 return static_cast<HTMLInputElement*>(node); 417 return static_cast<HTMLInputElement*>(node);
416 } 418 }
417 419
418 inline const HTMLInputElement* toHTMLInputElement(const Node* node) 420 inline const HTMLInputElement* toHTMLInputElement(const Node* node)
419 { 421 {
420 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT ag)); 422 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT ag));
421 return static_cast<const HTMLInputElement*>(node); 423 return static_cast<const HTMLInputElement*>(node);
422 } 424 }
423 425
424 // This will catch anyone doing an unnecessary cast. 426 // This will catch anyone doing an unnecessary cast.
425 void toHTMLElement(const HTMLElement*); 427 void toHTMLElement(const HTMLElement*);
426 428
427 429
428 } //namespace 430 } //namespace
429 #endif 431 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698