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

Side by Side Diff: chrome/browser/autofill/test_autofill_manager_delegate.h

Issue 12340065: Move the UI related code from AutofillExternalDelegate to AutofillManagerDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try to fix AutofillTest.DisableAutocompleteWhileFilling Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_
7
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/autofill/autofill_manager_delegate.h"
10
11 namespace autofill {
12
13 // This class is only for easier writing of testings. All pure virtual functions
14 // have been giving empty methods.
15 class TestAutofillManagerDelegate : public AutofillManagerDelegate {
16 public:
17 TestAutofillManagerDelegate();
18 virtual ~TestAutofillManagerDelegate();
19
20 // AutofillManagerDelegate implementation.
21 virtual InfoBarService* GetInfoBarService() OVERRIDE;
22 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE;
23 virtual PrefService* GetPrefs() OVERRIDE;
24 virtual ProfileSyncServiceBase* GetProfileSyncService() OVERRIDE;
25 virtual void HideRequestAutocompleteDialog() OVERRIDE;
26 virtual bool IsSavingPasswordsEnabled() const OVERRIDE;
27 virtual void OnAutocheckoutError() OVERRIDE;
28 virtual void ShowAutofillSettings() OVERRIDE;
29 virtual void ShowPasswordGenerationBubble(
30 const gfx::Rect& bounds,
31 const content::PasswordForm& form,
32 autofill::PasswordGenerator* generator) OVERRIDE;
33 virtual void ShowAutocheckoutBubble(
34 const gfx::RectF& bounding_box,
35 const gfx::NativeView& native_view,
36 const base::Closure& callback) OVERRIDE;
37 virtual void ShowRequestAutocompleteDialog(
38 const FormData& form,
39 const GURL& source_url,
40 const content::SSLStatus& ssl_status,
41 const AutofillMetrics& metric_logger,
42 DialogType dialog_type,
43 const base::Callback<void(const FormStructure*)>& callback) OVERRIDE;
44 virtual void RequestAutocompleteDialogClosed() OVERRIDE;
45 virtual void ShowAutofillPopup(const gfx::RectF& element_bounds,
46 const std::vector<string16>& values,
47 const std::vector<string16>& labels,
48 const std::vector<string16>& icons,
49 const std::vector<int>& identifiers,
50 AutofillPopupDelegate* delegate) OVERRIDE;
51 virtual void HideAutofillPopup() OVERRIDE;
52 virtual void UpdateProgressBar(double value) OVERRIDE;
53
54 private:
55 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate);
56 };
57
58 } // namespace autofill
59
60 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/test_autofill_external_delegate.cc ('k') | chrome/browser/autofill/test_autofill_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698