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