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

Unified Diff: chrome/browser/ui/views/fullscreen_exit_bubble.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/fullscreen_exit_bubble.cc
===================================================================
--- chrome/browser/ui/views/fullscreen_exit_bubble.cc (revision 85284)
+++ chrome/browser/ui/views/fullscreen_exit_bubble.cc (working copy)
@@ -132,8 +132,7 @@
this, UTF16ToWideHack(accelerator.GetShortcutText()));
// Initialize the popup.
- popup_ = views::Widget::CreateWidget();
- popup_->SetOpacity(static_cast<unsigned char>(0xff * kOpacity));
+ popup_ = new views::Widget;
views::Widget::InitParams params(views::Widget::InitParams::TYPE_POPUP);
params.transparent = true;
params.can_activate = false;
@@ -142,6 +141,7 @@
params.bounds = GetPopupRect(false);
popup_->Init(params);
popup_->SetContentsView(view_);
+ popup_->SetOpacity(static_cast<unsigned char>(0xff * kOpacity));
popup_->Show(); // This does not activate the popup.
// Start the initial delay timer and begin watching the mouse.
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.cc ('k') | chrome/browser/ui/views/generic_info_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698