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

Unified Diff: chrome/browser/ui/views/tabs/dragged_tab_controller.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/tabs/dragged_tab_controller.cc
===================================================================
--- chrome/browser/ui/views/tabs/dragged_tab_controller.cc (revision 75181)
+++ chrome/browser/ui/views/tabs/dragged_tab_controller.cc (working copy)
@@ -616,14 +616,14 @@
void DraggedTabController::SaveFocus() {
if (!old_focused_view_) {
- old_focused_view_ = source_tabstrip_->GetRootView()->GetFocusedView();
- source_tabstrip_->GetRootView()->FocusView(source_tabstrip_);
+ old_focused_view_ = source_tabstrip_->GetFocusManager()->GetFocusedView();
+ source_tabstrip_->GetFocusManager()->SetFocusedView(source_tabstrip_);
}
}
void DraggedTabController::RestoreFocus() {
if (old_focused_view_ && attached_tabstrip_ == source_tabstrip_)
- old_focused_view_->GetRootView()->FocusView(old_focused_view_);
+ old_focused_view_->GetFocusManager()->SetFocusedView(old_focused_view_);
old_focused_view_ = NULL;
}
« no previous file with comments | « chrome/browser/ui/views/tab_contents/native_tab_contents_container_gtk.cc ('k') | views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698