Chromium Code Reviews| Index: ui/aura/window_tree_host.cc |
| diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc |
| index 039ec6daecec959a69aafabba001c85f4b746c5a..fe32d02553f75d0093e26e008247f90aa37267ae 100644 |
| --- a/ui/aura/window_tree_host.cc |
| +++ b/ui/aura/window_tree_host.cc |
| @@ -260,8 +260,10 @@ void WindowTreeHost::CreateCompositor(const cc::FrameSinkId& frame_sink_id) { |
| window()->Init(ui::LAYER_NOT_DRAWN); |
| window()->set_host(this); |
| window()->SetName("RootWindow"); |
| - window()->SetEventTargeter( |
| - std::unique_ptr<ui::EventTargeter>(new WindowTargeter())); |
| + if (Env::GetInstance()->mode() == Env::Mode::LOCAL) { |
|
sky
2017/02/15 20:47:17
Is it possible to remove this code and change Env
riajiang
2017/02/16 00:34:08
We are only creating a targeter for the root windo
sky
2017/02/16 01:03:02
The walking only happens in the mus case though, a
riajiang
2017/02/16 19:10:35
Oh I see, thanks for clarifying! You mean also get
|
| + window()->SetEventTargeter( |
| + std::unique_ptr<ui::EventTargeter>(new WindowTargeter())); |
| + } |
| dispatcher_.reset(new WindowEventDispatcher(this)); |
| } |
| } |