| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/autofill/core/browser/autofill_external_delegate.h" | 5 #include "components/autofill/core/browser/autofill_external_delegate.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/metrics/sparse_histogram.h" | 9 #include "base/metrics/sparse_histogram.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 namespace autofill { | 43 namespace autofill { |
| 44 | 44 |
| 45 AutofillExternalDelegate::AutofillExternalDelegate(AutofillManager* manager, | 45 AutofillExternalDelegate::AutofillExternalDelegate(AutofillManager* manager, |
| 46 AutofillDriver* driver) | 46 AutofillDriver* driver) |
| 47 : manager_(manager), | 47 : manager_(manager), |
| 48 driver_(driver), | 48 driver_(driver), |
| 49 query_id_(0), | 49 query_id_(0), |
| 50 display_warning_if_disabled_(false), | 50 display_warning_if_disabled_(false), |
| 51 has_suggestion_(false), | 51 has_suggestion_(false), |
| 52 has_shown_popup_for_current_edit_(false), | 52 has_shown_popup_for_current_edit_(false), |
| 53 weak_ptr_factory_(this), | 53 has_shown_address_book_prompt(false), |
| 54 has_shown_address_book_prompt(false) { | 54 weak_ptr_factory_(this) { |
| 55 DCHECK(manager); | 55 DCHECK(manager); |
| 56 } | 56 } |
| 57 | 57 |
| 58 AutofillExternalDelegate::~AutofillExternalDelegate() {} | 58 AutofillExternalDelegate::~AutofillExternalDelegate() {} |
| 59 | 59 |
| 60 void AutofillExternalDelegate::OnQuery(int query_id, | 60 void AutofillExternalDelegate::OnQuery(int query_id, |
| 61 const FormData& form, | 61 const FormData& form, |
| 62 const FormFieldData& field, | 62 const FormFieldData& field, |
| 63 const gfx::RectF& element_bounds, | 63 const gfx::RectF& element_bounds, |
| 64 bool display_warning_if_disabled) { | 64 bool display_warning_if_disabled) { |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 POPUP_ITEM_ID_DATALIST_ENTRY); | 401 POPUP_ITEM_ID_DATALIST_ENTRY); |
| 402 } | 402 } |
| 403 | 403 |
| 404 #if defined(OS_MACOSX) && !defined(OS_IOS) | 404 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 405 void AutofillExternalDelegate::PingRenderer() { | 405 void AutofillExternalDelegate::PingRenderer() { |
| 406 driver_->PingRenderer(); | 406 driver_->PingRenderer(); |
| 407 } | 407 } |
| 408 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | 408 #endif // defined(OS_MACOSX) && !defined(OS_IOS) |
| 409 | 409 |
| 410 } // namespace autofill | 410 } // namespace autofill |
| OLD | NEW |