Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: components/autofill/core/browser/autofill_external_delegate.h

Issue 1134793004: Autofill item deletion on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 24 matching lines...) Expand all
35 AutofillDriver* driver); 35 AutofillDriver* driver);
36 virtual ~AutofillExternalDelegate(); 36 virtual ~AutofillExternalDelegate();
37 37
38 // AutofillPopupDelegate implementation. 38 // AutofillPopupDelegate implementation.
39 void OnPopupShown() override; 39 void OnPopupShown() override;
40 void OnPopupHidden() override; 40 void OnPopupHidden() override;
41 void DidSelectSuggestion(const base::string16& value, 41 void DidSelectSuggestion(const base::string16& value,
42 int identifier) override; 42 int identifier) override;
43 void DidAcceptSuggestion(const base::string16& value, 43 void DidAcceptSuggestion(const base::string16& value,
44 int identifier) override; 44 int identifier) override;
45 bool GetDeletionConfirmationText(const base::string16& value,
46 int identifier,
47 base::string16* title,
48 base::string16* body) override;
45 bool RemoveSuggestion(const base::string16& value, int identifier) override; 49 bool RemoveSuggestion(const base::string16& value, int identifier) override;
46 void ClearPreviewedForm() override; 50 void ClearPreviewedForm() override;
47 51
48 // Records and associates a query_id with web form data. Called 52 // Records and associates a query_id with web form data. Called
49 // when the renderer posts an Autofill query to the browser. |bounds| 53 // when the renderer posts an Autofill query to the browser. |bounds|
50 // is window relative. We might not want to display the warning if a website 54 // is window relative. We might not want to display the warning if a website
51 // has disabled Autocomplete because they have their own popup, and showing 55 // has disabled Autocomplete because they have their own popup, and showing
52 // our popup on to of theirs would be a poor user experience. 56 // our popup on to of theirs would be a poor user experience.
53 virtual void OnQuery(int query_id, 57 virtual void OnQuery(int query_id,
54 const FormData& form, 58 const FormData& form,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 std::vector<base::string16> data_list_labels_; 152 std::vector<base::string16> data_list_labels_;
149 153
150 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; 154 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_;
151 155
152 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); 156 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);
153 }; 157 };
154 158
155 } // namespace autofill 159 } // namespace autofill
156 160
157 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 161 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698