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

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

Issue 2147523003: Rename WaylandDisplay to WaylandConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add argument name Created 4 years, 5 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 | « ui/ozone/platform/wayland/wayland.gypi ('k') | ui/ozone/platform/wayland/wayland_connection.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_CONNECTION_H_
6 #define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_DISPLAY_H_ 6 #define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_CONNECTION_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"
11 #include "ui/events/platform/platform_event_source.h" 11 #include "ui/events/platform/platform_event_source.h"
12 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 #include "ui/ozone/platform/wayland/wayland_object.h" 13 #include "ui/ozone/platform/wayland/wayland_object.h"
14 #include "ui/ozone/platform/wayland/wayland_pointer.h" 14 #include "ui/ozone/platform/wayland/wayland_pointer.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 class WaylandWindow; 18 class WaylandWindow;
19 19
20 class WaylandDisplay : public PlatformEventSource, 20 class WaylandConnection : public PlatformEventSource,
21 public base::MessagePumpLibevent::Watcher { 21 public base::MessagePumpLibevent::Watcher {
22 public: 22 public:
23 WaylandDisplay(); 23 WaylandConnection();
24 ~WaylandDisplay() override; 24 ~WaylandConnection() override;
25 25
26 bool Initialize(); 26 bool Initialize();
27 bool StartProcessingEvents(); 27 bool StartProcessingEvents();
28 28
29 // Schedules a flush of the Wayland connection. 29 // Schedules a flush of the Wayland connection.
30 void ScheduleFlush(); 30 void ScheduleFlush();
31 31
32 wl_display* display() { return display_.get(); } 32 wl_display* display() { return display_.get(); }
33 wl_compositor* compositor() { return compositor_.get(); } 33 wl_compositor* compositor() { return compositor_.get(); }
34 wl_shm* shm() { return shm_.get(); } 34 wl_shm* shm() { return shm_.get(); }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 wl::Object<wl_seat> seat_; 72 wl::Object<wl_seat> seat_;
73 wl::Object<wl_shm> shm_; 73 wl::Object<wl_shm> shm_;
74 wl::Object<xdg_shell> shell_; 74 wl::Object<xdg_shell> shell_;
75 75
76 std::unique_ptr<WaylandPointer> pointer_; 76 std::unique_ptr<WaylandPointer> pointer_;
77 77
78 bool scheduled_flush_ = false; 78 bool scheduled_flush_ = false;
79 bool watching_ = false; 79 bool watching_ = false;
80 base::MessagePumpLibevent::FileDescriptorWatcher controller_; 80 base::MessagePumpLibevent::FileDescriptorWatcher controller_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(WaylandDisplay); 82 DISALLOW_COPY_AND_ASSIGN(WaylandConnection);
83 }; 83 };
84 84
85 } // namespace ui 85 } // namespace ui
86 86
87 #endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_DISPLAY_H_ 87 #endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_CONNECTION_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/wayland/wayland.gypi ('k') | ui/ozone/platform/wayland/wayland_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698