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

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

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: Address review issues. Created 3 years, 8 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 | « components/exo/shell_surface_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wayland/server.cc
diff --git a/components/exo/wayland/server.cc b/components/exo/wayland/server.cc
index af6732c0b8b2f3e164ff5715c203495d02cf0d17..ac203a970e2da78b7dd74b8ef4067a32cd9252ac 100644
--- a/components/exo/wayland/server.cc
+++ b/components/exo/wayland/server.cc
@@ -31,6 +31,7 @@
#include <utility>
#include "ash/public/cpp/shell_window_ids.h"
+#include "ash/public/interfaces/window_pin_type.mojom.h"
#include "ash/shell.h"
#include "base/bind.h"
#include "base/cancelable_callback.h"
@@ -1951,11 +1952,14 @@ void remote_surface_unfullscreen(wl_client* client, wl_resource* resource) {
void remote_surface_pin(wl_client* client,
wl_resource* resource,
int32_t trusted) {
- GetUserDataAs<ShellSurface>(resource)->SetPinned(true, trusted);
+ GetUserDataAs<ShellSurface>(resource)->SetPinned(
+ trusted ? ash::mojom::WindowPinType::TRUSTED_PINNED
+ : ash::mojom::WindowPinType::PINNED);
}
void remote_surface_unpin(wl_client* client, wl_resource* resource) {
- GetUserDataAs<ShellSurface>(resource)->SetPinned(false, /* trusted */ false);
+ GetUserDataAs<ShellSurface>(resource)->SetPinned(
+ ash::mojom::WindowPinType::NONE);
}
void remote_surface_set_system_modal(wl_client* client, wl_resource* resource) {
« no previous file with comments | « components/exo/shell_surface_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698