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

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

Issue 11231063: [views] "Hello, world" autofill imperative API dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
new file mode 100644
index 0000000000000000000000000000000000000000..ef7f2d30d0892a84993763c3235b2083aebcf359
--- /dev/null
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
@@ -0,0 +1,46 @@
+// 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_controller.h"
+#include "ui/views/window/dialog_delegate.h"
+
+class ConstrainedWindowViews;
+
+class AutofillDialogViews : public AutofillDialogView,
Ilya Sherman 2012/10/23 00:39:00 nit: I believe this should be named AutofillDialog
Evan Stade 2012/10/23 01:52:04 that is one possible name for the class, but not t
+ 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;
+
+ void InitChildViews();
+
+ private:
+ // Weak pointer, always non-NULL.
+ AutofillDialogController* controller_;
Ilya Sherman 2012/10/23 00:39:00 nit: AutofillDialogController* const controller_;
Evan Stade 2012/10/23 01:52:04 Done.
+
+ ConstrainedWindowViews* window_;
Ilya Sherman 2012/10/23 00:39:00 nit: All class members should be documented, even
Evan Stade 2012/10/23 01:52:04 Done.
+
+ // Owned by |window_|.
+ views::View* contents_;
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698