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

Unified Diff: ash/wm/workspace_controller_unittest.cc

Issue 2715743005: Revert of Avoid two targeting phases in aura client-lib and EventProcessor. (Closed)
Patch Set: Created 3 years, 10 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 | « ash/wm/panels/panel_layout_manager_unittest.cc ('k') | ui/aura/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace_controller_unittest.cc
diff --git a/ash/wm/workspace_controller_unittest.cc b/ash/wm/workspace_controller_unittest.cc
index e51dedc49ee9bf00606cab60a79ce3511efd750e..db4d5869762dff7e0340d9525b72602b0361871e 100644
--- a/ash/wm/workspace_controller_unittest.cc
+++ b/ash/wm/workspace_controller_unittest.cc
@@ -1481,9 +1481,8 @@
ParentWindowInPrimaryRootWindow(second.get());
second->Show();
- aura::Window* root = first->GetRootWindow();
- ui::EventTargeter* targeter =
- root->GetHost()->dispatcher()->GetDefaultEventTargeter();
+ ui::EventTarget* root = first->GetRootWindow();
+ ui::EventTargeter* targeter = root->GetEventTargeter();
// The windows overlap, and |second| is on top of |first|. Events targeted
// slightly outside the edges of the |second| window should still be targeted
@@ -1531,9 +1530,8 @@
aura::test::TestWindowDelegate delegate;
std::unique_ptr<Window> window(
CreateTestPanel(&delegate, gfx::Rect(20, 10, 100, 50)));
- aura::Window* root = window->GetRootWindow();
- ui::EventTargeter* targeter =
- root->GetHost()->dispatcher()->GetDefaultEventTargeter();
+ ui::EventTarget* root = window->GetRootWindow();
+ ui::EventTargeter* targeter = root->GetEventTargeter();
const gfx::Rect bounds = window->bounds();
const int kNumPoints = 5;
struct {
@@ -1568,9 +1566,8 @@
aura::test::TestWindowDelegate delegate;
std::unique_ptr<Window> window(
CreateTestPanel(&delegate, gfx::Rect(20, 10, 100, 50)));
- aura::Window* root = window->GetRootWindow();
- ui::EventTargeter* targeter =
- root->GetHost()->dispatcher()->GetDefaultEventTargeter();
+ ui::EventTarget* root = window->GetRootWindow();
+ ui::EventTargeter* targeter = root->GetEventTargeter();
const gfx::Rect bounds = window->bounds();
const int kNumPoints = 5;
struct {
@@ -1610,9 +1607,8 @@
window->GetRootWindow(), kShellWindowId_DockedContainer);
docked_container->AddChild(window.get());
window->Show();
- aura::Window* root = window->GetRootWindow();
- ui::EventTargeter* targeter =
- root->GetHost()->dispatcher()->GetDefaultEventTargeter();
+ ui::EventTarget* root = window->GetRootWindow();
+ ui::EventTargeter* targeter = root->GetEventTargeter();
const gfx::Rect bounds = window->bounds();
const int kNumPoints = 5;
struct {
« no previous file with comments | « ash/wm/panels/panel_layout_manager_unittest.cc ('k') | ui/aura/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698