NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / autofill / autofill_dialog_view_tester_cocoa.h
blob697a41a21dbbe46d1ea0d2d0f72958a27b2a97b3
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 virtual ~AutofillDialogViewTesterCocoa();
22 // TestableAutofillDialogView implementation:
23 virtual void SubmitForTesting() OVERRIDE;
24 virtual void CancelForTesting() OVERRIDE;
25 virtual base::string16 GetTextContentsOfInput(ServerFieldType type) OVERRIDE;
26 virtual void SetTextContentsOfInput(ServerFieldType type,
27 const base::string16& contents) OVERRIDE;
28 virtual void SetTextContentsOfSuggestionInput(
29 DialogSection section,
30 const base::string16& text) OVERRIDE;
31 virtual void ActivateInput(ServerFieldType type) OVERRIDE;
32 virtual gfx::Size GetSize() const OVERRIDE;
33 virtual content::WebContents* GetSignInWebContents() OVERRIDE;
34 virtual bool IsShowingOverlay() const OVERRIDE;
36 private:
37 AutofillDialogWindowController* controller() const;
39 AutofillDialogCocoa* dialog_;
41 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewTesterCocoa);
45 } // autofill
47 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_VIEW_TESTER_COCOA_H_