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

Unified Diff: chrome/browser/ui/views/notifications/balloon_view.cc

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
Index: chrome/browser/ui/views/notifications/balloon_view.cc
===================================================================
--- chrome/browser/ui/views/notifications/balloon_view.cc (revision 85284)
+++ chrome/browser/ui/views/notifications/balloon_view.cc (working copy)
@@ -316,21 +316,21 @@
gfx::Rect contents_rect = GetContentsRectangle();
html_contents_.reset(new BalloonViewHost(balloon));
html_contents_->SetPreferredSize(gfx::Size(10000, 10000));
- html_container_ = Widget::CreateWidget();
- html_container_->SetAlwaysOnTop(true);
+ html_container_ = new Widget;
Widget::InitParams params(Widget::InitParams::TYPE_POPUP);
params.bounds = contents_rect;
html_container_->Init(params);
html_container_->SetContentsView(html_contents_->view());
+ html_container_->SetAlwaysOnTop(true);
gfx::Rect balloon_rect(x(), y(), GetTotalWidth(), GetTotalHeight());
- frame_container_ = Widget::CreateWidget();
+ frame_container_ = new Widget;
frame_container_->set_widget_delegate(this);
- frame_container_->SetAlwaysOnTop(true);
params.transparent = true;
params.bounds = balloon_rect;
frame_container_->Init(params);
frame_container_->SetContentsView(this);
+ frame_container_->SetAlwaysOnTop(true);
frame_container_->MoveAboveWidget(html_container_);
close_button_->SetImage(views::CustomButton::BS_NORMAL,
« no previous file with comments | « chrome/browser/ui/views/native_constrained_window_win.cc ('k') | chrome/browser/ui/views/profile_tag_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698