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

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

Issue 1408423003: [Password Manager] Ignore autofilling invisible password fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added more handling. Created 5 years, 2 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 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 scoped_ptr<PasswordForm> CreatePasswordFormFromUnownedInputElements( 57 scoped_ptr<PasswordForm> CreatePasswordFormFromUnownedInputElements(
58 const blink::WebFrame& frame, 58 const blink::WebFrame& frame,
59 const ModifiedValues* nonscript_modified_values, 59 const ModifiedValues* nonscript_modified_values,
60 const FormsPredictionsMap* form_predictions); 60 const FormsPredictionsMap* form_predictions);
61 61
62 // Checks in a case-insensitive way if the autocomplete attribute for the given 62 // Checks in a case-insensitive way if the autocomplete attribute for the given
63 // |element| is present and has the specified |value_in_lowercase|. 63 // |element| is present and has the specified |value_in_lowercase|.
64 bool HasAutocompleteAttributeValue(const blink::WebInputElement& element, 64 bool HasAutocompleteAttributeValue(const blink::WebInputElement& element,
65 const char* value_in_lowercase); 65 const char* value_in_lowercase);
66 66
67 // Returns true if |input_element| is hidden.
vabr (Chromium) 2015/10/20 16:40:23 No need for this one, use IsWebNodeVisible from co
Pritam Nikam 2015/10/22 09:00:08 Done.
68 bool IsInputElementHidden(blink::WebInputElement* input_element);
69
67 } // namespace autofill 70 } // namespace autofill
68 71
69 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __ 72 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698