OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ |
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ | 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ |
7 | 7 |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 | 9 |
10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "ui/gfx/image/image_skia.h" | 22 #include "ui/gfx/image/image_skia.h" |
23 #include "ui/gfx/vector2d.h" | 23 #include "ui/gfx/vector2d.h" |
24 #include "ui/gfx/x/x11_atom_cache.h" | 24 #include "ui/gfx/x/x11_atom_cache.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 | 26 |
27 namespace ui { | 27 namespace ui { |
28 | 28 |
29 class Clipboard; | 29 class Clipboard; |
30 | 30 |
31 // OSExchangeData::Provider implementation for aura on linux. | 31 // OSExchangeData::Provider implementation for aura on linux. |
32 class UI_EXPORT OSExchangeDataProviderAuraX11 | 32 class UI_BASE_EXPORT OSExchangeDataProviderAuraX11 |
33 : public OSExchangeData::Provider, | 33 : public OSExchangeData::Provider, |
34 public base::MessagePumpDispatcher { | 34 public base::MessagePumpDispatcher { |
35 public: | 35 public: |
36 // |x_window| is the window the cursor is over, and |selection| is the set of | 36 // |x_window| is the window the cursor is over, and |selection| is the set of |
37 // data being offered. | 37 // data being offered. |
38 OSExchangeDataProviderAuraX11(::Window x_window, | 38 OSExchangeDataProviderAuraX11(::Window x_window, |
39 const SelectionFormatMap& selection); | 39 const SelectionFormatMap& selection); |
40 | 40 |
41 // Creates a Provider for sending drag information. This creates its own, | 41 // Creates a Provider for sending drag information. This creates its own, |
42 // hidden X11 window to own send data. | 42 // hidden X11 window to own send data. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 // Takes a snapshot of |format_map_| and offers it to other windows. | 127 // Takes a snapshot of |format_map_| and offers it to other windows. |
128 mutable SelectionOwner selection_owner_; | 128 mutable SelectionOwner selection_owner_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); | 130 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace ui | 133 } // namespace ui |
134 | 134 |
135 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ | 135 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ |
OLD | NEW |