| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() { | 177 void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() { |
| 178 event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow(); | 178 event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 void WindowManagerState::SetDragDropSourceWindow( | 181 void WindowManagerState::SetDragDropSourceWindow( |
| 182 DragSource* drag_source, | 182 DragSource* drag_source, |
| 183 ServerWindow* window, | 183 ServerWindow* window, |
| 184 DragTargetConnection* source_connection, | 184 DragTargetConnection* source_connection, |
| 185 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, | 185 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, |
| 186 uint32_t drag_operation) { | 186 uint32_t drag_operation) { |
| 187 int32_t drag_pointer = PointerEvent::kMousePointerId; | 187 int32_t drag_pointer = MouseEvent::kMousePointerId; |
| 188 if (in_flight_event_details_ && | 188 if (in_flight_event_details_ && |
| 189 in_flight_event_details_->event->IsPointerEvent()) { | 189 in_flight_event_details_->event->IsPointerEvent()) { |
| 190 drag_pointer = | 190 drag_pointer = |
| 191 in_flight_event_details_->event->AsPointerEvent()->pointer_details().id; | 191 in_flight_event_details_->event->AsPointerEvent()->pointer_details().id; |
| 192 } else { | 192 } else { |
| 193 NOTIMPLEMENTED() << "Set drag drop set up during something other than a " | 193 NOTIMPLEMENTED() << "Set drag drop set up during something other than a " |
| 194 << "pointer event; rejecting drag."; | 194 << "pointer event; rejecting drag."; |
| 195 drag_source->OnDragCompleted(false, ui::mojom::kDropEffectNone); | 195 drag_source->OnDragCompleted(false, ui::mojom::kDropEffectNone); |
| 196 return; | 196 return; |
| 197 } | 197 } |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 window->RemoveObserver(this); | 702 window->RemoveObserver(this); |
| 703 orphaned_window_manager_display_roots_.erase(iter); | 703 orphaned_window_manager_display_roots_.erase(iter); |
| 704 return; | 704 return; |
| 705 } | 705 } |
| 706 } | 706 } |
| 707 NOTREACHED(); | 707 NOTREACHED(); |
| 708 } | 708 } |
| 709 | 709 |
| 710 } // namespace ws | 710 } // namespace ws |
| 711 } // namespace ui | 711 } // namespace ui |
| OLD | NEW |