| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file provides the implementaiton of the password manager's autocomplete | 5 // This file provides the implementaiton of the password manager's autocomplete |
| 6 // component. | 6 // component. |
| 7 | 7 |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 | 9 |
| 10 #include "webkit/api/public/WebFrame.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
| 11 #include "webkit/api/public/WebNode.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h" |
| 12 #include "webkit/api/public/WebVector.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" |
| 13 #include "webkit/api/public/WebView.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" |
| 14 #include "webkit/glue/glue_util.h" | 14 #include "webkit/glue/glue_util.h" |
| 15 #include "webkit/glue/webpasswordautocompletelistener_impl.h" | 15 #include "webkit/glue/webpasswordautocompletelistener_impl.h" |
| 16 | 16 |
| 17 using namespace WebKit; | 17 using namespace WebKit; |
| 18 | 18 |
| 19 namespace webkit_glue { | 19 namespace webkit_glue { |
| 20 | 20 |
| 21 WebInputElementDelegate::WebInputElementDelegate() { | 21 WebInputElementDelegate::WebInputElementDelegate() { |
| 22 } | 22 } |
| 23 | 23 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 for (PasswordFormDomManager::LoginCollection::iterator it = | 150 for (PasswordFormDomManager::LoginCollection::iterator it = |
| 151 data_.additional_logins.begin(); | 151 data_.additional_logins.begin(); |
| 152 it != data_.additional_logins.end(); | 152 it != data_.additional_logins.end(); |
| 153 ++it) { | 153 ++it) { |
| 154 if (StartsWith(it->first, input, false)) | 154 if (StartsWith(it->first, input, false)) |
| 155 suggestions->push_back(it->first); | 155 suggestions->push_back(it->first); |
| 156 } | 156 } |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // webkit_glue | 159 } // webkit_glue |
| OLD | NEW |