| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/drag_drop/drag_drop_tracker.h" | 5 #include "ash/drag_drop/drag_drop_tracker.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
| 9 #include "ash/wm/coordinate_conversion.h" | 9 #include "ash/wm/coordinate_conversion.h" |
| 10 #include "ui/aura/root_window.h" | 10 #include "ui/aura/root_window.h" |
| 11 #include "ui/base/event.h" | 11 #include "ui/base/events/event.h" |
| 12 #include "ui/gfx/screen.h" | 12 #include "ui/gfx/screen.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Creates a window for capturing drag events. | 16 // Creates a window for capturing drag events. |
| 17 aura::Window* CreateCaptureWindow(aura::RootWindow* root_window) { | 17 aura::Window* CreateCaptureWindow(aura::RootWindow* root_window) { |
| 18 aura::Window* window = new aura::Window(NULL); | 18 aura::Window* window = new aura::Window(NULL); |
| 19 window->SetType(aura::client::WINDOW_TYPE_NORMAL); | 19 window->SetType(aura::client::WINDOW_TYPE_NORMAL); |
| 20 window->Init(ui::LAYER_NOT_DRAWN); | 20 window->Init(ui::LAYER_NOT_DRAWN); |
| 21 window->SetParent(NULL); | 21 window->SetParent(NULL); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 ash::wm::GetRootWindowRelativeToWindow(capture_window_->GetRootWindow(), | 59 ash::wm::GetRootWindowRelativeToWindow(capture_window_->GetRootWindow(), |
| 60 event.root_location()); | 60 event.root_location()); |
| 61 return new ui::MouseEvent(event.type(), | 61 return new ui::MouseEvent(event.type(), |
| 62 location_pair.second, | 62 location_pair.second, |
| 63 root_location_pair.second, | 63 root_location_pair.second, |
| 64 event.flags()); | 64 event.flags()); |
| 65 } | 65 } |
| 66 | 66 |
| 67 } // namespace internal | 67 } // namespace internal |
| 68 } // namespace ash | 68 } // namespace ash |
| OLD | NEW |