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

Unified Diff: chrome/browser/views/info_bubble.cc

Issue 140064: Revert :... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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/views/fullscreen_exit_bubble.cc ('k') | chrome/browser/views/infobars/infobars.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/info_bubble.cc
===================================================================
--- chrome/browser/views/info_bubble.cc (revision 18902)
+++ chrome/browser/views/info_bubble.cc (working copy)
@@ -133,7 +133,7 @@
content_view_->CalculateWindowBoundsAndAjust(position_relative_to);
#if defined(OS_WIN)
- WidgetWin::Init(parent->GetNativeWindow(), bounds);
+ WidgetWin::Init(parent->GetNativeWindow(), bounds, true);
#else
WidgetGtk::Init(GTK_WIDGET(parent->GetNativeWindow()), bounds, true);
#endif
@@ -155,9 +155,11 @@
#if defined(OS_WIN)
// Register the Escape accelerator for closing.
- GetFocusManager()->RegisterAccelerator(views::Accelerator(VK_ESCAPE, false,
- false, false),
- this);
+ views::FocusManager* focus_manager =
+ views::FocusManager::GetFocusManager(GetNativeView());
+ focus_manager->RegisterAccelerator(views::Accelerator(VK_ESCAPE, false,
+ false, false),
+ this);
// Set initial alpha value of the layered window.
SetLayeredWindowAttributes(GetNativeView(),
RGB(0xFF, 0xFF, 0xFF),
« no previous file with comments | « chrome/browser/views/fullscreen_exit_bubble.cc ('k') | chrome/browser/views/infobars/infobars.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698