#include "ui/ozone/platform/wayland/host/wayland_window_manager.h"
#include "base/observer_list.h"
#include "ui/base/dragdrop/mojom/drag_drop_types.mojom.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
#include "ui/ozone/platform/wayland/host/wayland_window.h"
#include "ui/ozone/platform/wayland/host/wayland_window_drag_controller.h"
#include "ui/ozone/platform/wayland/host/wayland_window_observer.h"
namespace ui {
WaylandWindowManager::WaylandWindowManager(WaylandConnection* connection)
: … { … }
WaylandWindowManager::~WaylandWindowManager() = default;
void WaylandWindowManager::AddObserver(WaylandWindowObserver* observer) { … }
void WaylandWindowManager::RemoveObserver(WaylandWindowObserver* observer) { … }
void WaylandWindowManager::NotifyWindowConfigured(WaylandWindow* window) { … }
void WaylandWindowManager::NotifyWindowRoleAssigned(WaylandWindow* window) { … }
void WaylandWindowManager::GrabLocatedEvents(WaylandWindow* window) { … }
void WaylandWindowManager::UngrabLocatedEvents(WaylandWindow* window) { … }
WaylandWindow* WaylandWindowManager::GetWindow(
gfx::AcceleratedWidget widget) const { … }
WaylandWindow* WaylandWindowManager::GetWindowWithLargestBounds() const { … }
WaylandWindow* WaylandWindowManager::GetCurrentActiveWindow() const { … }
WaylandWindow* WaylandWindowManager::GetCurrentFocusedWindow() const { … }
WaylandWindow* WaylandWindowManager::GetCurrentPointerOrTouchFocusedWindow()
const { … }
WaylandWindow* WaylandWindowManager::GetCurrentPointerFocusedWindow() const { … }
WaylandWindow* WaylandWindowManager::GetCurrentTouchFocusedWindow() const { … }
WaylandWindow* WaylandWindowManager::GetCurrentKeyboardFocusedWindow() const { … }
void WaylandWindowManager::SetPointerFocusedWindow(WaylandWindow* window) { … }
void WaylandWindowManager::SetTouchFocusedWindow(WaylandWindow* window) { … }
void WaylandWindowManager::SetKeyboardFocusedWindow(WaylandWindow* window) { … }
void WaylandWindowManager::AddWindow(gfx::AcceleratedWidget widget,
WaylandWindow* window) { … }
void WaylandWindowManager::RemoveWindow(gfx::AcceleratedWidget widget) { … }
void WaylandWindowManager::AddSubsurface(gfx::AcceleratedWidget widget,
WaylandSubsurface* subsurface) { … }
void WaylandWindowManager::RemoveSubsurface(gfx::AcceleratedWidget widget,
WaylandSubsurface* subsurface) { … }
void WaylandWindowManager::RecycleSubsurface(
std::unique_ptr<WaylandSubsurface> subsurface) { … }
gfx::AcceleratedWidget WaylandWindowManager::AllocateAcceleratedWidget() { … }
void WaylandWindowManager::DumpState(std::ostream& out) const { … }
std::vector<WaylandWindow*> WaylandWindowManager::GetAllWindows() const { … }
bool WaylandWindowManager::IsWindowValid(const WaylandWindow* window) const { … }
}