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

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

Issue 2011833003: Implement ui::ClipboardMus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: base::string16 in interfaces. >:( 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
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[];
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
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_
OLDNEW
« no previous file with comments | « ui/base/ui_base.gyp ('k') | ui/base/x/selection_utils.cc » ('j') | ui/views/mus/clipboard_mus.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698