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

Unified Diff: ui/ozone/platform/wayland/wayland_display.h

Issue 1673063002: ozone/platform/wayland: Add some tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use two WaitableEvents to prevent race, re-arrange some definitions, other minor test robustness fi… Created 4 years, 10 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/ozone/platform/wayland/wayland.gypi ('k') | ui/ozone/platform/wayland/wayland_display_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/wayland/wayland_display.h
diff --git a/ui/ozone/platform/wayland/wayland_display.h b/ui/ozone/platform/wayland/wayland_display.h
index 99b1366bcbb140cbc05d3011d83057ffaba0f17a..3864f19ae42e080da87bde28e276b3b1b2d5ce03 100644
--- a/ui/ozone/platform/wayland/wayland_display.h
+++ b/ui/ozone/platform/wayland/wayland_display.h
@@ -10,14 +10,15 @@
#include "base/message_loop/message_pump_libevent.h"
#include "ui/events/platform/platform_event_source.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/ozone/ozone_export.h"
#include "ui/ozone/platform/wayland/wayland_object.h"
namespace ui {
class WaylandWindow;
-class WaylandDisplay : public PlatformEventSource,
- public base::MessagePumpLibevent::Watcher {
+class OZONE_EXPORT WaylandDisplay : public PlatformEventSource,
+ public base::MessagePumpLibevent::Watcher {
public:
WaylandDisplay();
~WaylandDisplay() override;
@@ -27,6 +28,7 @@ class WaylandDisplay : public PlatformEventSource,
// Flushes the Wayland connection.
void Flush();
+ wl_display* display() { return display_.get(); }
wl_compositor* compositor() { return compositor_.get(); }
wl_shm* shm() { return shm_.get(); }
xdg_shell* shell() { return shell_.get(); }
« no previous file with comments | « ui/ozone/platform/wayland/wayland.gypi ('k') | ui/ozone/platform/wayland/wayland_display_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698