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

Side by Side Diff: components/autofill/content/renderer/form_autofill_util.h

Issue 1106313002: Revert of Limit form-less Autofilling to pages that look like checkout pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « components/autofill.gypi ('k') | components/autofill/content/renderer/form_autofill_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // Fills |form| with the form data derived from |fieldsets|, |control_elements| 116 // Fills |form| with the form data derived from |fieldsets|, |control_elements|
117 // and |origin|. If |field| is non-NULL, fill it with the FormField 117 // and |origin|. If |field| is non-NULL, fill it with the FormField
118 // representation for |element|. 118 // representation for |element|.
119 // |extract_mask| usage and the return value are the same as 119 // |extract_mask| usage and the return value are the same as
120 // WebFormElementToFormData() above. 120 // WebFormElementToFormData() above.
121 bool UnownedFormElementsAndFieldSetsToFormData( 121 bool UnownedFormElementsAndFieldSetsToFormData(
122 const std::vector<blink::WebElement>& fieldsets, 122 const std::vector<blink::WebElement>& fieldsets,
123 const std::vector<blink::WebFormControlElement>& control_elements, 123 const std::vector<blink::WebFormControlElement>& control_elements,
124 const blink::WebFormControlElement* element, 124 const blink::WebFormControlElement* element,
125 const blink::WebDocument& document, 125 const GURL& origin,
126 ExtractMask extract_mask, 126 ExtractMask extract_mask,
127 FormData* form, 127 FormData* form,
128 FormFieldData* field); 128 FormFieldData* field);
129 129
130 // Finds the form that contains |element| and returns it in |form|. If |field| 130 // Finds the form that contains |element| and returns it in |form|. If |field|
131 // is non-NULL, fill it with the FormField representation for |element|. 131 // is non-NULL, fill it with the FormField representation for |element|.
132 // Returns false if the form is not found or cannot be serialized. 132 // Returns false if the form is not found or cannot be serialized.
133 bool FindFormAndFieldForFormControlElement( 133 bool FindFormAndFieldForFormControlElement(
134 const blink::WebFormControlElement& element, 134 const blink::WebFormControlElement& element,
135 FormData* form, 135 FormData* form,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // This function checks whether the children of |element| 172 // This function checks whether the children of |element|
173 // are of the type <script>, <meta>, or <title>. 173 // are of the type <script>, <meta>, or <title>.
174 bool IsWebElementEmpty(const blink::WebElement& element); 174 bool IsWebElementEmpty(const blink::WebElement& element);
175 175
176 // Return a gfx::RectF that is the bounding box for |element| scaled by |scale|. 176 // Return a gfx::RectF that is the bounding box for |element| scaled by |scale|.
177 gfx::RectF GetScaledBoundingBox(float scale, blink::WebElement* element); 177 gfx::RectF GetScaledBoundingBox(float scale, blink::WebElement* element);
178 178
179 } // namespace autofill 179 } // namespace autofill
180 180
181 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ 181 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_
OLDNEW
« no previous file with comments | « components/autofill.gypi ('k') | components/autofill/content/renderer/form_autofill_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698