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

Unified Diff: chrome/browser/ui/views/download/download_started_animation_win.cc

Issue 6881107: Rework the way Widget::Init works: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | « chrome/browser/ui/views/dom_view_browsertest.cc ('k') | chrome/browser/ui/views/dropdown_bar_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/download/download_started_animation_win.cc
===================================================================
--- chrome/browser/ui/views/download/download_started_animation_win.cc (revision 83020)
+++ chrome/browser/ui/views/download/download_started_animation_win.cc (working copy)
@@ -101,13 +101,14 @@
SetImage(kDownloadImage);
- gfx::Rect rc(0, 0, 0, 0);
+ popup_ = views::Widget::CreateWidget();
+ popup_->SetOpacity(0x00);
+
views::Widget::CreateParams params(views::Widget::CreateParams::TYPE_POPUP);
params.transparent = true;
params.accept_events = false;
- popup_ = views::Widget::CreateWidget(params);
- popup_->SetOpacity(0x00);
- popup_->Init(tab_contents_->GetNativeView(), rc);
+ params.parent = tab_contents_->GetNativeView();
+ popup_->Init(params);
popup_->SetContentsView(this);
Reposition();
popup_->Show();
« no previous file with comments | « chrome/browser/ui/views/dom_view_browsertest.cc ('k') | chrome/browser/ui/views/dropdown_bar_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698