Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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_VIEWS_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | |
| 7 | |
| 8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | |
| 9 #include "ui/views/window/dialog_delegate.h" | |
| 10 | |
| 11 class ConstrainedWindowViews; | |
| 12 | |
| 13 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
| |
| 14 public views::DialogDelegate { | |
| 15 public: | |
| 16 explicit AutofillDialogViews(AutofillDialogController* controller); | |
| 17 virtual ~AutofillDialogViews(); | |
| 18 | |
| 19 // AutofillDialogView implementation: | |
| 20 virtual void Show() OVERRIDE; | |
| 21 | |
| 22 // views::DialogDelegate implementation: | |
| 23 virtual string16 GetWindowTitle() const OVERRIDE; | |
| 24 virtual void DeleteDelegate() OVERRIDE; | |
| 25 virtual views::Widget* GetWidget() OVERRIDE; | |
| 26 virtual const views::Widget* GetWidget() const OVERRIDE; | |
| 27 virtual views::View* GetContentsView() OVERRIDE; | |
| 28 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | |
| 29 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; | |
| 30 virtual bool UseChromeStyle() const OVERRIDE; | |
| 31 virtual bool Cancel() OVERRIDE; | |
| 32 virtual bool Accept() OVERRIDE; | |
| 33 | |
| 34 void InitChildViews(); | |
| 35 | |
| 36 private: | |
| 37 // Weak pointer, always non-NULL. | |
| 38 AutofillDialogController* controller_; | |
|
Ilya Sherman
2012/10/23 00:39:00
nit: AutofillDialogController* const controller_;
Evan Stade
2012/10/23 01:52:04
Done.
| |
| 39 | |
| 40 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.
| |
| 41 | |
| 42 // Owned by |window_|. | |
| 43 views::View* contents_; | |
| 44 }; | |
| 45 | |
| 46 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ | |
| OLD | NEW |