Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: services/ui/ws/window_server_test_impl.cc

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix build issues. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_tree_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698