summaryrefslogtreecommitdiff
path: root/chromium/ui/ozone/platform/wayland/host/wayland_zaura_shell.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/ozone/platform/wayland/host/wayland_zaura_shell.cc')
-rw-r--r--chromium/ui/ozone/platform/wayland/host/wayland_zaura_shell.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/chromium/ui/ozone/platform/wayland/host/wayland_zaura_shell.cc b/chromium/ui/ozone/platform/wayland/host/wayland_zaura_shell.cc
index 518a1a7cce6..2f926a008a2 100644
--- a/chromium/ui/ozone/platform/wayland/host/wayland_zaura_shell.cc
+++ b/chromium/ui/ozone/platform/wayland/host/wayland_zaura_shell.cc
@@ -21,12 +21,17 @@ WaylandZAuraShell::WaylandZAuraShell(zaura_shell* aura_shell,
static const zaura_shell_listener zaura_shell_listener = {
&WaylandZAuraShell::OnLayoutMode,
+ &WaylandZAuraShell::OnBugFix,
};
zaura_shell_add_listener(obj_.get(), &zaura_shell_listener, this);
}
WaylandZAuraShell::~WaylandZAuraShell() = default;
+bool WaylandZAuraShell::HasBugFix(uint32_t id) {
+ return bug_fix_ids_.find(id) != bug_fix_ids_.end();
+}
+
// static
void WaylandZAuraShell::OnLayoutMode(void* data,
struct zaura_shell* zaura_shell,
@@ -47,4 +52,12 @@ void WaylandZAuraShell::OnLayoutMode(void* data,
}
}
+// static
+void WaylandZAuraShell::OnBugFix(void* data,
+ struct zaura_shell* zaura_shell,
+ uint32_t id) {
+ auto* self = static_cast<WaylandZAuraShell*>(data);
+ self->bug_fix_ids_.insert(id);
+}
+
} // namespace ui