| 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_UTILS_H_ | 5 #ifndef UI_BASE_X_SELECTION_UTILS_H_ |
| 6 #define UI_BASE_X_SELECTION_UTILS_H_ | 6 #define UI_BASE_X_SELECTION_UTILS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
| 10 | 10 |
| 11 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 11 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
| 12 #undef RootWindow | 12 #undef RootWindow |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 | 15 |
| 16 #include "base/memory/ref_counted_memory.h" | 16 #include "base/memory/ref_counted_memory.h" |
| 17 #include "ui/base/clipboard/clipboard.h" | 17 #include "ui/base/clipboard/clipboard.h" |
| 18 #include "ui/base/ui_base_export.h" | 18 #include "ui/base/ui_base_export.h" |
| 19 #include "ui/gfx/x/x11_atom_cache.h" | 19 #include "ui/gfx/x/x11_atom_cache.h" |
| 20 | 20 |
| 21 namespace ui { | 21 namespace ui { |
| 22 class SelectionData; | 22 class SelectionData; |
| 23 class X11AtomCache; | 23 class X11AtomCache; |
| 24 | 24 |
| 25 extern const char kMimeTypeMozillaURL[]; |
| 25 extern const char kString[]; | 26 extern const char kString[]; |
| 26 extern const char kText[]; | 27 extern const char kText[]; |
| 27 extern const char kUtf8String[]; | 28 extern const char kUtf8String[]; |
| 28 | 29 |
| 29 // Returns a list of all text atoms that we handle. | 30 // Returns a list of all text atoms that we handle. |
| 30 UI_BASE_EXPORT std::vector< ::Atom> GetTextAtomsFrom( | 31 UI_BASE_EXPORT std::vector< ::Atom> GetTextAtomsFrom( |
| 31 const X11AtomCache* atom_cache); | 32 const X11AtomCache* atom_cache); |
| 32 | 33 |
| 33 UI_BASE_EXPORT std::vector< ::Atom> GetURLAtomsFrom( | 34 UI_BASE_EXPORT std::vector< ::Atom> GetURLAtomsFrom( |
| 34 const X11AtomCache* atom_cache); | 35 const X11AtomCache* atom_cache); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 private: | 123 private: |
| 123 ::Atom type_; | 124 ::Atom type_; |
| 124 scoped_refptr<base::RefCountedMemory> memory_; | 125 scoped_refptr<base::RefCountedMemory> memory_; |
| 125 | 126 |
| 126 X11AtomCache atom_cache_; | 127 X11AtomCache atom_cache_; |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace ui | 130 } // namespace ui |
| 130 | 131 |
| 131 #endif // UI_BASE_X_SELECTION_UTILS_H_ | 132 #endif // UI_BASE_X_SELECTION_UTILS_H_ |
| OLD | NEW |