| 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/common/wm/root_window_finder.h" | 7 #include "ash/common/wm/root_window_finder.h" |
| 8 #include "ash/common/wm_window.h" | 8 #include "ash/common/wm_window.h" |
| 9 #include "ash/public/cpp/shell_window_ids.h" | 9 #include "ash/public/cpp/shell_window_ids.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 gfx::Point location_in_screen = event.location(); | 85 gfx::Point location_in_screen = event.location(); |
| 86 ::wm::ConvertPointToScreen(capture_window_.get(), &location_in_screen); | 86 ::wm::ConvertPointToScreen(capture_window_.get(), &location_in_screen); |
| 87 gfx::Point target_root_location = event.root_location(); | 87 gfx::Point target_root_location = event.root_location(); |
| 88 aura::Window::ConvertPointToTarget( | 88 aura::Window::ConvertPointToTarget( |
| 89 capture_window_->GetRootWindow(), | 89 capture_window_->GetRootWindow(), |
| 90 WmWindow::GetAuraWindow(wm::GetRootWindowAt(location_in_screen)), | 90 WmWindow::GetAuraWindow(wm::GetRootWindowAt(location_in_screen)), |
| 91 &target_root_location); | 91 &target_root_location); |
| 92 return new ui::MouseEvent( | 92 return new ui::MouseEvent( |
| 93 event.type(), target_location, target_root_location, | 93 event.type(), target_location, target_root_location, |
| 94 ui::EventTimeForNow(), event.flags(), | 94 ui::EventTimeForNow(), event.flags(), |
| 95 static_cast<const ui::MouseEvent&>(event).changed_button_flags()); | 95 static_cast<const ui::MouseEvent&>(event).changed_button_flags(), |
| 96 ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE, |
| 97 ui::PointerEvent::kMousePointerId)); |
| 96 } | 98 } |
| 97 | 99 |
| 98 } // namespace ash | 100 } // namespace ash |
| OLD | NEW |