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 "base/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
6 #include "components/autofill/browser/autocomplete_history_manager.h" | 6 #include "components/autofill/browser/autocomplete_history_manager.h" |
7 #include "components/autofill/browser/autofill_external_delegate.h" | 7 #include "components/autofill/browser/autofill_external_delegate.h" |
8 #include "components/autofill/browser/autofill_manager.h" | 8 #include "components/autofill/browser/autofill_manager.h" |
9 #include "components/autofill/common/autofill_messages.h" | 9 #include "components/autofill/common/autofill_messages.h" |
10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
11 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
12 #include "content/public/browser/notification_source.h" | 12 #include "content/public/browser/notification_source.h" |
13 #include "content/public/browser/notification_types.h" | 13 #include "content/public/browser/notification_types.h" |
14 #include "content/public/browser/render_view_host.h" | 14 #include "content/public/browser/render_view_host.h" |
15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
16 #include "grit/chromium_strings.h" | 16 #include "grit/component_resources.h" |
17 #include "grit/generated_resources.h" | |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" |
19 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
20 | 19 |
21 #if defined(OS_ANDROID) | 20 #if defined(OS_ANDROID) |
22 #include "content/public/browser/android/content_view_core.h" | 21 #include "content/public/browser/android/content_view_core.h" |
23 #endif | 22 #endif |
24 | 23 |
25 using content::RenderViewHost; | 24 using content::RenderViewHost; |
26 using WebKit::WebAutofillClient; | 25 using WebKit::WebAutofillClient; |
27 | 26 |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 if (!*content::Details<bool>(details).ptr()) | 384 if (!*content::Details<bool>(details).ptr()) |
386 autofill_manager_->delegate()->HideAutofillPopup(); | 385 autofill_manager_->delegate()->HideAutofillPopup(); |
387 } else if (type == content::NOTIFICATION_NAV_ENTRY_COMMITTED) { | 386 } else if (type == content::NOTIFICATION_NAV_ENTRY_COMMITTED) { |
388 autofill_manager_->delegate()->HideAutofillPopup(); | 387 autofill_manager_->delegate()->HideAutofillPopup(); |
389 } else { | 388 } else { |
390 NOTREACHED(); | 389 NOTREACHED(); |
391 } | 390 } |
392 } | 391 } |
393 | 392 |
394 } // namespace autofill | 393 } // namespace autofill |
OLD | NEW |