| 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/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "services/shell/public/interfaces/connector.mojom.h" | 10 #include "services/shell/public/interfaces/connector.mojom.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 ServerWindow* window, | 163 ServerWindow* window, |
| 164 DragTargetConnection* source_connection, | 164 DragTargetConnection* source_connection, |
| 165 int32_t drag_pointer, | 165 int32_t drag_pointer, |
| 166 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data, | 166 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data, |
| 167 uint32_t drag_operation) { | 167 uint32_t drag_operation) { |
| 168 event_dispatcher_.SetDragDropSourceWindow( | 168 event_dispatcher_.SetDragDropSourceWindow( |
| 169 drag_source, window, source_connection, drag_pointer, | 169 drag_source, window, source_connection, drag_pointer, |
| 170 std::move(drag_data), drag_operation); | 170 std::move(drag_data), drag_operation); |
| 171 } | 171 } |
| 172 | 172 |
| 173 void WindowManagerState::CancelDragDrop() { |
| 174 event_dispatcher_.CancelDragDrop(); |
| 175 } |
| 176 |
| 173 void WindowManagerState::EndDragDrop() { | 177 void WindowManagerState::EndDragDrop() { |
| 174 event_dispatcher_.EndDragDrop(); | 178 event_dispatcher_.EndDragDrop(); |
| 175 } | 179 } |
| 176 | 180 |
| 177 void WindowManagerState::AddSystemModalWindow(ServerWindow* window) { | 181 void WindowManagerState::AddSystemModalWindow(ServerWindow* window) { |
| 178 DCHECK(!window->transient_parent()); | 182 DCHECK(!window->transient_parent()); |
| 179 event_dispatcher_.AddSystemModalWindow(window); | 183 event_dispatcher_.AddSystemModalWindow(window); |
| 180 } | 184 } |
| 181 | 185 |
| 182 const UserId& WindowManagerState::user_id() const { | 186 const UserId& WindowManagerState::user_id() const { |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 window->RemoveObserver(this); | 619 window->RemoveObserver(this); |
| 616 orphaned_window_manager_display_roots_.erase(iter); | 620 orphaned_window_manager_display_roots_.erase(iter); |
| 617 return; | 621 return; |
| 618 } | 622 } |
| 619 } | 623 } |
| 620 NOTREACHED(); | 624 NOTREACHED(); |
| 621 } | 625 } |
| 622 | 626 |
| 623 } // namespace ws | 627 } // namespace ws |
| 624 } // namespace ui | 628 } // namespace ui |
| OLD | NEW |