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

Unified Diff: ui/views/mus/window_manager_connection_unittest.cc

Issue 1949823002: WIP: Eliminate event.target() usage from TrayEventFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: container delegate Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/mus/window_manager_connection.cc ('k') | ui/views/pointer_watcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_manager_connection_unittest.cc
diff --git a/ui/views/mus/window_manager_connection_unittest.cc b/ui/views/mus/window_manager_connection_unittest.cc
index aba26448aa9698320c9a6c4597b9623114fd77d9..ba83ea14bb54db0a7a256378add69a33912d29dd 100644
--- a/ui/views/mus/window_manager_connection_unittest.cc
+++ b/ui/views/mus/window_manager_connection_unittest.cc
@@ -26,11 +26,13 @@ class TestPointerWatcher : public PointerWatcher {
// PointerWatcher:
void OnMousePressed(const ui::MouseEvent& event,
- const gfx::Point& location_in_screen) override {
+ const gfx::Point& location_in_screen,
+ Widget* target) override {
last_event_ = ui::Event::Clone(event);
}
void OnTouchPressed(const ui::TouchEvent& event,
- const gfx::Point& location_in_screen) override {
+ const gfx::Point& location_in_screen,
+ Widget* target) override {
last_event_ = ui::Event::Clone(event);
}
@@ -48,7 +50,7 @@ class WindowManagerConnectionTest : public testing::Test {
~WindowManagerConnectionTest() override {}
void OnEventObserved(const ui::Event& event) {
- WindowManagerConnection::Get()->OnEventObserved(event);
+ WindowManagerConnection::Get()->OnEventObserved(event, nullptr);
}
private:
« no previous file with comments | « ui/views/mus/window_manager_connection.cc ('k') | ui/views/pointer_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698