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

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

Issue 1208063002: [Autofill/Autocomplete Feature] Substring matching instead of prefix matching (Blink). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 | « 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Returns true if sumit is activated. 103 // Returns true if sumit is activated.
104 BLINK_EXPORT bool isActivatedSubmit() const; 104 BLINK_EXPORT bool isActivatedSubmit() const;
105 105
106 // Returns the name that should be used for the specified |element| when 106 // Returns the name that should be used for the specified |element| when
107 // storing autofill data. This is either the field name or its id, an empty 107 // storing autofill data. This is either the field name or its id, an empty
108 // string if it has no name and no id. 108 // string if it has no name and no id.
109 BLINK_EXPORT WebString nameForAutofill() const; 109 BLINK_EXPORT WebString nameForAutofill() const;
110 110
111 BLINK_EXPORT WebFormElement form() const; 111 BLINK_EXPORT WebFormElement form() const;
112 112
113 // Sets the text selection start offset for the suggested value for element.
114 BLINK_EXPORT void setSuggestedValueStart(int);
115
116 // Returns the text selection start offset for the suggested value for eleme nt.
117 BLINK_EXPORT int suggestedValueStart() const;
118
113 #if BLINK_IMPLEMENTATION 119 #if BLINK_IMPLEMENTATION
114 WebFormControlElement(const PassRefPtrWillBeRawPtr<HTMLFormControlElement>&) ; 120 WebFormControlElement(const PassRefPtrWillBeRawPtr<HTMLFormControlElement>&) ;
115 WebFormControlElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormContro lElement>&); 121 WebFormControlElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormContro lElement>&);
116 operator PassRefPtrWillBeRawPtr<HTMLFormControlElement>() const; 122 operator PassRefPtrWillBeRawPtr<HTMLFormControlElement>() const;
117 #endif 123 #endif
118 }; 124 };
119 125
120 } // namespace blink 126 } // namespace blink
121 127
122 #endif 128 #endif
OLDNEW
« no previous file with comments | « Source/web/WebFormControlElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698