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

Unified Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_container_gtk.cc

Issue 6507028: Remove usages of RootView from View by moving relevant RootView API methods t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/tab_contents/native_tab_contents_container_gtk.cc
===================================================================
--- chrome/browser/ui/views/tab_contents/native_tab_contents_container_gtk.cc (revision 75181)
+++ chrome/browser/ui/views/tab_contents/native_tab_contents_container_gtk.cc (working copy)
@@ -10,8 +10,6 @@
#include "chrome/browser/ui/view_ids.h"
#include "chrome/browser/ui/views/tab_contents/tab_contents_container.h"
#include "views/focus/focus_manager.h"
-#include "views/widget/root_view.h"
-#include "views/widget/widget.h"
////////////////////////////////////////////////////////////////////////////////
// NativeTabContentsContainerGtk, public:
@@ -112,7 +110,9 @@
// TabContentsContainerView already has focus, Focus() would not be called and
// the RenderView would not get notified it got focused.
// By clearing the focused view before-hand, we ensure Focus() will be called.
- GetRootView()->FocusView(NULL);
+ views::FocusManager* focus_manager = GetFocusManager();
+ if (focus_manager)
+ focus_manager->SetFocusedView(NULL);
View::RequestFocus();
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/tabs/dragged_tab_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698