| 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_server_test_impl.h" | 5 #include "services/ui/ws/window_server_test_impl.h" |
| 6 | 6 |
| 7 #include "services/ui/public/interfaces/window_tree.mojom.h" | 7 #include "services/ui/public/interfaces/window_tree.mojom.h" |
| 8 #include "services/ui/ws/display.h" | 8 #include "services/ui/ws/display.h" |
| 9 #include "services/ui/ws/display_manager.h" | 9 #include "services/ui/ws/display_manager.h" |
| 10 #include "services/ui/ws/server_window.h" | 10 #include "services/ui/ws/server_window.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 return; | 61 return; |
| 62 } | 62 } |
| 63 | 63 |
| 64 Display* display = manager->GetDisplayById(display_id); | 64 Display* display = manager->GetDisplayById(display_id); |
| 65 if (!display) { | 65 if (!display) { |
| 66 DVLOG(1) << "Invalid display_id in DispatchEvent."; | 66 DVLOG(1) << "Invalid display_id in DispatchEvent."; |
| 67 cb.Run(false); | 67 cb.Run(false); |
| 68 return; | 68 return; |
| 69 } | 69 } |
| 70 | 70 |
| 71 static_cast<PlatformDisplayDelegate*>(display)->OnEvent(*event.get()); | 71 ignore_result(static_cast<PlatformDisplayDelegate*>(display) |
| 72 ->GetEventSink() |
| 73 ->OnEventFromSource(event.get())); |
| 72 cb.Run(true); | 74 cb.Run(true); |
| 73 } | 75 } |
| 74 | 76 |
| 75 } // namespace ws | 77 } // namespace ws |
| 76 } // namespace ui | 78 } // namespace ui |
| OLD | NEW |