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

Side by Side Diff: Source/web/WebPasswordFormUtils.cpp

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebPasswordFormUtils.h ('k') | Source/web/WebPerformance.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* ***** BEGIN LICENSE BLOCK ***** 1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 * 3 *
4 * The contents of this file are subject to the Mozilla Public License Version 4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with 5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at 6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/ 7 * http://www.mozilla.org/MPL/
8 * 8 *
9 * Software distributed under the License is distributed on an "AS IS" basis, 9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 #include "config.h" 43 #include "config.h"
44 #include "WebPasswordFormUtils.h" 44 #include "WebPasswordFormUtils.h"
45 45
46 #include "HTMLNames.h" 46 #include "HTMLNames.h"
47 #include "core/html/HTMLFormElement.h" 47 #include "core/html/HTMLFormElement.h"
48 #include "core/html/HTMLInputElement.h" 48 #include "core/html/HTMLInputElement.h"
49 49
50 using namespace WebCore; 50 using namespace WebCore;
51 51
52 namespace WebKit { 52 namespace blink {
53 53
54 // Maximum number of password fields we will observe before throwing our 54 // Maximum number of password fields we will observe before throwing our
55 // hands in the air and giving up with a given form. 55 // hands in the air and giving up with a given form.
56 static const size_t maxPasswords = 3; 56 static const size_t maxPasswords = 3;
57 57
58 void findPasswordFormFields(HTMLFormElement* form, PasswordFormFields* fields) 58 void findPasswordFormFields(HTMLFormElement* form, PasswordFormFields* fields)
59 { 59 {
60 ASSERT(form); 60 ASSERT(form);
61 ASSERT(fields); 61 ASSERT(fields);
62 62
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 latestInputElement = inputElement; 94 latestInputElement = inputElement;
95 // We ignore elements that have no value. Unlike userName, alternate UserNames 95 // We ignore elements that have no value. Unlike userName, alternate UserNames
96 // is used only for autofill, not for form identification, and blank autofill 96 // is used only for autofill, not for form identification, and blank autofill
97 // entries are not useful. 97 // entries are not useful.
98 if (!inputElement->value().isEmpty()) 98 if (!inputElement->value().isEmpty())
99 fields->alternateUserNames.append(inputElement->value()); 99 fields->alternateUserNames.append(inputElement->value());
100 } 100 }
101 } 101 }
102 } 102 }
103 103
104 } // namespace WebKit 104 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebPasswordFormUtils.h ('k') | Source/web/WebPerformance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698