Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 /* | |
| 19 // This test class is meant to give tests a base AutofillExternalDelegate | 20 // 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 // class that requires no additional work to compile with (i.e. all the |
| 21 // pure virtual functions have been giving empty methods). | 22 // pure virtual functions have been giving empty methods). |
| 22 class TestAutofillExternalDelegate : public AutofillExternalDelegate { | 23 class TestAutofillExternalDelegate : public AutofillExternalDelegate { |
| 23 public: | 24 public: |
| 24 TestAutofillExternalDelegate(content::WebContents* web_contents, | 25 TestAutofillExternalDelegate(content::WebContents* web_contents, |
| 25 AutofillManager* autofill_manager); | 26 AutofillManager* autofill_manager); |
| 26 virtual ~TestAutofillExternalDelegate(); | 27 virtual ~TestAutofillExternalDelegate(); |
| 27 | 28 |
| 28 virtual void ApplyAutofillSuggestions( | 29 virtual void ApplyAutofillSuggestions( |
| 29 const std::vector<string16>& autofill_values, | 30 const std::vector<string16>& autofill_values, |
| 30 const std::vector<string16>& autofill_labels, | 31 const std::vector<string16>& autofill_labels, |
| 31 const std::vector<string16>& autofill_icons, | 32 const std::vector<string16>& autofill_icons, |
| 32 const std::vector<int>& autofill_unique_ids) OVERRIDE; | 33 const std::vector<int>& autofill_unique_ids) OVERRIDE; |
| 33 | 34 |
| 34 virtual void HideAutofillPopup() OVERRIDE; | 35 virtual void HideAutofillPopup() OVERRIDE; |
| 35 | 36 |
| 36 virtual void EnsurePopupForElement(const gfx::RectF& element_bounds) OVERRIDE; | 37 virtual void EnsurePopupForElement(const gfx::RectF& element_bounds) OVERRIDE; |
| 37 | 38 |
| 38 private: | 39 private: |
| 39 DISALLOW_COPY_AND_ASSIGN(TestAutofillExternalDelegate); | 40 DISALLOW_COPY_AND_ASSIGN(TestAutofillExternalDelegate); |
| 40 }; | 41 }; |
| 42 */ | |
|
Ilya Sherman
2013/02/26 09:24:57
Please delete the code rather than commenting it o
kaiwang
2013/02/26 22:18:40
Done.
| |
| 41 | 43 |
| 42 } // namespace autofill | 44 } // namespace autofill |
| 43 | 45 |
| 44 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ | 46 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| OLD | NEW |