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

Unified Diff: chrome/browser/ui/views/frame/contents_container.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/frame/contents_container.cc
===================================================================
--- chrome/browser/ui/views/frame/contents_container.cc (revision 85284)
+++ chrome/browser/ui/views/frame/contents_container.cc (working copy)
@@ -152,8 +152,6 @@
void ContentsContainer::CreateOverlay(int initial_opacity) {
DCHECK(!active_overlay_);
- active_overlay_ = views::Widget::CreateWidget();
- active_overlay_->SetOpacity(initial_opacity);
gfx::Point screen_origin;
views::View::ConvertPointToScreen(active_, &screen_origin);
gfx::Rect overlay_bounds(screen_origin, active_->size());
@@ -162,11 +160,13 @@
params.accept_events = false;
params.parent = active_->GetWidget()->GetNativeView();
params.bounds = overlay_bounds;
+ active_overlay_ = new views::Widget;
active_overlay_->Init(params);
overlay_view_ = new OverlayContentView(this);
overlay_view_->set_background(
views::Background::CreateSolidBackground(SK_ColorWHITE));
active_overlay_->SetContentsView(overlay_view_);
+ active_overlay_->SetOpacity(initial_opacity);
active_overlay_->Show();
active_overlay_->MoveAboveWidget(active_->GetWidget());
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view_layout.cc ('k') | chrome/browser/ui/views/frame/glass_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698