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

Unified Diff: ui/aura_shell/desktop_background_view.cc

Issue 8399044: aura: Make sure the desktop widget gets parented to the correct container. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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
« no previous file with comments | « no previous file | ui/aura_shell/examples/lock_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/desktop_background_view.cc
diff --git a/ui/aura_shell/desktop_background_view.cc b/ui/aura_shell/desktop_background_view.cc
index 1edee7f32ad8ad60a39ed045e30c231476b40224..9b5ce7ebf4ffb4f42a7702357bc917ad4833c48b 100644
--- a/ui/aura_shell/desktop_background_view.cc
+++ b/ui/aura_shell/desktop_background_view.cc
@@ -45,12 +45,14 @@ void DesktopBackgroundView::OnMouseReleased(const views::MouseEvent& event) {
views::Widget* CreateDesktopBackground() {
views::Widget* desktop_widget = new views::Widget;
- views::Widget::InitParams params(views::Widget::InitParams::TYPE_CONTROL);
- params.parent = Shell::GetInstance()->GetContainer(
- aura_shell::internal::kShellWindowId_DesktopBackgroundContainer);
+ views::Widget::InitParams params(
+ views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
DesktopBackgroundView* view = new DesktopBackgroundView;
params.delegate = view;
desktop_widget->Init(params);
+ Shell::GetInstance()->GetContainer(
+ aura_shell::internal::kShellWindowId_DesktopBackgroundContainer)->
+ AddChild(desktop_widget->GetNativeView());
desktop_widget->SetContentsView(view);
desktop_widget->Show();
desktop_widget->GetNativeView()->set_name("DesktopBackgroundView");
« no previous file with comments | « no previous file | ui/aura_shell/examples/lock_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698