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

Unified Diff: components/exo/wayland/server.cc

Issue 2184103003: arc: Implement proper Arc window activation for task moving to front. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix rebase Created 4 years, 5 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
Index: components/exo/wayland/server.cc
diff --git a/components/exo/wayland/server.cc b/components/exo/wayland/server.cc
index 8b83c26bfcfa52f47bb64cda6380aa57f3278822..278c4b336b9bbadea70d5daa2b37a166c47098e5 100644
--- a/components/exo/wayland/server.cc
+++ b/components/exo/wayland/server.cc
@@ -1529,6 +1529,12 @@ void remote_surface_set_rectangular_shadow_background_opacity(
wl_fixed_to_double(opacity));
}
+void remote_surface_activate(wl_client* client,
+ wl_resource* resource,
+ uint32_t serial) {
+ GetUserDataAs<ShellSurface>(resource)->Activate();
+}
+
const struct zwp_remote_surface_v1_interface remote_surface_implementation = {
remote_surface_destroy,
remote_surface_set_app_id,
@@ -1546,7 +1552,8 @@ const struct zwp_remote_surface_v1_interface remote_surface_implementation = {
remote_surface_set_top_inset,
remote_surface_set_system_modal,
remote_surface_unset_system_modal,
- remote_surface_set_rectangular_shadow_background_opacity};
+ remote_surface_set_rectangular_shadow_background_opacity,
+ remote_surface_activate};
////////////////////////////////////////////////////////////////////////////////
// notification_surface_interface:
@@ -1888,7 +1895,7 @@ const struct zwp_remote_shell_v1_interface remote_shell_implementation = {
remote_shell_destroy, remote_shell_get_remote_surface,
remote_shell_get_notification_surface};
-const uint32_t remote_shell_version = 9;
+const uint32_t remote_shell_version = 10;
void bind_remote_shell(wl_client* client,
void* data,

Powered by Google App Engine
This is Rietveld 408576698