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

Unified Diff: ui/aura/ui_controls_win.cc

Issue 11444013: Get drag and drop working for win aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years 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 | « content/browser/web_contents/web_contents_view_aura.cc ('k') | ui/base/dragdrop/os_exchange_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/ui_controls_win.cc
===================================================================
--- ui/aura/ui_controls_win.cc (revision 171879)
+++ ui/aura/ui_controls_win.cc (working copy)
@@ -14,8 +14,7 @@
namespace {
class UIControlsWin : public ui_controls::UIControlsAura {
public:
- UIControlsWin(RootWindow* root_window) : root_window_(root_window) {
- }
+ UIControlsWin() {}
// UIControlsAura overrides:
virtual bool SendKeyPress(gfx::NativeWindow native_window,
@@ -43,7 +42,6 @@
}
virtual bool SendMouseMove(long x, long y) {
gfx::Point point(x, y);
- root_window_->ConvertPointToNativeScreen(&point);
return ui_controls::internal::SendMouseMoveImpl(
point.x(), point.y(), base::Closure());
}
@@ -51,7 +49,6 @@
long y,
const base::Closure& task) {
gfx::Point point(x, y);
- root_window_->ConvertPointToNativeScreen(&point);
return ui_controls::internal::SendMouseMoveImpl(point.x(), point.y(), task);
}
virtual bool SendMouseEvents(ui_controls::MouseButton type, int state) {
@@ -72,14 +69,13 @@
}
private:
- RootWindow* root_window_;
DISALLOW_COPY_AND_ASSIGN(UIControlsWin);
};
} // namespace
ui_controls::UIControlsAura* CreateUIControlsAura(RootWindow* root_window) {
- return new UIControlsWin(root_window);
+ return new UIControlsWin();
}
} // namespace aura
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | ui/base/dragdrop/os_exchange_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698