Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / autofill / autofill_dialog_view_tester_cocoa.h
blob3e2a76a788bcb7768da9ae65e0d1c1debd707a41
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_COCOA_H_
8 #include "base/basictypes.h"
9 #include "chrome/browser/ui/autofill/autofill_dialog_view_tester.h"
11 @class AutofillDialogWindowController;
13 namespace autofill {
15 class AutofillDialogCocoa;
17 class AutofillDialogViewTesterCocoa: public AutofillDialogViewTester {
18 public:
19 explicit AutofillDialogViewTesterCocoa(AutofillDialogCocoa* dialog);
20 ~AutofillDialogViewTesterCocoa() override;
22 // TestableAutofillDialogView implementation:
23 void SubmitForTesting() override;
24 void CancelForTesting() override;
25 base::string16 GetTextContentsOfInput(ServerFieldType type) override;
26 void SetTextContentsOfInput(ServerFieldType type,
27 const base::string16& contents) override;
28 void SetTextContentsOfSuggestionInput(DialogSection section,
29 const base::string16& text) override;
30 void ActivateInput(ServerFieldType type) override;
31 gfx::Size GetSize() const override;
32 bool IsShowingSection(DialogSection section) const override;
34 private:
35 AutofillDialogWindowController* controller() const;
37 AutofillDialogCocoa* dialog_;
39 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewTesterCocoa);
43 } // autofill
45 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_COCOA_H_