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

Side by Side Diff: ui/ozone/platform/wayland/wayland_display.h

Issue 1742883002: ozone/platform/wayland: Drop WaylandWindow::GetWidget() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wayland-test1
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/ozone/platform/wayland/wayland_display.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PLATFORM_WAYLAND_WAYLAND_DISPLAY_H_ 5 #ifndef UI_OZONE_PLATFORM_WAYLAND_WAYLAND_DISPLAY_H_
6 #define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_DISPLAY_H_ 6 #define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_DISPLAY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/message_loop/message_pump_libevent.h" 10 #include "base/message_loop/message_pump_libevent.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // Flushes the Wayland connection. 27 // Flushes the Wayland connection.
28 void Flush(); 28 void Flush();
29 29
30 wl_display* display() { return display_.get(); } 30 wl_display* display() { return display_.get(); }
31 wl_compositor* compositor() { return compositor_.get(); } 31 wl_compositor* compositor() { return compositor_.get(); }
32 wl_shm* shm() { return shm_.get(); } 32 wl_shm* shm() { return shm_.get(); }
33 xdg_shell* shell() { return shell_.get(); } 33 xdg_shell* shell() { return shell_.get(); }
34 34
35 WaylandWindow* GetWindow(gfx::AcceleratedWidget widget); 35 WaylandWindow* GetWindow(gfx::AcceleratedWidget widget);
36 void AddWindow(WaylandWindow* window); 36 void AddWindow(gfx::AcceleratedWidget widget, WaylandWindow* window);
37 void RemoveWindow(WaylandWindow* window); 37 void RemoveWindow(gfx::AcceleratedWidget widget);
38 38
39 private: 39 private:
40 // PlatformEventSource 40 // PlatformEventSource
41 void OnDispatcherListChanged() override; 41 void OnDispatcherListChanged() override;
42 42
43 // base::MessagePumpLibevent::Watcher 43 // base::MessagePumpLibevent::Watcher
44 void OnFileCanReadWithoutBlocking(int fd) override; 44 void OnFileCanReadWithoutBlocking(int fd) override;
45 void OnFileCanWriteWithoutBlocking(int fd) override; 45 void OnFileCanWriteWithoutBlocking(int fd) override;
46 46
47 // wl_registry_listener 47 // wl_registry_listener
(...skipping 17 matching lines...) Expand all
65 65
66 bool watching_ = false; 66 bool watching_ = false;
67 base::MessagePumpLibevent::FileDescriptorWatcher controller_; 67 base::MessagePumpLibevent::FileDescriptorWatcher controller_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(WaylandDisplay); 69 DISALLOW_COPY_AND_ASSIGN(WaylandDisplay);
70 }; 70 };
71 71
72 } // namespace ui 72 } // namespace ui
73 73
74 #endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_DISPLAY_H_ 74 #endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_DISPLAY_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/wayland/wayland_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698