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

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

Issue 2042503002: ozone/platform/wayland: Add support for wl_output_interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [For landding] update comments Created 4 years, 3 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/fake_server.cc ('k') | ui/ozone/platform/wayland/wayland_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/wayland/wayland_connection.h
diff --git a/ui/ozone/platform/wayland/wayland_connection.h b/ui/ozone/platform/wayland/wayland_connection.h
index 108cac558b2e1f8080665d618157ba4d229c3b87..8f837b586e4b993b7d3a5bdf31a6eca19a2c26ed 100644
--- a/ui/ozone/platform/wayland/wayland_connection.h
+++ b/ui/ozone/platform/wayland/wayland_connection.h
@@ -11,6 +11,7 @@
#include "ui/events/platform/platform_event_source.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/ozone/platform/wayland/wayland_object.h"
+#include "ui/ozone/platform/wayland/wayland_output.h"
#include "ui/ozone/platform/wayland/wayland_pointer.h"
namespace ui {
@@ -38,6 +39,9 @@ class WaylandConnection : public PlatformEventSource,
void AddWindow(gfx::AcceleratedWidget widget, WaylandWindow* window);
void RemoveWindow(gfx::AcceleratedWidget widget);
+ const std::vector<std::unique_ptr<WaylandOutput>>& GetOutputList() const;
+ WaylandOutput* PrimaryOutput() const;
+
private:
void Flush();
void DispatchUiEvent(Event* event);
@@ -79,6 +83,8 @@ class WaylandConnection : public PlatformEventSource,
bool watching_ = false;
base::MessagePumpLibevent::FileDescriptorWatcher controller_;
+ std::vector<std::unique_ptr<WaylandOutput>> output_list_;
+
DISALLOW_COPY_AND_ASSIGN(WaylandConnection);
};
« no previous file with comments | « ui/ozone/platform/wayland/fake_server.cc ('k') | ui/ozone/platform/wayland/wayland_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698