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

Unified Diff: ui/views/widget/desktop_aura/desktop_drop_target_win.cc

Issue 38423002: Make aura::clients take Window instead of RootWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 2 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: ui/views/widget/desktop_aura/desktop_drop_target_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_drop_target_win.cc b/ui/views/widget/desktop_aura/desktop_drop_target_win.cc
index 5fb109119a419ec2f3cea54f47f74059ad1be4c0..252826aceab7b175629ed5a2d552216c3160ddc2 100644
--- a/ui/views/widget/desktop_aura/desktop_drop_target_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_drop_target_win.cc
@@ -20,7 +20,7 @@ using ui::OSExchangeDataProviderWin;
namespace views {
-DesktopDropTargetWin::DesktopDropTargetWin(aura::RootWindow* root_window,
+DesktopDropTargetWin::DesktopDropTargetWin(aura::Window* root_window,
HWND window)
: ui::DropTargetWin(window),
root_window_(root_window),
@@ -96,7 +96,7 @@ void DesktopDropTargetWin::Translate(
DragDropDelegate** delegate) {
gfx::Point location(position.x, position.y);
gfx::Point root_location = location;
- root_window_->ConvertPointFromNativeScreen(&root_location);
+ root_window_->GetRootWindow()->ConvertPointFromNativeScreen(&root_location);
aura::Window* target_window =
root_window_->GetEventHandlerForPoint(root_location);
bool target_window_changed = false;
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_drop_target_win.h ('k') | ui/views/widget/desktop_aura/desktop_screen_position_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698