OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/common/autofill_messages.h" | 11 #include "chrome/common/autofill_messages.h" |
12 #include "chrome/common/chrome_constants.h" | 12 #include "chrome/common/chrome_constants.h" |
13 #include "chrome/renderer/autofill/form_autofill_util.h" | 13 #include "chrome/renderer/autofill/form_autofill_util.h" |
14 #include "chrome/renderer/autofill/password_autofill_manager.h" | 14 #include "chrome/renderer/autofill/password_autofill_manager.h" |
15 #include "content/public/renderer/render_view.h" | 15 #include "content/public/renderer/render_view.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
24 #include "ui/base/keycodes/keyboard_codes.h" | 24 #include "ui/base/keycodes/keyboard_codes.h" |
25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
26 #include "webkit/glue/form_data.h" | 26 #include "webkit/glue/form_data.h" |
27 #include "webkit/glue/form_data_predictions.h" | 27 #include "webkit/glue/form_data_predictions.h" |
28 #include "webkit/glue/form_field.h" | 28 #include "webkit/glue/form_field.h" |
29 #include "webkit/glue/password_form.h" | 29 #include "webkit/glue/password_form.h" |
30 | 30 |
31 using WebKit::WebFormControlElement; | 31 using WebKit::WebFormControlElement; |
32 using WebKit::WebFormElement; | 32 using WebKit::WebFormElement; |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 return; | 444 return; |
445 } | 445 } |
446 | 446 |
447 autofill_action_ = action; | 447 autofill_action_ = action; |
448 was_query_node_autofilled_ = field.is_autofilled; | 448 was_query_node_autofilled_ = field.is_autofilled; |
449 Send(new AutofillHostMsg_FillAutofillFormData( | 449 Send(new AutofillHostMsg_FillAutofillFormData( |
450 routing_id(), autofill_query_id_, form, field, unique_id)); | 450 routing_id(), autofill_query_id_, form, field, unique_id)); |
451 } | 451 } |
452 | 452 |
453 } // namespace autofill | 453 } // namespace autofill |
OLD | NEW |