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

Side by Side Diff: public/web/WebInputElement.h

Issue 133443011: Add text field change handling for autofill preview in textarea element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update documentation as per tkent's review comments Created 6 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 | « public/web/WebFormControlElement.h ('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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 BLINK_EXPORT bool isRadioButton() const; 70 BLINK_EXPORT bool isRadioButton() const;
71 BLINK_EXPORT bool isCheckbox() const; 71 BLINK_EXPORT bool isCheckbox() const;
72 BLINK_EXPORT bool autoComplete() const; 72 BLINK_EXPORT bool autoComplete() const;
73 BLINK_EXPORT int maxLength() const; 73 BLINK_EXPORT int maxLength() const;
74 BLINK_EXPORT bool isActivatedSubmit() const; 74 BLINK_EXPORT bool isActivatedSubmit() const;
75 BLINK_EXPORT void setActivatedSubmit(bool); 75 BLINK_EXPORT void setActivatedSubmit(bool);
76 BLINK_EXPORT int size() const; 76 BLINK_EXPORT int size() const;
77 BLINK_EXPORT void setValue(const WebString&, bool sendChangeEvent = fals e); 77 BLINK_EXPORT void setValue(const WebString&, bool sendChangeEvent = fals e);
78 BLINK_EXPORT void setChecked(bool, bool sendChangeEvent = false); 78 BLINK_EXPORT void setChecked(bool, bool sendChangeEvent = false);
79 BLINK_EXPORT WebString value() const; 79 BLINK_EXPORT WebString value() const;
80 // This returns the non-sanitized, exact value inside the text field.
81 BLINK_EXPORT WebString editingValue() const;
82 // Sets the value inside the text field without being sanitized. 80 // Sets the value inside the text field without being sanitized.
83 // Can't be used if a renderer doesn't exist or on a non text field type . 81 // Can't be used if a renderer doesn't exist or on a non text field type .
84 // Caret will be moved to the end. 82 // Caret will be moved to the end.
85 BLINK_EXPORT void setEditingValue(const WebString&); 83 BLINK_EXPORT void setEditingValue(const WebString&);
86 BLINK_EXPORT void setSuggestedValue(const WebString&); 84 BLINK_EXPORT void setSuggestedValue(const WebString&);
87 BLINK_EXPORT WebString suggestedValue() const; 85 BLINK_EXPORT WebString suggestedValue() const;
88 BLINK_EXPORT void setSelectionRange(int, int); 86 BLINK_EXPORT void setSelectionRange(int, int);
89 BLINK_EXPORT int selectionStart() const;
90 BLINK_EXPORT int selectionEnd() const;
91 BLINK_EXPORT bool isValidValue(const WebString&) const; 87 BLINK_EXPORT bool isValidValue(const WebString&) const;
92 BLINK_EXPORT bool isChecked() const; 88 BLINK_EXPORT bool isChecked() const;
93 BLINK_EXPORT bool isMultiple() const; 89 BLINK_EXPORT bool isMultiple() const;
94 90
95 BLINK_EXPORT WebElementCollection dataListOptions() const; 91 BLINK_EXPORT WebElementCollection dataListOptions() const;
96 92
97 // Return the localized value for this input type. 93 // Return the localized value for this input type.
98 BLINK_EXPORT WebString localizeValue(const WebString&) const; 94 BLINK_EXPORT WebString localizeValue(const WebString&) const;
99 95
100 BLINK_EXPORT bool isSpeechInputEnabled() const; 96 BLINK_EXPORT bool isSpeechInputEnabled() const;
(...skipping 23 matching lines...) Expand all
124 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); 120 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*);
125 121
126 inline const WebInputElement* toWebInputElement(const WebElement* element) 122 inline const WebInputElement* toWebInputElement(const WebElement* element)
127 { 123 {
128 return toWebInputElement(const_cast<WebElement*>(element)); 124 return toWebInputElement(const_cast<WebElement*>(element));
129 } 125 }
130 126
131 } // namespace blink 127 } // namespace blink
132 128
133 #endif 129 #endif
OLDNEW
« no previous file with comments | « public/web/WebFormControlElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698