| Index: ui/wayland/wayland_display.h
|
| diff --git a/ui/wayland/wayland_display.h b/ui/wayland/wayland_display.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a359c24db0059cd8321c788dbd323b6a2dd9c2c6
|
| --- /dev/null
|
| +++ b/ui/wayland/wayland_display.h
|
| @@ -0,0 +1,64 @@
|
| +// Copyright (c) 2011 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.
|
| +
|
| +#ifndef WAYLAND_DISPLAY_H_
|
| +#define WAYLAND_DISPLAY_H_
|
| +
|
| +#include <list>
|
| +#include <stdint.h>
|
| +
|
| +class WaylandBuffer;
|
| +class WaylandInputDevice;
|
| +class WaylandScreen;
|
| +
|
| +struct wl_compositor;
|
| +struct wl_display;
|
| +struct wl_shell;
|
| +struct wl_shm;
|
| +struct wl_surface;
|
| +struct wl_visual;
|
| +
|
| +class WaylandDisplay {
|
| + public:
|
| + static WaylandDisplay* Connect(char* name);
|
| + ~WaylandDisplay();
|
| +
|
| + struct wl_surface* CreateSurface();
|
| + void SetCursor(WaylandBuffer* buffer, int32_t x, int32_t y);
|
| +
|
| + struct wl_display* GetNativeDisplay() const;
|
| + std::list<WaylandScreen*> GetScreenList() const;
|
| + struct wl_shell* GetShell() const;
|
| + struct wl_shm* GetShm() const;
|
| + struct wl_visual* GetVisual() const;
|
| + private:
|
| + WaylandDisplay(char* name);
|
| +
|
| + struct wl_display* display_;
|
| + struct wl_compositor* compositor_;
|
| + struct wl_shell* shell_;
|
| + struct wl_shm* shm_;
|
| + struct wl_visual* visual_;
|
| + std::list<WaylandScreen*> screen_list_;
|
| + std::list<WaylandInputDevice*> input_list_;
|
| +
|
| + static void DisplayHandleGlobal(struct wl_display* display,
|
| + uint32_t id,
|
| + const char* interface,
|
| + uint32_t version,
|
| + void* data);
|
| + static void CompositorHandleVisual(void* data,
|
| + struct wl_compositor* compositor,
|
| + uint32_t id,
|
| + uint32_t token);
|
| + static void ShellHandleConfigure(void* data,
|
| + struct wl_shell* shell,
|
| + uint32_t time,
|
| + uint32_t edges,
|
| + struct wl_surface* surface,
|
| + int32_t width,
|
| + int32_t height);
|
| +};
|
| +
|
| +#endif
|
|
|