| 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_REQUESTOR_H_ | 5 #ifndef UI_BASE_X_SELECTION_REQUESTOR_H_ |
| 6 #define UI_BASE_X_SELECTION_REQUESTOR_H_ | 6 #define UI_BASE_X_SELECTION_REQUESTOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // PerformBlockingConvertSelection() and are removed and destroyed right | 139 // PerformBlockingConvertSelection() and are removed and destroyed right |
| 140 // before the method terminates. | 140 // before the method terminates. |
| 141 std::vector<Request*> requests_; | 141 std::vector<Request*> requests_; |
| 142 | 142 |
| 143 // The index of the currently active request in |requests_|. The active | 143 // The index of the currently active request in |requests_|. The active |
| 144 // request is the request for which XConvertSelection() has been | 144 // request is the request for which XConvertSelection() has been |
| 145 // called and for which we are waiting for a SelectionNotify response. | 145 // called and for which we are waiting for a SelectionNotify response. |
| 146 size_t current_request_index_; | 146 size_t current_request_index_; |
| 147 | 147 |
| 148 // Used to abort requests if the selection owner takes too long to respond. | 148 // Used to abort requests if the selection owner takes too long to respond. |
| 149 base::RepeatingTimer<SelectionRequestor> abort_timer_; | 149 base::RepeatingTimer abort_timer_; |
| 150 | 150 |
| 151 X11AtomCache atom_cache_; | 151 X11AtomCache atom_cache_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(SelectionRequestor); | 153 DISALLOW_COPY_AND_ASSIGN(SelectionRequestor); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace ui | 156 } // namespace ui |
| 157 | 157 |
| 158 #endif // UI_BASE_X_SELECTION_REQUESTOR_H_ | 158 #endif // UI_BASE_X_SELECTION_REQUESTOR_H_ |
| OLD | NEW |