| Index: services/ui/public/cpp/lib/window.cc
|
| diff --git a/services/ui/public/cpp/lib/window.cc b/services/ui/public/cpp/lib/window.cc
|
| index ae25fcd96b16f8520db135671fedc7962c8ddcb2..f3dde513a2be1adc17ca0941ff69ecab00188685 100644
|
| --- a/services/ui/public/cpp/lib/window.cc
|
| +++ b/services/ui/public/cpp/lib/window.cc
|
| @@ -447,6 +447,14 @@ void Window::SetCanFocus(bool can_focus) {
|
| client_->SetCanFocus(server_id_, can_focus);
|
| }
|
|
|
| +void Window::SetCanAcceptEvents(bool can_accept_events) {
|
| + if (can_accept_events_ == can_accept_events)
|
| + return;
|
| + can_accept_events_ = can_accept_events;
|
| + if (client_)
|
| + client_->SetCanAcceptEvents(server_id_, can_accept_events_);
|
| +}
|
| +
|
| void Window::Embed(ui::mojom::WindowTreeClientPtr client, uint32_t flags) {
|
| Embed(std::move(client), base::Bind(&EmptyEmbedCallback), flags);
|
| }
|
|
|