| Index: ui/aura_shell/status_area_view.cc
|
| ===================================================================
|
| --- ui/aura_shell/status_area_view.cc (revision 104542)
|
| +++ ui/aura_shell/status_area_view.cc (working copy)
|
| @@ -8,6 +8,7 @@
|
| #include "grit/ui_resources.h"
|
| #include "ui/aura/desktop.h"
|
| #include "ui/aura_shell/aura_shell_export.h"
|
| +#include "ui/aura_shell/shell_window_ids.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| #include "ui/gfx/canvas.h"
|
| #include "views/widget/widget.h"
|
| @@ -30,12 +31,14 @@
|
| canvas->DrawBitmapInt(status_mock_, 0, 0);
|
| }
|
|
|
| -AURA_SHELL_EXPORT views::Widget* CreateStatusArea() {
|
| +views::Widget* CreateStatusArea() {
|
| StatusAreaView* status_area_view = new StatusAreaView;
|
| views::Widget* widget = new views::Widget;
|
| views::Widget::InitParams params(views::Widget::InitParams::TYPE_CONTROL);
|
| gfx::Size ps = status_area_view->GetPreferredSize();
|
| params.bounds = gfx::Rect(0, 0, ps.width(), ps.height());
|
| + params.parent = aura::Desktop::GetInstance()->window()->GetChildById(
|
| + aura_shell::internal::kShellWindowId_StatusContainer);
|
| params.delegate = status_area_view;
|
| widget->Init(params);
|
| widget->SetContentsView(status_area_view);
|
|
|