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

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: -GenericEventQueue 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 Vector<WebFormControlElement> formControlElements; 76 Vector<WebFormControlElement> formControlElements;
77 77
78 const FormAssociatedElement::List& associatedElements = form->associatedElem ents(); 78 const FormAssociatedElement::List& associatedElements = form->associatedElem ents();
79 for (FormAssociatedElement::List::const_iterator it = associatedElements.beg in(); it != associatedElements.end(); ++it) { 79 for (FormAssociatedElement::List::const_iterator it = associatedElements.beg in(); it != associatedElements.end(); ++it) {
80 if ((*it)->isFormControlElement()) 80 if ((*it)->isFormControlElement())
81 formControlElements.append(toHTMLFormControlElement(*it)); 81 formControlElements.append(toHTMLFormControlElement(*it));
82 } 82 }
83 result.assign(formControlElements); 83 result.assign(formControlElements);
84 } 84 }
85 85
86 bool WebFormElement::checkValidity()
87 {
88 return unwrap<HTMLFormElement>()->checkValidity();
89 }
90
91 void WebFormElement::finishRequestAutocomplete(WebFormElement::AutocompleteResul t result)
92 {
93 unwrap<HTMLFormElement>()->finishRequestAutocomplete(static_cast<HTMLFormEle ment::AutocompleteResult>(result));
94 }
95
96 WebFormElement::WebFormElement(HTMLFormElement* e) 86 WebFormElement::WebFormElement(HTMLFormElement* e)
97 : WebElement(e) 87 : WebElement(e)
98 { 88 {
99 } 89 }
100 90
101 DEFINE_WEB_NODE_TYPE_CASTS(WebFormElement, isHTMLFormElement(constUnwrap<Node>() )); 91 DEFINE_WEB_NODE_TYPE_CASTS(WebFormElement, isHTMLFormElement(constUnwrap<Node>() ));
102 92
103 WebFormElement& WebFormElement::operator=(HTMLFormElement* e) 93 WebFormElement& WebFormElement::operator=(HTMLFormElement* e)
104 { 94 {
105 m_private = e; 95 m_private = e;
106 return *this; 96 return *this;
107 } 97 }
108 98
109 WebFormElement::operator HTMLFormElement*() const 99 WebFormElement::operator HTMLFormElement*() const
110 { 100 {
111 return toHTMLFormElement(m_private.get()); 101 return toHTMLFormElement(m_private.get());
112 } 102 }
113 103
114 } // namespace blink 104 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698