| OLD | NEW |
| (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_ |
| OLD | NEW |