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

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

Issue 2068093002: mus: Allow embedder to intercept events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge 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 | « no previous file | 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 e117fe651ffadf145f975a345fbc60c41f5e779b..83785c4544e148ee9d2f05e231b38c4c7e35a2c8 100644
--- a/components/mus/public/cpp/lib/window.cc
+++ b/components/mus/public/cpp/lib/window.cc
@@ -447,14 +447,15 @@ void Window::SetCanFocus(bool can_focus) {
client_->SetCanFocus(server_id_, can_focus);
}
-void Window::Embed(mus::mojom::WindowTreeClientPtr client) {
- Embed(std::move(client), base::Bind(&EmptyEmbedCallback));
+void Window::Embed(mus::mojom::WindowTreeClientPtr client, uint32_t flags) {
+ Embed(std::move(client), base::Bind(&EmptyEmbedCallback), flags);
}
void Window::Embed(mus::mojom::WindowTreeClientPtr client,
- const EmbedCallback& callback) {
+ const EmbedCallback& callback,
+ uint32_t flags) {
if (PrepareForEmbed())
- client_->Embed(server_id_, std::move(client), callback);
+ client_->Embed(server_id_, std::move(client), flags, callback);
else
callback.Run(false);
}
« no previous file with comments | « no previous file | components/mus/public/cpp/lib/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698