| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/ws/window_manager_state.h" | 5 #include "services/ui/ws/window_manager_state.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() { | 175 void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() { |
| 176 event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow(); | 176 event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow(); |
| 177 } | 177 } |
| 178 | 178 |
| 179 void WindowManagerState::SetDragDropSourceWindow( | 179 void WindowManagerState::SetDragDropSourceWindow( |
| 180 DragSource* drag_source, | 180 DragSource* drag_source, |
| 181 ServerWindow* window, | 181 ServerWindow* window, |
| 182 DragTargetConnection* source_connection, | 182 DragTargetConnection* source_connection, |
| 183 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, | 183 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, |
| 184 uint32_t drag_operation) { | 184 uint32_t drag_operation) { |
| 185 int32_t drag_pointer = PointerEvent::kMousePointerId; | 185 int32_t drag_pointer = MouseEvent::kMousePointerId; |
| 186 if (in_flight_event_details_ && | 186 if (in_flight_event_details_ && |
| 187 in_flight_event_details_->event->IsPointerEvent()) { | 187 in_flight_event_details_->event->IsPointerEvent()) { |
| 188 drag_pointer = | 188 drag_pointer = |
| 189 in_flight_event_details_->event->AsPointerEvent()->pointer_details().id; | 189 in_flight_event_details_->event->AsPointerEvent()->pointer_details().id; |
| 190 } else { | 190 } else { |
| 191 NOTIMPLEMENTED() << "Set drag drop set up during something other than a " | 191 NOTIMPLEMENTED() << "Set drag drop set up during something other than a " |
| 192 << "pointer event; rejecting drag."; | 192 << "pointer event; rejecting drag."; |
| 193 drag_source->OnDragCompleted(false, ui::mojom::kDropEffectNone); | 193 drag_source->OnDragCompleted(false, ui::mojom::kDropEffectNone); |
| 194 return; | 194 return; |
| 195 } | 195 } |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 window->RemoveObserver(this); | 677 window->RemoveObserver(this); |
| 678 orphaned_window_manager_display_roots_.erase(iter); | 678 orphaned_window_manager_display_roots_.erase(iter); |
| 679 return; | 679 return; |
| 680 } | 680 } |
| 681 } | 681 } |
| 682 NOTREACHED(); | 682 NOTREACHED(); |
| 683 } | 683 } |
| 684 | 684 |
| 685 } // namespace ws | 685 } // namespace ws |
| 686 } // namespace ui | 686 } // namespace ui |
| OLD | NEW |