| Index: ui/views/examples/widget_example.cc
|
| diff --git a/ui/views/examples/widget_example.cc b/ui/views/examples/widget_example.cc
|
| index 97c321bbd759707334eeccf36ddf6b744ff79d2b..523151417e3a5090fcdf9a4d51d21a69c8050b1e 100644
|
| --- a/ui/views/examples/widget_example.cc
|
| +++ b/ui/views/examples/widget_example.cc
|
| @@ -23,6 +23,7 @@ class DialogExample : public DialogDelegateView {
|
| virtual ~DialogExample();
|
| virtual string16 GetWindowTitle() const OVERRIDE;
|
| virtual View* CreateExtraView() OVERRIDE;
|
| + virtual View* CreateTitlebarExtraView() OVERRIDE;
|
| virtual View* CreateFootnoteView() OVERRIDE;
|
| };
|
|
|
| @@ -32,8 +33,7 @@ DialogExample::DialogExample() {
|
| AddChildView(new Label(ASCIIToUTF16("Dialog contents label!")));
|
| }
|
|
|
| -DialogExample::~DialogExample() {
|
| -}
|
| +DialogExample::~DialogExample() {}
|
|
|
| string16 DialogExample::GetWindowTitle() const {
|
| return ASCIIToUTF16("Dialog Widget Example");
|
| @@ -45,6 +45,12 @@ View* DialogExample::CreateExtraView() {
|
| return button;
|
| }
|
|
|
| +View* DialogExample::CreateTitlebarExtraView() {
|
| + Label* label = new Label(ASCIIToUTF16("Extra view!"));
|
| + label->SetEnabledColor(SK_ColorBLUE);
|
| + return label;
|
| +}
|
| +
|
| View* DialogExample::CreateFootnoteView() {
|
| return new Label(ASCIIToUTF16("Footnote label!"));
|
| }
|
|
|