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

Side by Side Diff: third_party/WebKit/public/web/WebFormElement.h

Issue 1954823002: Remove WebFormElement::getNamedElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/web/WebFormElement.cpp ('k') | no next file » | 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) 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 { 52 {
53 WebElement::assign(element); 53 WebElement::assign(element);
54 return *this; 54 return *this;
55 } 55 }
56 void assign(const WebFormElement& element) { WebElement::assign(element); } 56 void assign(const WebFormElement& element) { WebElement::assign(element); }
57 57
58 BLINK_EXPORT bool autoComplete() const; 58 BLINK_EXPORT bool autoComplete() const;
59 BLINK_EXPORT WebString action() const; 59 BLINK_EXPORT WebString action() const;
60 BLINK_EXPORT WebString name() const; 60 BLINK_EXPORT WebString name() const;
61 BLINK_EXPORT WebString method() const; 61 BLINK_EXPORT WebString method() const;
62 // FIXME: Deprecate and replace with WebVector<WebElement>. 62
63 BLINK_EXPORT void getNamedElements(const WebString&, WebVector<WebNode>&);
64 BLINK_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&) const; 63 BLINK_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&) const;
65 64
66 // NOTE: This function dispatches "invalid" events. Only call this if 65 // NOTE: This function dispatches "invalid" events. Only call this if
67 // required by a specification (e.g. requestAutocomplete()). 66 // required by a specification (e.g. requestAutocomplete()).
68 BLINK_EXPORT bool checkValidity(); 67 BLINK_EXPORT bool checkValidity();
69 68
70 enum AutocompleteResult { 69 enum AutocompleteResult {
71 AutocompleteResultSuccess, 70 AutocompleteResultSuccess,
72 AutocompleteResultErrorDisabled, 71 AutocompleteResultErrorDisabled,
73 AutocompleteResultErrorCancel, 72 AutocompleteResultErrorCancel,
74 AutocompleteResultErrorInvalid, 73 AutocompleteResultErrorInvalid,
75 }; 74 };
76 BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::AutocompleteResu lt); 75 BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::AutocompleteResu lt);
77 76
78 #if BLINK_IMPLEMENTATION 77 #if BLINK_IMPLEMENTATION
79 WebFormElement(HTMLFormElement*); 78 WebFormElement(HTMLFormElement*);
80 WebFormElement& operator=(HTMLFormElement*); 79 WebFormElement& operator=(HTMLFormElement*);
81 operator HTMLFormElement*() const; 80 operator HTMLFormElement*() const;
82 #endif 81 #endif
83 }; 82 };
84 83
85 DECLARE_WEB_NODE_TYPE_CASTS(WebFormElement); 84 DECLARE_WEB_NODE_TYPE_CASTS(WebFormElement);
86 85
87 } // namespace blink 86 } // namespace blink
88 87
89 #endif 88 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFormElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698