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

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

Issue 1768953002: Remove WebFormElement::wasUserSubmitted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 BLINK_EXPORT bool wasUserSubmitted() const;
63 // FIXME: Deprecate and replace with WebVector<WebElement>. 62 // FIXME: Deprecate and replace with WebVector<WebElement>.
64 BLINK_EXPORT void getNamedElements(const WebString&, WebVector<WebNode>&); 63 BLINK_EXPORT void getNamedElements(const WebString&, WebVector<WebNode>&);
65 BLINK_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&) const; 64 BLINK_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&) const;
66 65
67 // NOTE: This function dispatches "invalid" events. Only call this if 66 // NOTE: This function dispatches "invalid" events. Only call this if
68 // required by a specification (e.g. requestAutocomplete()). 67 // required by a specification (e.g. requestAutocomplete()).
69 BLINK_EXPORT bool checkValidity(); 68 BLINK_EXPORT bool checkValidity();
70 69
71 enum AutocompleteResult { 70 enum AutocompleteResult {
72 AutocompleteResultSuccess, 71 AutocompleteResultSuccess,
73 AutocompleteResultErrorDisabled, 72 AutocompleteResultErrorDisabled,
74 AutocompleteResultErrorCancel, 73 AutocompleteResultErrorCancel,
75 AutocompleteResultErrorInvalid, 74 AutocompleteResultErrorInvalid,
76 }; 75 };
77 BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::AutocompleteResu lt); 76 BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::AutocompleteResu lt);
78 77
79 #if BLINK_IMPLEMENTATION 78 #if BLINK_IMPLEMENTATION
80 WebFormElement(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); 79 WebFormElement(const PassRefPtrWillBeRawPtr<HTMLFormElement>&);
81 WebFormElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); 80 WebFormElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormElement>&);
82 operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const; 81 operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const;
83 #endif 82 #endif
84 }; 83 };
85 84
86 DECLARE_WEB_NODE_TYPE_CASTS(WebFormElement); 85 DECLARE_WEB_NODE_TYPE_CASTS(WebFormElement);
87 86
88 } // namespace blink 87 } // namespace blink
89 88
90 #endif 89 #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