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

Side by Side Diff: chrome/browser/autofill/test_autofill_external_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, 9 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_
6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ 6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_
7 7
8 #include "chrome/browser/autofill/autofill_external_delegate.h" 8 #include "chrome/browser/autofill/autofill_external_delegate.h"
9 9
10 class AutofillManager; 10 class AutofillManager;
11 11
12 namespace autofill { 12 namespace autofill {
13 13
14 // Calls the required functions on the given external delegate to cause the 14 // Calls the required functions on the given external delegate to cause the
15 // delegate to display a popup. 15 // delegate to display a popup.
16 void GenerateTestAutofillPopup( 16 void GenerateTestAutofillPopup(
17 AutofillExternalDelegate* autofill_external_delegate); 17 AutofillExternalDelegate* autofill_external_delegate);
18 18
19 // This test class is meant to give tests a base AutofillExternalDelegate
20 // class that requires no additional work to compile with (i.e. all the
21 // pure virtual functions have been giving empty methods).
22 class TestAutofillExternalDelegate : public AutofillExternalDelegate {
23 public:
24 TestAutofillExternalDelegate(content::WebContents* web_contents,
25 AutofillManager* autofill_manager);
26 virtual ~TestAutofillExternalDelegate();
27
28 virtual void ApplyAutofillSuggestions(
29 const std::vector<string16>& autofill_values,
30 const std::vector<string16>& autofill_labels,
31 const std::vector<string16>& autofill_icons,
32 const std::vector<int>& autofill_unique_ids) OVERRIDE;
33
34 virtual void HideAutofillPopup() OVERRIDE;
35
36 virtual void EnsurePopupForElement(const gfx::RectF& element_bounds) OVERRIDE;
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(TestAutofillExternalDelegate);
40 };
41
42 } // namespace autofill 19 } // namespace autofill
43 20
44 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ 21 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_manager_unittest.cc ('k') | chrome/browser/autofill/test_autofill_external_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698