diff options
Diffstat (limited to 'chrome/browser/ui/views/fullscreen_exit_bubble.cc')
-rw-r--r-- | chrome/browser/ui/views/fullscreen_exit_bubble.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/views/fullscreen_exit_bubble.cc b/chrome/browser/ui/views/fullscreen_exit_bubble.cc index d72552d..1c18697 100644 --- a/chrome/browser/ui/views/fullscreen_exit_bubble.cc +++ b/chrome/browser/ui/views/fullscreen_exit_bubble.cc @@ -132,8 +132,7 @@ FullscreenExitBubble::FullscreenExitBubble( 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 @@ FullscreenExitBubble::FullscreenExitBubble( 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. |