Commit 028f66e8 authored by Ryo Hashimoto's avatar Ryo Hashimoto Committed by Commit Bot

ash: Set event targeter for CT

Exo window uses custom event targter so we need to explicitly set
the default targeter to correctly handle input events.

Bug: 925769
Test: manually
Change-Id: Ia596bd4524d2a3e8dae86e8be34821822edf9626
Reviewed-on: https://chromium-review.googlesource.com/c/1488485Reviewed-by: default avatarMitsuru Oshima (Slow) <oshima@chromium.org>
Commit-Queue: Ryo Hashimoto <hashimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635824}
parent 82ee5dab
......@@ -13,6 +13,7 @@
#include "components/exo/shell_surface_util.h"
#include "components/exo/surface.h"
#include "ui/aura/window.h"
#include "ui/aura/window_targeter.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
......@@ -76,6 +77,9 @@ mojom::ArcCustomTabViewPtr ArcCustomTabView::Create(int32_t task_id,
parent->SetLayoutManager(std::make_unique<views::FillLayout>());
parent->Layout();
view->remote_view_host_->GetNativeViewContainer()->SetEventTargeter(
std::make_unique<aura::WindowTargeter>());
mojom::ArcCustomTabViewPtr ptr;
view->Bind(&ptr);
return ptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment