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

Unified Diff: chrome/browser/bookmarks/bookmark_utils.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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_utils.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_utils.cc (revision 75181)
+++ chrome/browser/bookmarks/bookmark_utils.cc (working copy)
@@ -331,14 +331,12 @@
BookmarkNodeData drag_data(nodes);
drag_data.Write(profile, &data);
- views::RootView* root_view =
- views::Widget::GetWidgetFromNativeView(view)->GetRootView();
-
// Allow nested message loop so we get DnD events as we drag this around.
bool was_nested = MessageLoop::current()->IsNested();
MessageLoop::current()->SetNestableTasksAllowed(true);
- root_view->StartDragForViewFromMouseEvent(NULL, data,
+ views::Widget* widget = views::Widget::GetWidgetFromNativeView(view);
+ widget->StartDragForViewFromMouseEvent(NULL, data,
ui::DragDropTypes::DRAG_COPY | ui::DragDropTypes::DRAG_MOVE |
ui::DragDropTypes::DRAG_LINK);
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698