| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..574409f0aa0f232342170039af5c869edeeac4e9
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
|
| @@ -0,0 +1,53 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
|
| +
|
| +#include "chrome/browser/ui/autofill/autofill_dialog_view.h"
|
| +#include "ui/views/window/dialog_delegate.h"
|
| +
|
| +class AutofillDialogController;
|
| +class ConstrainedWindowViews;
|
| +
|
| +// Views toolkit implementation of the Autofill dialog that handles the
|
| +// imperative autocomplete API call.
|
| +class AutofillDialogViews : public AutofillDialogView,
|
| + public views::DialogDelegate {
|
| + public:
|
| + explicit AutofillDialogViews(AutofillDialogController* controller);
|
| + virtual ~AutofillDialogViews();
|
| +
|
| + // AutofillDialogView implementation:
|
| + virtual void Show() OVERRIDE;
|
| +
|
| + // views::DialogDelegate implementation:
|
| + virtual string16 GetWindowTitle() const OVERRIDE;
|
| + virtual void DeleteDelegate() OVERRIDE;
|
| + virtual views::Widget* GetWidget() OVERRIDE;
|
| + virtual const views::Widget* GetWidget() const OVERRIDE;
|
| + virtual views::View* GetContentsView() OVERRIDE;
|
| + virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
|
| + virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE;
|
| + virtual bool UseChromeStyle() const OVERRIDE;
|
| + virtual bool Cancel() OVERRIDE;
|
| + virtual bool Accept() OVERRIDE;
|
| +
|
| + private:
|
| + void InitChildViews();
|
| +
|
| + // The controller that drives this view. Weak pointer, always non-NULL.
|
| + AutofillDialogController* const controller_;
|
| +
|
| + // The window that displays |contents_|. Weak pointer; may be NULL when the
|
| + // dialog is closing.
|
| + ConstrainedWindowViews* window_;
|
| +
|
| + // The top-level View for the dialog. Owned by the constrained window.
|
| + views::View* contents_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
|
|
|