| 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 int position) override; | 47 int position) override; |
| 48 bool GetDeletionConfirmationText(const base::string16& value, | 48 bool GetDeletionConfirmationText(const base::string16& value, |
| 49 int identifier, | 49 int identifier, |
| 50 base::string16* title, | 50 base::string16* title, |
| 51 base::string16* body) override; | 51 base::string16* body) override; |
| 52 bool RemoveSuggestion(const base::string16& value, int identifier) override; | 52 bool RemoveSuggestion(const base::string16& value, int identifier) override; |
| 53 void ClearPreviewedForm() override; | 53 void ClearPreviewedForm() override; |
| 54 // Returns false for all popups prior to |onQuery|, true for credit card | 54 // Returns false for all popups prior to |onQuery|, true for credit card |
| 55 // popups after call to |onQuery|. | 55 // popups after call to |onQuery|. |
| 56 bool IsCreditCardPopup() override; | 56 bool IsCreditCardPopup() override; |
| 57 AutofillDriver* GetAutofillDriver() override; |
| 57 | 58 |
| 58 // Records and associates a query_id with web form data. Called | 59 // Records and associates a query_id with web form data. Called |
| 59 // when the renderer posts an Autofill query to the browser. |bounds| | 60 // when the renderer posts an Autofill query to the browser. |bounds| |
| 60 // is window relative. We might not want to display the warning if a website | 61 // is window relative. We might not want to display the warning if a website |
| 61 // has disabled Autocomplete because they have their own popup, and showing | 62 // has disabled Autocomplete because they have their own popup, and showing |
| 62 // our popup on to of theirs would be a poor user experience. | 63 // our popup on to of theirs would be a poor user experience. |
| 63 virtual void OnQuery(int query_id, | 64 virtual void OnQuery(int query_id, |
| 64 const FormData& form, | 65 const FormData& form, |
| 65 const FormFieldData& field, | 66 const FormFieldData& field, |
| 66 const gfx::RectF& element_bounds); | 67 const gfx::RectF& element_bounds); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 std::vector<base::string16> data_list_labels_; | 161 std::vector<base::string16> data_list_labels_; |
| 161 | 162 |
| 162 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; | 163 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; |
| 163 | 164 |
| 164 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); | 165 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace autofill | 168 } // namespace autofill |
| 168 | 169 |
| 169 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 170 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| OLD | NEW |