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

Unified Diff: ui/wayland/wayland_display.h

Issue 10009024: Remove WAYLAND port (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 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 | « ui/wayland/wayland_cursor.cc ('k') | ui/wayland/wayland_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wayland/wayland_display.h
diff --git a/ui/wayland/wayland_display.h b/ui/wayland/wayland_display.h
deleted file mode 100644
index f122e55fc1b2d89f2092ace5b27be13687d09704..0000000000000000000000000000000000000000
--- a/ui/wayland/wayland_display.h
+++ /dev/null
@@ -1,95 +0,0 @@
-// 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 UI_WAYLAND_WAYLAND_DISPLAY_H_
-#define UI_WAYLAND_WAYLAND_DISPLAY_H_
-
-#include <stdint.h>
-
-#include <list>
-
-#include "base/basictypes.h"
-
-struct wl_compositor;
-struct wl_display;
-struct wl_shell;
-struct wl_shm;
-struct wl_surface;
-
-namespace ui {
-
-class WaylandBuffer;
-class WaylandInputDevice;
-class WaylandScreen;
-
-// WaylandDisplay is a wrapper around wl_display. Once we get a valid
-// wl_display, the Wayland server will send different events to register
-// the Wayland compositor, shell, screens, input devices, ...
-class WaylandDisplay {
- public:
- // Attempt to create a connection to the display. If it fails this returns
- // NULL
- static WaylandDisplay* Connect(char* name);
-
- // Get the WaylandDisplay associated with the native Wayland display
- static WaylandDisplay* GetDisplay(wl_display* display);
-
- ~WaylandDisplay();
-
- // Creates a wayland surface. This is used to create a window surface.
- // The returned pointer should be deleted by the caller.
- wl_surface* CreateSurface();
-
- // Sets the specified buffer as the surface for the cursor. (x, y) is
- // the hotspot for the cursor.
- void SetCursor(WaylandBuffer* buffer, int32_t x, int32_t y);
-
- // Returns a pointer to the wl_display.
- wl_display* display() const { return display_; }
-
- // Returns a list of the registered screens.
- std::list<WaylandScreen*> GetScreenList() const;
-
- wl_shell* shell() const { return shell_; }
-
- wl_shm* shm() const { return shm_; }
-
- private:
- WaylandDisplay(char* name);
-
- // This handler resolves all server events used in initialization. It also
- // handles input device registration, screen registration.
- static void DisplayHandleGlobal(wl_display* display,
- uint32_t id,
- const char* interface,
- uint32_t version,
- void* data);
-
- // Used when the shell requires configuration. This is called when a
- // window is configured and receives its size.
- // TODO(dnicoara) Need to look if there is one shell per window. Then it
- // makes more sense to move this into the WaylandWindow and it would keep
- // track of the shell.
- static void ShellHandleConfigure(void* data,
- wl_shell* shell,
- uint32_t time,
- uint32_t edges,
- wl_surface* surface,
- int32_t width,
- int32_t height);
-
- // WaylandDisplay manages the memory of all these pointers.
- wl_display* display_;
- wl_compositor* compositor_;
- wl_shell* shell_;
- wl_shm* shm_;
- std::list<WaylandScreen*> screen_list_;
- std::list<WaylandInputDevice*> input_list_;
-
- DISALLOW_COPY_AND_ASSIGN(WaylandDisplay);
-};
-
-} // namespace ui
-
-#endif // UI_WAYLAND_WAYLAND_DISPLAY_H_
« no previous file with comments | « ui/wayland/wayland_cursor.cc ('k') | ui/wayland/wayland_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698