OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/i18n/rtl.h" |
9 #include "components/autofill/browser/autofill_manager_delegate.h" | 10 #include "components/autofill/browser/autofill_manager_delegate.h" |
10 | 11 |
11 namespace autofill { | 12 namespace autofill { |
12 | 13 |
13 // This class is only for easier writing of testings. All pure virtual functions | 14 // This class is only for easier writing of testings. All pure virtual functions |
14 // have been giving empty methods. | 15 // have been giving empty methods. |
15 class TestAutofillManagerDelegate : public AutofillManagerDelegate { | 16 class TestAutofillManagerDelegate : public AutofillManagerDelegate { |
16 public: | 17 public: |
17 TestAutofillManagerDelegate(); | 18 TestAutofillManagerDelegate(); |
18 virtual ~TestAutofillManagerDelegate(); | 19 virtual ~TestAutofillManagerDelegate(); |
(...skipping 17 matching lines...) Expand all Loading... |
36 const base::Callback<void(bool)>& callback) OVERRIDE; | 37 const base::Callback<void(bool)>& callback) OVERRIDE; |
37 virtual void HideAutocheckoutBubble() OVERRIDE; | 38 virtual void HideAutocheckoutBubble() OVERRIDE; |
38 virtual void ShowRequestAutocompleteDialog( | 39 virtual void ShowRequestAutocompleteDialog( |
39 const FormData& form, | 40 const FormData& form, |
40 const GURL& source_url, | 41 const GURL& source_url, |
41 DialogType dialog_type, | 42 DialogType dialog_type, |
42 const base::Callback<void(const FormStructure*, | 43 const base::Callback<void(const FormStructure*, |
43 const std::string&)>& callback) OVERRIDE; | 44 const std::string&)>& callback) OVERRIDE; |
44 virtual void ShowAutofillPopup( | 45 virtual void ShowAutofillPopup( |
45 const gfx::RectF& element_bounds, | 46 const gfx::RectF& element_bounds, |
| 47 base::i18n::TextDirection text_direction, |
46 const std::vector<base::string16>& values, | 48 const std::vector<base::string16>& values, |
47 const std::vector<base::string16>& labels, | 49 const std::vector<base::string16>& labels, |
48 const std::vector<base::string16>& icons, | 50 const std::vector<base::string16>& icons, |
49 const std::vector<int>& identifiers, | 51 const std::vector<int>& identifiers, |
50 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE; | 52 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE; |
51 virtual void HideAutofillPopup() OVERRIDE; | 53 virtual void HideAutofillPopup() OVERRIDE; |
52 virtual void UpdateProgressBar(double value) OVERRIDE; | 54 virtual void UpdateProgressBar(double value) OVERRIDE; |
53 | 55 |
54 private: | 56 private: |
55 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); | 57 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); |
56 }; | 58 }; |
57 | 59 |
58 } // namespace autofill | 60 } // namespace autofill |
59 | 61 |
60 #endif // COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ | 62 #endif // COMPONENTS_AUTOFILL_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ |
OLD | NEW |