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

Unified Diff: ui/views/touchui/touch_selection_controller_impl_unittest.cc

Issue 2681613002: Avoid two targeting phases in aura client-lib and EventProcessor. (Closed)
Patch Set: test 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
Index: ui/views/touchui/touch_selection_controller_impl_unittest.cc
diff --git a/ui/views/touchui/touch_selection_controller_impl_unittest.cc b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
index 83de78435dfcbedcc831465e4af30e8177811178..3fef4493d3cd9291ad63d0bbef8bfad6d7e242c2 100644
--- a/ui/views/touchui/touch_selection_controller_impl_unittest.cc
+++ b/ui/views/touchui/touch_selection_controller_impl_unittest.cc
@@ -10,6 +10,8 @@
#include "ui/aura/client/screen_position_client.h"
#include "ui/aura/test/test_cursor_client.h"
#include "ui/aura/window.h"
+#include "ui/aura/window_event_dispatcher.h"
+#include "ui/aura/window_tree_host.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/touch/touch_editing_controller.h"
#include "ui/base/ui_base_switches.h"
@@ -794,8 +796,9 @@ TEST_F(TouchSelectionControllerImplTest, HandlesStackAboveParent) {
if (IsMus())
return;
- ui::EventTarget* root = GetContext();
- ui::EventTargeter* targeter = root->GetEventTargeter();
+ gfx::NativeWindow root = GetContext();
sadrul 2017/02/23 03:20:40 aura::Window
riajiang 2017/02/23 03:46:01 Done.
+ ui::EventTargeter* targeter =
+ root->GetHost()->dispatcher()->GetDefaultEventTargeter();
// Create the first window containing a Views::Textfield.
CreateTextfield();

Powered by Google App Engine
This is Rietveld 408576698