diff options
Diffstat (limited to 'mojo/examples/browser/browser.cc')
-rw-r--r-- | mojo/examples/browser/browser.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mojo/examples/browser/browser.cc b/mojo/examples/browser/browser.cc index 2d91eeb..1474556 100644 --- a/mojo/examples/browser/browser.cc +++ b/mojo/examples/browser/browser.cc @@ -21,6 +21,7 @@ #include "ui/aura/client/focus_client.h" #include "ui/aura/window.h" #include "ui/events/event.h" +#include "ui/views/background.h" #include "ui/views/controls/textfield/textfield.h" #include "ui/views/controls/textfield/textfield_controller.h" #include "ui/views/focus/focus_manager.h" @@ -174,6 +175,8 @@ class Browser : public ApplicationDelegate, textfield->set_controller(this); views::WidgetDelegateView* widget_delegate = new views::WidgetDelegateView; + widget_delegate->GetContentsView()->set_background( + views::Background::CreateSolidBackground(SK_ColorBLUE)); widget_delegate->GetContentsView()->AddChildView(textfield); widget_delegate->GetContentsView()->SetLayoutManager( new BrowserLayoutManager); |