OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_VIEWS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/ui/autofill/autofill_dialog_view_tester.h" | 9 #include "chrome/browser/ui/autofill/autofill_dialog_view_tester.h" |
10 | 10 |
11 namespace autofill { | 11 namespace autofill { |
12 | 12 |
13 class AutofillDialogViews; | 13 class AutofillDialogViews; |
14 | 14 |
15 class AutofillDialogViewTesterViews : public AutofillDialogViewTester { | 15 class AutofillDialogViewTesterViews : public AutofillDialogViewTester { |
16 public: | 16 public: |
17 explicit AutofillDialogViewTesterViews(AutofillDialogViews* view); | 17 explicit AutofillDialogViewTesterViews(AutofillDialogViews* view); |
18 virtual ~AutofillDialogViewTesterViews(); | 18 ~AutofillDialogViewTesterViews() override; |
19 | 19 |
20 // TestableAutofillDialogView implementation: | 20 // TestableAutofillDialogView implementation: |
21 virtual void SubmitForTesting() override; | 21 void SubmitForTesting() override; |
22 virtual void CancelForTesting() override; | 22 void CancelForTesting() override; |
23 virtual base::string16 GetTextContentsOfInput(ServerFieldType type) override; | 23 base::string16 GetTextContentsOfInput(ServerFieldType type) override; |
24 virtual void SetTextContentsOfInput(ServerFieldType type, | 24 void SetTextContentsOfInput(ServerFieldType type, |
25 const base::string16& contents) override; | 25 const base::string16& contents) override; |
26 virtual void SetTextContentsOfSuggestionInput( | 26 void SetTextContentsOfSuggestionInput(DialogSection section, |
27 DialogSection section, | 27 const base::string16& text) override; |
28 const base::string16& text) override; | 28 void ActivateInput(ServerFieldType type) override; |
29 virtual void ActivateInput(ServerFieldType type) override; | 29 gfx::Size GetSize() const override; |
30 virtual gfx::Size GetSize() const override; | 30 content::WebContents* GetSignInWebContents() override; |
31 virtual content::WebContents* GetSignInWebContents() override; | 31 bool IsShowingOverlay() const override; |
32 virtual bool IsShowingOverlay() const override; | 32 bool IsShowingSection(DialogSection section) const override; |
33 virtual bool IsShowingSection(DialogSection section) const override; | |
34 | 33 |
35 private: | 34 private: |
36 AutofillDialogViews* view_; | 35 AutofillDialogViews* view_; |
37 | 36 |
38 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewTesterViews); | 37 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewTesterViews); |
39 }; | 38 }; |
40 | 39 |
41 } // namespace autofill | 40 } // namespace autofill |
42 | 41 |
43 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_VIEWS_H_ | 42 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_VIEWS_H_ |
OLD | NEW |