OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/string_split.h" | 9 #include "base/string_split.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/common/autofill_messages.h" | 13 #include "chrome/common/autofill_messages.h" |
14 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
15 #include "chrome/common/form_data.h" | 15 #include "chrome/common/form_data.h" |
16 #include "chrome/common/form_data_predictions.h" | 16 #include "chrome/common/form_data_predictions.h" |
17 #include "chrome/common/form_field_data.h" | 17 #include "chrome/common/form_field_data.h" |
18 #include "chrome/renderer/autofill/form_autofill_util.h" | 18 #include "chrome/renderer/autofill/form_autofill_util.h" |
19 #include "chrome/renderer/autofill/password_autofill_manager.h" | 19 #include "chrome/renderer/autofill/password_autofill_manager.h" |
20 #include "content/public/common/password_form.h" | 20 #include "content/public/common/password_form.h" |
21 #include "content/public/common/ssl_status.h" | 21 #include "content/public/common/ssl_status.h" |
22 #include "content/public/renderer/render_view.h" | 22 #include "content/public/renderer/render_view.h" |
23 #include "grit/chromium_strings.h" | 23 #include "grit/chromium_strings.h" |
24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
| 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeCollection.h" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeCollection.h" |
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" |
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
35 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" | |
36 #include "ui/base/keycodes/keyboard_codes.h" | 36 #include "ui/base/keycodes/keyboard_codes.h" |
37 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
38 | 38 |
39 using WebKit::WebAutofillClient; | 39 using WebKit::WebAutofillClient; |
40 using WebKit::WebFormControlElement; | 40 using WebKit::WebFormControlElement; |
41 using WebKit::WebFormElement; | 41 using WebKit::WebFormElement; |
42 using WebKit::WebFrame; | 42 using WebKit::WebFrame; |
43 using WebKit::WebInputElement; | 43 using WebKit::WebInputElement; |
44 using WebKit::WebKeyboardEvent; | 44 using WebKit::WebKeyboardEvent; |
45 using WebKit::WebNode; | 45 using WebKit::WebNode; |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 web_view->hidePopups(); | 754 web_view->hidePopups(); |
755 | 755 |
756 HideHostPopups(); | 756 HideHostPopups(); |
757 } | 757 } |
758 | 758 |
759 void AutofillAgent::HideHostPopups() { | 759 void AutofillAgent::HideHostPopups() { |
760 Send(new AutofillHostMsg_HideAutofillPopup(routing_id())); | 760 Send(new AutofillHostMsg_HideAutofillPopup(routing_id())); |
761 } | 761 } |
762 | 762 |
763 } // namespace autofill | 763 } // namespace autofill |
OLD | NEW |