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

Side by Side Diff: third_party/WebKit/Source/web/WebFormElement.cpp

Issue 1958543002: requestAutocomplete: remove from web platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Document-createEvent-expected.txt Created 4 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 Vector<WebFormControlElement> formControlElements; 68 Vector<WebFormControlElement> formControlElements;
69 69
70 const FormAssociatedElement::List& associatedElements = form->associatedElem ents(); 70 const FormAssociatedElement::List& associatedElements = form->associatedElem ents();
71 for (FormAssociatedElement::List::const_iterator it = associatedElements.beg in(); it != associatedElements.end(); ++it) { 71 for (FormAssociatedElement::List::const_iterator it = associatedElements.beg in(); it != associatedElements.end(); ++it) {
72 if ((*it)->isFormControlElement()) 72 if ((*it)->isFormControlElement())
73 formControlElements.append(toHTMLFormControlElement(*it)); 73 formControlElements.append(toHTMLFormControlElement(*it));
74 } 74 }
75 result.assign(formControlElements); 75 result.assign(formControlElements);
76 } 76 }
77 77
78 bool WebFormElement::checkValidity()
79 {
80 return unwrap<HTMLFormElement>()->checkValidity();
81 }
82
83 void WebFormElement::finishRequestAutocomplete(WebFormElement::AutocompleteResul t result)
84 {
85 unwrap<HTMLFormElement>()->finishRequestAutocomplete(static_cast<HTMLFormEle ment::AutocompleteResult>(result));
86 }
87
88 WebFormElement::WebFormElement(HTMLFormElement* e) 78 WebFormElement::WebFormElement(HTMLFormElement* e)
89 : WebElement(e) 79 : WebElement(e)
90 { 80 {
91 } 81 }
92 82
93 DEFINE_WEB_NODE_TYPE_CASTS(WebFormElement, isHTMLFormElement(constUnwrap<Node>() )); 83 DEFINE_WEB_NODE_TYPE_CASTS(WebFormElement, isHTMLFormElement(constUnwrap<Node>() ));
94 84
95 WebFormElement& WebFormElement::operator=(HTMLFormElement* e) 85 WebFormElement& WebFormElement::operator=(HTMLFormElement* e)
96 { 86 {
97 m_private = e; 87 m_private = e;
98 return *this; 88 return *this;
99 } 89 }
100 90
101 WebFormElement::operator HTMLFormElement*() const 91 WebFormElement::operator HTMLFormElement*() const
102 { 92 {
103 return toHTMLFormElement(m_private.get()); 93 return toHTMLFormElement(m_private.get());
104 } 94 }
105 95
106 } // namespace blink 96 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698