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

Unified Diff: ash/drag_drop/drag_drop_tracker.cc

Issue 11009010: Set DragDropTracker's capture window's size to zero, otherwise, it gets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/drag_drop/drag_drop_tracker.cc
diff --git a/ash/drag_drop/drag_drop_tracker.cc b/ash/drag_drop/drag_drop_tracker.cc
index 0de110ae9d5f28c6a81ad19c5adfcb40b5d7c4aa..7fa05370c178fef9a0a2ea035bce70080054c405 100644
--- a/ash/drag_drop/drag_drop_tracker.cc
+++ b/ash/drag_drop/drag_drop_tracker.cc
@@ -19,7 +19,8 @@ aura::Window* CreateCaptureWindow(aura::RootWindow* root_window) {
window->SetType(aura::client::WINDOW_TYPE_NORMAL);
window->Init(ui::LAYER_NOT_DRAWN);
window->SetParent(NULL);
- window->SetBoundsInScreen(root_window->GetBoundsInScreen(),
+ window->SetBoundsInScreen(gfx::Rect(root_window->GetBoundsInScreen().origin(),
+ gfx::Size()),
gfx::Screen::GetDisplayNearestWindow(root_window));
window->Show();
return window;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698