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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 147 |
148 void WindowManagerState::ReleaseCaptureBlockedByModalWindow( | 148 void WindowManagerState::ReleaseCaptureBlockedByModalWindow( |
149 const ServerWindow* modal_window) { | 149 const ServerWindow* modal_window) { |
150 event_dispatcher_.ReleaseCaptureBlockedByModalWindow(modal_window); | 150 event_dispatcher_.ReleaseCaptureBlockedByModalWindow(modal_window); |
151 } | 151 } |
152 | 152 |
153 void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() { | 153 void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() { |
154 event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow(); | 154 event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow(); |
155 } | 155 } |
156 | 156 |
| 157 void WindowManagerState::SetDragDropSourceWindow( |
| 158 uint32_t change_id, |
| 159 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data, |
| 160 uint32_t drag_operation, |
| 161 WindowTree* window_tree, |
| 162 ServerWindow* capture_window) { |
| 163 event_dispatcher_.SetDragDropSourceWindow( |
| 164 change_id, window_tree, capture_window, std::move(drag_data), |
| 165 drag_operation); |
| 166 } |
| 167 |
157 void WindowManagerState::AddSystemModalWindow(ServerWindow* window) { | 168 void WindowManagerState::AddSystemModalWindow(ServerWindow* window) { |
158 DCHECK(!window->transient_parent()); | 169 DCHECK(!window->transient_parent()); |
159 event_dispatcher_.AddSystemModalWindow(window); | 170 event_dispatcher_.AddSystemModalWindow(window); |
160 } | 171 } |
161 | 172 |
162 const UserId& WindowManagerState::user_id() const { | 173 const UserId& WindowManagerState::user_id() const { |
163 return window_tree_->user_id(); | 174 return window_tree_->user_id(); |
164 } | 175 } |
165 | 176 |
166 void WindowManagerState::OnWillDestroyTree(WindowTree* tree) { | 177 void WindowManagerState::OnWillDestroyTree(WindowTree* tree) { |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 return display_root->root(); | 576 return display_root->root(); |
566 } | 577 } |
567 | 578 |
568 void WindowManagerState::OnEventTargetNotFound(const ui::Event& event) { | 579 void WindowManagerState::OnEventTargetNotFound(const ui::Event& event) { |
569 window_server()->SendToPointerWatchers(event, user_id(), nullptr, /* window */ | 580 window_server()->SendToPointerWatchers(event, user_id(), nullptr, /* window */ |
570 nullptr /* ignore_tree */); | 581 nullptr /* ignore_tree */); |
571 } | 582 } |
572 | 583 |
573 } // namespace ws | 584 } // namespace ws |
574 } // namespace ui | 585 } // namespace ui |
OLD | NEW |