| 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[]; | |
| 26 extern const char kString[]; | 25 extern const char kString[]; |
| 27 extern const char kText[]; | 26 extern const char kText[]; |
| 28 extern const char kUtf8String[]; | 27 extern const char kUtf8String[]; |
| 29 | 28 |
| 30 // Returns a list of all text atoms that we handle. | 29 // Returns a list of all text atoms that we handle. |
| 31 UI_BASE_EXPORT std::vector< ::Atom> GetTextAtomsFrom( | 30 UI_BASE_EXPORT std::vector< ::Atom> GetTextAtomsFrom( |
| 32 const X11AtomCache* atom_cache); | 31 const X11AtomCache* atom_cache); |
| 33 | 32 |
| 34 UI_BASE_EXPORT std::vector< ::Atom> GetURLAtomsFrom( | 33 UI_BASE_EXPORT std::vector< ::Atom> GetURLAtomsFrom( |
| 35 const X11AtomCache* atom_cache); | 34 const X11AtomCache* atom_cache); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 private: | 122 private: |
| 124 ::Atom type_; | 123 ::Atom type_; |
| 125 scoped_refptr<base::RefCountedMemory> memory_; | 124 scoped_refptr<base::RefCountedMemory> memory_; |
| 126 | 125 |
| 127 X11AtomCache atom_cache_; | 126 X11AtomCache atom_cache_; |
| 128 }; | 127 }; |
| 129 | 128 |
| 130 } // namespace ui | 129 } // namespace ui |
| 131 | 130 |
| 132 #endif // UI_BASE_X_SELECTION_UTILS_H_ | 131 #endif // UI_BASE_X_SELECTION_UTILS_H_ |
| OLD | NEW |