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

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: Address most review comments and fix unit_tests 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 {
Ilya Sherman 2013/02/26 09:24:57 nit: IMO this is more of a "MockAutofillManagerDel
kaiwang 2013/02/26 22:18:40 As you can see in this CL, there are many other cl
16 public:
17 virtual ~TestAutofillManagerDelegate();
18
19 // AutofillManagerDelegate implementation.
20 virtual InfoBarService* GetInfoBarService() OVERRIDE;
21 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE;
22 virtual PrefService* GetPrefs() OVERRIDE;
23 virtual ProfileSyncServiceBase* GetProfileSyncService() OVERRIDE;
24 virtual void HideRequestAutocompleteDialog() OVERRIDE;
25 virtual bool IsSavingPasswordsEnabled() const OVERRIDE;
26 virtual void OnAutocheckoutError() OVERRIDE;
27 virtual void ShowAutofillSettings() OVERRIDE;
28 virtual void ShowPasswordGenerationBubble(
29 const gfx::Rect& bounds,
30 const content::PasswordForm& form,
31 autofill::PasswordGenerator* generator) OVERRIDE;
32 virtual void ShowAutocheckoutBubble(
33 const gfx::RectF& bounding_box,
34 const gfx::NativeView& native_view,
35 const base::Closure& callback) OVERRIDE;
36 virtual void ShowRequestAutocompleteDialog(
37 const FormData& form,
38 const GURL& source_url,
39 const content::SSLStatus& ssl_status,
40 const AutofillMetrics& metric_logger,
41 DialogType dialog_type,
42 const base::Callback<void(const FormStructure*)>& callback) OVERRIDE;
43 virtual void RequestAutocompleteDialogClosed() OVERRIDE;
44 virtual void ShowAutofillPopup(const gfx::RectF& element_bounds,
45 const std::vector<string16>& values,
46 const std::vector<string16>& labels,
47 const std::vector<string16>& icons,
48 const std::vector<int>& identifiers,
49 AutofillPopupDelegate* delegate) OVERRIDE;
50 virtual void HideAutofillPopup() OVERRIDE;
51 virtual void UpdateProgressBar(double value) OVERRIDE;
52 };
53
54 } // namespace autofill
55
56 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698