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

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

Issue 2027943002: [WIP] Make content_shell run under Wayland Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (09.28.2016)Rebase on master 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
Index: ui/ozone/platform/wayland/wayland_output.h
diff --git a/ui/ozone/platform/wayland/wayland_output.h b/ui/ozone/platform/wayland/wayland_output.h
index 39e50829caffbe40977a11595cdc454f8938b026..7187a412921601b9325ab841bff36ec796b3efab 100644
--- a/ui/ozone/platform/wayland/wayland_output.h
+++ b/ui/ozone/platform/wayland/wayland_output.h
@@ -16,19 +16,11 @@ namespace ui {
// that are available to the application.
class WaylandOutput {
public:
- class Observer {
- public:
- // Will be called when wl_output is available.
- virtual void OnOutputReadyForUse() = 0;
- };
-
- WaylandOutput(wl_output*);
+ WaylandOutput(wl_output*, uint32_t name);
~WaylandOutput();
// Returns the geometry of the output.
gfx::Rect Geometry() const { return rect_; }
- void SetObserver(Observer* observer) { observer_ = observer; }
- Observer* observer() { return observer_; }
private:
// Callback functions used for setting geometric properties of the output
@@ -52,10 +44,9 @@ class WaylandOutput {
int32_t refresh);
wl::Object<wl_output> output_;
+ int32_t name_;
gfx::Rect rect_;
- Observer* observer_;
-
DISALLOW_COPY_AND_ASSIGN(WaylandOutput);
};
« no previous file with comments | « ui/ozone/platform/wayland/wayland_connection_unittest.cc ('k') | ui/ozone/platform/wayland/wayland_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698