| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/autofill/autofill_agent.h" | 5 #include "chrome/renderer/autofill/autofill_agent.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/common/autofill_messages.h" | 8 #include "chrome/common/autofill_messages.h" |
| 9 #include "chrome/common/chrome_constants.h" | 9 #include "chrome/common/chrome_constants.h" |
| 10 #include "chrome/renderer/autofill/password_autofill_manager.h" | 10 #include "chrome/renderer/autofill/password_autofill_manager.h" |
| 11 #include "chrome/renderer/render_view.h" | 11 #include "chrome/renderer/render_view.h" |
| 12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 18 #include "ui/base/keycodes/keyboard_codes.h" | 19 #include "ui/base/keycodes/keyboard_codes.h" |
| 19 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 20 #include "webkit/glue/form_data.h" | 21 #include "webkit/glue/form_data.h" |
| 21 #include "webkit/glue/form_field.h" | 22 #include "webkit/glue/form_field.h" |
| 22 #include "webkit/glue/password_form.h" | 23 #include "webkit/glue/password_form.h" |
| 23 | 24 |
| 24 using WebKit::WebFormControlElement; | 25 using WebKit::WebFormControlElement; |
| 25 using WebKit::WebFormElement; | 26 using WebKit::WebFormElement; |
| 26 using WebKit::WebFrame; | 27 using WebKit::WebFrame; |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 // WebFormControlElementToFormField does not scrape the DOM for the field | 376 // WebFormControlElementToFormField does not scrape the DOM for the field |
| 376 // label, so find the label here. | 377 // label, so find the label here. |
| 377 // TODO(jhawkins): Add form and field identities so we can use the cached form | 378 // TODO(jhawkins): Add form and field identities so we can use the cached form |
| 378 // data in FormManager. | 379 // data in FormManager. |
| 379 field->set_label(FormManager::LabelForElement(element)); | 380 field->set_label(FormManager::LabelForElement(element)); |
| 380 | 381 |
| 381 return true; | 382 return true; |
| 382 } | 383 } |
| 383 | 384 |
| 384 } // namespace autofill | 385 } // namespace autofill |
| OLD | NEW |