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

Unified Diff: components/mus/public/cpp/lib/window.cc

Issue 2089183003: mus: Introduce API for embedder to dispatch event to the embeded client. Base URL: https://chromium.googlesource.com/chromium/src.git@mus-parent-window-receives-child-event
Patch Set: Created 4 years, 6 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/mus/window_manager_unittest.cc ('k') | components/mus/public/cpp/lib/window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/window.cc
diff --git a/components/mus/public/cpp/lib/window.cc b/components/mus/public/cpp/lib/window.cc
index 83785c4544e148ee9d2f05e231b38c4c7e35a2c8..86ca0dee8b43990382d95a11ddbd1c948e18e357 100644
--- a/components/mus/public/cpp/lib/window.cc
+++ b/components/mus/public/cpp/lib/window.cc
@@ -161,7 +161,7 @@ bool OwnsWindowOrIsRoot(Window* window) {
return OwnsWindow(window->window_tree(), window) || IsClientRoot(window);
}
-void EmptyEmbedCallback(bool result) {}
+void EmptyEmbedCallback(bool result, mojom::InputEventHandlerPtr handler) {}
} // namespace
@@ -457,7 +457,7 @@ void Window::Embed(mus::mojom::WindowTreeClientPtr client,
if (PrepareForEmbed())
client_->Embed(server_id_, std::move(client), flags, callback);
else
- callback.Run(false);
+ callback.Run(false, nullptr);
}
void Window::RequestClose() {
« no previous file with comments | « ash/mus/window_manager_unittest.cc ('k') | components/mus/public/cpp/lib/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698