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

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

Issue 1955963002: [Autofill] Send events to fields being autofilled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added focus check 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/WebFormControlElement.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 BLINK_EXPORT bool isAutofilled() const; 60 BLINK_EXPORT bool isAutofilled() const;
61 BLINK_EXPORT void setAutofilled(bool); 61 BLINK_EXPORT void setAutofilled(bool);
62 62
63 // Returns true if autocomplete attribute of the element is not set as "off" . 63 // Returns true if autocomplete attribute of the element is not set as "off" .
64 BLINK_EXPORT bool autoComplete() const; 64 BLINK_EXPORT bool autoComplete() const;
65 65
66 // Sets value for input element, textarea element and select element. For se lect 66 // Sets value for input element, textarea element and select element. For se lect
67 // element it finds the option with value matches the given parameter and ma ke the 67 // element it finds the option with value matches the given parameter and ma ke the
68 // option as the current selection. 68 // option as the current selection.
69 BLINK_EXPORT void setValue(const WebString&, bool sendEvents = false); 69 BLINK_EXPORT void setValue(const WebString&, bool sendEvents = false);
70 // Sets the autofilled value for input element, textarea element and select
71 // element and sends a sequence of events to the element.
72 BLINK_EXPORT void setAutofillValue(const WebString&);
70 // Returns value of element. For select element, it returns the value of 73 // Returns value of element. For select element, it returns the value of
71 // the selected option if present. If no selected option, an empty string 74 // the selected option if present. If no selected option, an empty string
72 // is returned. If element doesn't fall into input element, textarea element 75 // is returned. If element doesn't fall into input element, textarea element
73 // and select element categories, a null string is returned. 76 // and select element categories, a null string is returned.
74 BLINK_EXPORT WebString value() const; 77 BLINK_EXPORT WebString value() const;
75 // Sets suggested value for element. For select element it finds the option 78 // Sets suggested value for element. For select element it finds the option
76 // with value matches the given parameter and make the option as the suggest ed 79 // with value matches the given parameter and make the option as the suggest ed
77 // selection. The goal of introducing suggested value is to not leak any inf ormation 80 // selection. The goal of introducing suggested value is to not leak any inf ormation
78 // to JavaScript. 81 // to JavaScript.
79 BLINK_EXPORT void setSuggestedValue(const WebString&); 82 BLINK_EXPORT void setSuggestedValue(const WebString&);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 WebFormControlElement& operator=(HTMLFormControlElement*); 115 WebFormControlElement& operator=(HTMLFormControlElement*);
113 operator HTMLFormControlElement*() const; 116 operator HTMLFormControlElement*() const;
114 #endif 117 #endif
115 }; 118 };
116 119
117 DECLARE_WEB_NODE_TYPE_CASTS(WebFormControlElement); 120 DECLARE_WEB_NODE_TYPE_CASTS(WebFormControlElement);
118 121
119 } // namespace blink 122 } // namespace blink
120 123
121 #endif 124 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFormControlElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698