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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 3033004: Revert 52600 - renderer_host: Remove CanBlur method.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 5 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/renderer_host/render_widget_host_view_gtk.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_gtk.cc (revision 52600)
+++ chrome/browser/renderer_host/render_widget_host_view_gtk.cc (working copy)
@@ -603,7 +603,11 @@
void RenderWidgetHostViewGtk::Blur() {
// TODO(estade): We should be clearing native focus as well, but I know of no
// way to do that without focusing another widget.
- host_->Blur();
+ // TODO(estade): it doesn't seem like the CanBlur() check should be necessary
+ // since we are only called in response to a ViewHost blur message, but this
+ // check is made on Windows so I've added it here as well.
+ if (host_->CanBlur())
+ host_->Blur();
}
bool RenderWidgetHostViewGtk::HasFocus() {
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.h ('k') | chrome/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698