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 #include "ui/base/x/selection_owner.h" | 5 #include "ui/base/x/selection_owner.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 #include <X11/Xatom.h> | 9 #include <X11/Xatom.h> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "ui/base/x/selection_utils.h" | 12 #include "ui/base/x/selection_utils.h" |
| 13 #include "ui/base/x/x11_scoped_event_selector.h" |
13 #include "ui/base/x/x11_util.h" | 14 #include "ui/base/x/x11_util.h" |
14 #include "ui/base/x/x11_window_event_manager.h" | |
15 #include "ui/events/platform/x11/x11_event_source.h" | 15 #include "ui/events/platform/x11/x11_event_source.h" |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const char kAtomPair[] = "ATOM_PAIR"; | 21 const char kAtomPair[] = "ATOM_PAIR"; |
22 const char kIncr[] = "INCR"; | 22 const char kIncr[] = "INCR"; |
23 const char kMultiple[] = "MULTIPLE"; | 23 const char kMultiple[] = "MULTIPLE"; |
24 const char kSaveTargets[] = "SAVE_TARGETS"; | 24 const char kSaveTargets[] = "SAVE_TARGETS"; |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 offset(offset), | 374 offset(offset), |
375 timeout(timeout) {} | 375 timeout(timeout) {} |
376 | 376 |
377 SelectionOwner::IncrementalTransfer::IncrementalTransfer( | 377 SelectionOwner::IncrementalTransfer::IncrementalTransfer( |
378 const IncrementalTransfer& other) = default; | 378 const IncrementalTransfer& other) = default; |
379 | 379 |
380 SelectionOwner::IncrementalTransfer::~IncrementalTransfer() { | 380 SelectionOwner::IncrementalTransfer::~IncrementalTransfer() { |
381 } | 381 } |
382 | 382 |
383 } // namespace ui | 383 } // namespace ui |
OLD | NEW |