| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BASE_X_SELECTION_OWNER_H_ | 5 #ifndef UI_BASE_X_SELECTION_OWNER_H_ |
| 6 #define UI_BASE_X_SELECTION_OWNER_H_ | 6 #define UI_BASE_X_SELECTION_OWNER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted_memory.h" | 14 #include "base/memory/ref_counted_memory.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
| 17 #include "ui/base/ui_base_export.h" | 17 #include "ui/base/ui_base_export.h" |
| 18 #include "ui/base/x/selection_utils.h" | 18 #include "ui/base/x/selection_utils.h" |
| 19 #include "ui/gfx/x/x11_atom_cache.h" | |
| 20 #include "ui/gfx/x/x11_types.h" | 19 #include "ui/gfx/x/x11_types.h" |
| 21 | 20 |
| 22 namespace ui { | 21 namespace ui { |
| 23 | 22 |
| 24 class XScopedEventSelector; | 23 class XScopedEventSelector; |
| 25 | 24 |
| 26 // Owns a specific X11 selection on an X window. | 25 // Owns a specific X11 selection on an X window. |
| 27 // | 26 // |
| 28 // The selection owner object keeps track of which xwindow is the current | 27 // The selection owner object keeps track of which xwindow is the current |
| 29 // owner, and when its |xwindow_|, offers different data types to other | 28 // owner, and when its |xwindow_|, offers different data types to other |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 size_t max_request_size_; | 132 size_t max_request_size_; |
| 134 | 133 |
| 135 // The data we are currently serving. | 134 // The data we are currently serving. |
| 136 SelectionFormatMap format_map_; | 135 SelectionFormatMap format_map_; |
| 137 | 136 |
| 138 std::vector<IncrementalTransfer> incremental_transfers_; | 137 std::vector<IncrementalTransfer> incremental_transfers_; |
| 139 | 138 |
| 140 // Used to abort stale incremental data transfers. | 139 // Used to abort stale incremental data transfers. |
| 141 base::RepeatingTimer incremental_transfer_abort_timer_; | 140 base::RepeatingTimer incremental_transfer_abort_timer_; |
| 142 | 141 |
| 143 X11AtomCache atom_cache_; | |
| 144 | |
| 145 DISALLOW_COPY_AND_ASSIGN(SelectionOwner); | 142 DISALLOW_COPY_AND_ASSIGN(SelectionOwner); |
| 146 }; | 143 }; |
| 147 | 144 |
| 148 } // namespace ui | 145 } // namespace ui |
| 149 | 146 |
| 150 #endif // UI_BASE_X_SELECTION_OWNER_H_ | 147 #endif // UI_BASE_X_SELECTION_OWNER_H_ |
| OLD | NEW |