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

Side by Side Diff: ui/base/x/x11_window_cache_event_source.h

Issue 2199063003: Linux: Add xcb FD to glib event loop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor Created 4 years, 4 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/base/x/x11_window_cache.cc ('k') | ui/base/x/x11_window_cache_event_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_BASE_X_X11_WINDOW_CACHE_EVENT_SOURCE_H_
6 #define UI_BASE_X_X11_WINDOW_CACHE_EVENT_SOURCE_H_
7
8 #ifndef USE_GLIB
9 #error "XWindowCache is only used on desktop Linux builds."
10 #endif
11
12 #include <memory>
13
14 #include "ui/base/x/ui_base_x_export.h"
15
16 typedef struct _GPollFD GPollFD;
17 typedef struct _GSource GSource;
18
19 namespace ui {
20
21 class XWindowCache;
22
23 // Maintain a
24 class UI_BASE_X_EXPORT XWindowCacheEventSource {
25 public:
26 XWindowCacheEventSource(XWindowCache* cache);
27 ~XWindowCacheEventSource();
28
29 private:
30 GSource* g_source_ = nullptr;
31 std::unique_ptr<GPollFD> g_poll_;
32 };
33
34 } // namespace ui
35
36 #endif // UI_BASE_X_X11_WINDOW_CACHE_EVENT_SOURCE_H_
OLDNEW
« no previous file with comments | « ui/base/x/x11_window_cache.cc ('k') | ui/base/x/x11_window_cache_event_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698