Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.h

Issue 135933003: rAc: split TestableAutofillDialogView implementation into its own class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with mac nits fixed Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/autofill/autofill_dialog_views.h
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.h b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
index 5d7b58083ccbc947549322e77e050b3c316cb91f..e1d7b182104f4966de7f3e9f6211892a860349a3 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.h
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
@@ -14,7 +14,6 @@
#include "chrome/browser/ui/autofill/autofill_dialog_types.h"
#include "chrome/browser/ui/autofill/autofill_dialog_view.h"
#include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
-#include "chrome/browser/ui/autofill/testable_autofill_dialog_view.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/controls/button/menu_button_listener.h"
@@ -61,7 +60,6 @@ class InfoBubble;
// Views toolkit implementation of the Autofill dialog that handles the
// imperative autocomplete API call.
class AutofillDialogViews : public AutofillDialogView,
- public TestableAutofillDialogView,
public views::DialogDelegateView,
public views::WidgetObserver,
public views::TextfieldController,
@@ -97,23 +95,8 @@ class AutofillDialogViews : public AutofillDialogView,
virtual const content::NavigationController* ShowSignIn() OVERRIDE;
virtual void HideSignIn() OVERRIDE;
virtual void ModelChanged() OVERRIDE;
- virtual TestableAutofillDialogView* GetTestableView() OVERRIDE;
virtual void OnSignInResize(const gfx::Size& pref_size) OVERRIDE;
- // TestableAutofillDialogView implementation:
- virtual void SubmitForTesting() OVERRIDE;
- virtual void CancelForTesting() OVERRIDE;
- virtual base::string16 GetTextContentsOfInput(ServerFieldType type) OVERRIDE;
- virtual void SetTextContentsOfInput(ServerFieldType type,
- const base::string16& contents) OVERRIDE;
- virtual void SetTextContentsOfSuggestionInput(
- DialogSection section,
- const base::string16& text) OVERRIDE;
- virtual void ActivateInput(ServerFieldType type) OVERRIDE;
- virtual gfx::Size GetSize() const OVERRIDE;
- virtual content::WebContents* GetSignInWebContents() OVERRIDE;
- virtual bool IsShowingOverlay() const OVERRIDE;
-
// views::View implementation.
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual gfx::Size GetMinimumSize() OVERRIDE;
@@ -178,6 +161,8 @@ class AutofillDialogViews : public AutofillDialogView,
views::View* GetScrollableAreaForTesting();
private:
+ friend class AutofillDialogViewTesterViews;
+
// What the entire dialog should be doing (e.g. gathering info from the user,
// asking the user to sign in, etc.).
enum DialogMode {

Powered by Google App Engine
This is Rietveld 408576698