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

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

Issue 2225903002: arc: Implement proper Arc window activation for task moving to front. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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 f36524376907952cc2799fed2dd67399aacabea4..ec5631e44ca1e39f9dea7df6368b68d502d00851 100644
--- a/components/exo/wayland/server.cc
+++ b/components/exo/wayland/server.cc
@@ -1532,6 +1532,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,
@@ -1549,7 +1555,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:
@@ -1894,7 +1901,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