blob: 6290c691cf1fad901d59af7b8e704acacc4f53dd [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/platform_window/platform_window_delegate_base.h"
namespace ui {
// This is an optional linux delegate interface, which should be implemented by
// linux-based platforms. It contains both Wayland and X11 specific and common
// interfaces.
class PlatformWindowDelegateLinux : public PlatformWindowDelegateBase {
~PlatformWindowDelegateLinux() override;
// Notifies the delegate that the window got mapped in the X server. Wayland
// does not support this interface.
virtual void OnXWindowMapped();
virtual void OnXWindowUnmapped();
// Notifies if the PlatformWindow looses a mouse grab. This can be useful for
// Wayland or X11. Both of them provide pointer enter and leave notifications,
// which non-ozone X11 (just an example) use to be using to notify about lost
// pointer grab along with explicit grabs. Wayland also has this technique.
// However, explicit grab is available only for popup (menu) windows.
virtual void OnLostMouseGrab();
// Notifies the delegate if the PlatformWindow has changed the workspace it is
// located in.
virtual void OnWorkspaceChanged();
} // namespace ui