Chromium Code Reviews| Index: services/ui/ws/test_utils.h |
| diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h |
| index 22ddee3cbb99ade45c5e89015dca7d90d946d5fb..58e397e5be70f5c01c31e08f1d6b1879a7ab6d46 100644 |
| --- a/services/ui/ws/test_utils.h |
| +++ b/services/ui/ws/test_utils.h |
| @@ -138,7 +138,9 @@ class DisplayTestApi { |
| explicit DisplayTestApi(Display* display); |
| ~DisplayTestApi(); |
| - void OnEvent(const ui::Event& event) { display_->OnEvent(event); } |
| + void OnEvent(const ui::Event& event) { |
| + display_->OnEventFromSource(const_cast<ui::Event*>(&event)); |
|
sky
2017/03/20 15:42:12
Same comment here about not casting away const.
Peng
2017/03/20 17:24:14
Done.
|
| + } |
| mojom::Cursor last_cursor() const { return display_->last_cursor_; } |