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

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

Issue 853523004: Autofill: Set requirements for number of recognized fields in an autofillable form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, change variable name Created 5 years, 10 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
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 #include "components/autofill/content/renderer/form_autofill_util.h" 5 #include "components/autofill/content/renderer/form_autofill_util.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 const std::vector<blink::WebElement>& fieldsets, 1150 const std::vector<blink::WebElement>& fieldsets,
1151 const std::vector<blink::WebFormControlElement>& control_elements, 1151 const std::vector<blink::WebFormControlElement>& control_elements,
1152 const blink::WebFormControlElement* element, 1152 const blink::WebFormControlElement* element,
1153 const GURL& origin, 1153 const GURL& origin,
1154 RequirementsMask requirements, 1154 RequirementsMask requirements,
1155 ExtractMask extract_mask, 1155 ExtractMask extract_mask,
1156 FormData* form, 1156 FormData* form,
1157 FormFieldData* field) { 1157 FormFieldData* field) {
1158 form->origin = origin; 1158 form->origin = origin;
1159 form->user_submitted = false; 1159 form->user_submitted = false;
1160 form->is_form_tag = false;
1160 1161
1161 return FormOrFieldsetsToFormData(nullptr, element, fieldsets, 1162 return FormOrFieldsetsToFormData(nullptr, element, fieldsets,
1162 control_elements, requirements, extract_mask, 1163 control_elements, requirements, extract_mask,
1163 form, field); 1164 form, field);
1164 } 1165 }
1165 1166
1166 bool FindFormAndFieldForFormControlElement(const WebFormControlElement& element, 1167 bool FindFormAndFieldForFormControlElement(const WebFormControlElement& element,
1167 FormData* form, 1168 FormData* form,
1168 FormFieldData* field, 1169 FormFieldData* field,
1169 RequirementsMask requirements) { 1170 RequirementsMask requirements) {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 1367
1367 gfx::RectF GetScaledBoundingBox(float scale, WebElement* element) { 1368 gfx::RectF GetScaledBoundingBox(float scale, WebElement* element) {
1368 gfx::Rect bounding_box(element->boundsInViewportSpace()); 1369 gfx::Rect bounding_box(element->boundsInViewportSpace());
1369 return gfx::RectF(bounding_box.x() * scale, 1370 return gfx::RectF(bounding_box.x() * scale,
1370 bounding_box.y() * scale, 1371 bounding_box.y() * scale,
1371 bounding_box.width() * scale, 1372 bounding_box.width() * scale,
1372 bounding_box.height() * scale); 1373 bounding_box.height() * scale);
1373 } 1374 }
1374 1375
1375 } // namespace autofill 1376 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698