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

Unified Diff: ash/drag_drop/drag_drop_tracker.cc

Issue 11031026: Remove RootWindow reference from DragDropTracker. RootWindow reference in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 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
« no previous file with comments | « ash/drag_drop/drag_drop_tracker.h ('k') | ash/drag_drop/drag_drop_tracker_unittest.cc » ('j') | 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 7fa05370c178fef9a0a2ea035bce70080054c405..f0bb206988195053eec516343387ea688d8bf7c3 100644
--- a/ash/drag_drop/drag_drop_tracker.cc
+++ b/ash/drag_drop/drag_drop_tracker.cc
@@ -14,14 +14,11 @@
namespace {
// Creates a window for capturing drag events.
-aura::Window* CreateCaptureWindow(aura::RootWindow* root_window) {
+aura::Window* CreateCaptureWindow() {
aura::Window* window = new aura::Window(NULL);
window->SetType(aura::client::WINDOW_TYPE_NORMAL);
window->Init(ui::LAYER_NOT_DRAWN);
window->SetParent(NULL);
- window->SetBoundsInScreen(gfx::Rect(root_window->GetBoundsInScreen().origin(),
- gfx::Size()),
- gfx::Screen::GetDisplayNearestWindow(root_window));
window->Show();
return window;
}
@@ -31,8 +28,8 @@ aura::Window* CreateCaptureWindow(aura::RootWindow* root_window) {
namespace ash {
namespace internal {
-DragDropTracker::DragDropTracker(aura::RootWindow* root_window)
- : capture_window_(CreateCaptureWindow(root_window)) {
+DragDropTracker::DragDropTracker()
+ : capture_window_(CreateCaptureWindow()) {
capture_window_->SetCapture();
}
« no previous file with comments | « ash/drag_drop/drag_drop_tracker.h ('k') | ash/drag_drop/drag_drop_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698