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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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/selection_owner.h ('k') | ui/chromeos/ime/infolist_window.h » ('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 (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
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_
OLDNEW
« no previous file with comments | « ui/base/x/selection_owner.h ('k') | ui/chromeos/ime/infolist_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698