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

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

Issue 2047703003: Revert of Implement ui::ClipboardMus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/ui_base.gyp ('k') | ui/base/x/selection_utils.cc » ('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_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
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_
OLDNEW
« no previous file with comments | « ui/base/ui_base.gyp ('k') | ui/base/x/selection_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698