diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-20 15:40:45 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-20 15:40:45 +0000 |
commit | 10946079e34f1a627e9afa232049469a6655cc17 (patch) | |
tree | 6de5c4fa11f7fb6ede9601de1acc86e4a53aa1b2 /views/widget/drop_helper.cc | |
parent | 334bef925113a03dac5dc92184ab7ce51e06a386 (diff) | |
download | chromium_src-10946079e34f1a627e9afa232049469a6655cc17.zip chromium_src-10946079e34f1a627e9afa232049469a6655cc17.tar.gz chromium_src-10946079e34f1a627e9afa232049469a6655cc17.tar.bz2 |
Move RootView to the internal namespace.
Most people should not be using the RootView type. The few cases that do should static_cast for now, until I can find a way to expose the functionality they need on Widget.
BUG=72040
TEST=none
TBR=sky
Review URL: http://codereview.chromium.org/7040018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86084 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/drop_helper.cc')
-rw-r--r-- | views/widget/drop_helper.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/widget/drop_helper.cc b/views/widget/drop_helper.cc index a0b7b76..4e5ce109 100644 --- a/views/widget/drop_helper.cc +++ b/views/widget/drop_helper.cc @@ -6,11 +6,11 @@ #include "ui/base/dragdrop/drag_drop_types.h" #include "views/view.h" -#include "views/widget/root_view.h" +#include "views/widget/widget.h" namespace views { -DropHelper::DropHelper(RootView* root_view) +DropHelper::DropHelper(View* root_view) : root_view_(root_view), target_view_(NULL), deepest_view_(NULL) { @@ -61,7 +61,7 @@ int DropHelper::OnDrop(const OSExchangeData& data, } gfx::Point view_location(root_view_location); - View* root_view = drop_view->GetRootView(); + View* root_view = drop_view->GetWidget()->GetRootView(); View::ConvertPointToView(root_view, drop_view, &view_location); DropTargetEvent drop_event(data, view_location.x(), view_location.y(), drag_operation); |