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

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

Issue 2777373002: Add set_autohide_systemui to wayland protocol (Closed)
Patch Set: Add set_autohide_systemui to wayland Created 3 years, 9 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 9b6c097c8ae44bbc154f6376e10dc1ab1dbe43b0..9047a00f6930ad703a446e42542314aa0a62d366 100644
--- a/components/exo/wayland/server.cc
+++ b/components/exo/wayland/server.cc
@@ -1978,6 +1978,12 @@ void remote_surface_set_rectangular_surface_shadow(wl_client* client,
shell_surface->SetRectangularSurfaceShadow(content_bounds);
}
+void remote_surface_set_autohide_systemui(wl_client* client,
+ wl_resource* resource,
+ uint32_t autohide) {
+ GetUserDataAs<ShellSurface>(resource)->SetAutohideShelf(autohide);
+}
+
void remote_surface_ack_configure(wl_client* client,
wl_resource* resource,
uint32_t serial) {
@@ -2008,6 +2014,7 @@ const struct zcr_remote_surface_v1_interface remote_surface_implementation = {
remote_surface_set_system_modal,
remote_surface_unset_system_modal,
remote_surface_set_rectangular_surface_shadow,
+ remote_surface_set_autohide_systemui,
remote_surface_ack_configure,
remote_surface_move};
@@ -2054,7 +2061,7 @@ class WaylandRemoteShell : public WMHelper::MaximizeModeObserver,
}
bool IsMultiDisplaySupported() const {
- return wl_resource_get_version(remote_shell_resource_) >= 3;
+ return wl_resource_get_version(remote_shell_resource_) >= 4;
}
std::unique_ptr<ShellSurface> CreateShellSurface(Surface* surface,

Powered by Google App Engine
This is Rietveld 408576698