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

Unified Diff: ui/base/x/selection_utils.h

Issue 2914103002: Remove usages of XInternAtom (Closed)
Patch Set: Address sadrul and sergeyu comments Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/x/selection_requestor_unittest.cc ('k') | ui/base/x/selection_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/selection_utils.h
diff --git a/ui/base/x/selection_utils.h b/ui/base/x/selection_utils.h
index 1f911a3ce97127fc708d7bf259ea3c0a5d1103bf..f7d1e18f20d33a44d3fbc33d3be3e5af0a6fc6ca 100644
--- a/ui/base/x/selection_utils.h
+++ b/ui/base/x/selection_utils.h
@@ -16,25 +16,20 @@
#include "base/memory/ref_counted_memory.h"
#include "ui/base/clipboard/clipboard.h"
#include "ui/base/ui_base_export.h"
-#include "ui/gfx/x/x11_atom_cache.h"
namespace ui {
class SelectionData;
-class X11AtomCache;
extern const char kString[];
extern const char kText[];
extern const char kUtf8String[];
// Returns a list of all text atoms that we handle.
-UI_BASE_EXPORT std::vector< ::Atom> GetTextAtomsFrom(
- const X11AtomCache* atom_cache);
+UI_BASE_EXPORT std::vector<::Atom> GetTextAtomsFrom();
-UI_BASE_EXPORT std::vector< ::Atom> GetURLAtomsFrom(
- const X11AtomCache* atom_cache);
+UI_BASE_EXPORT std::vector<::Atom> GetURLAtomsFrom();
-UI_BASE_EXPORT std::vector< ::Atom> GetURIListAtomsFrom(
- const X11AtomCache* atom_cache);
+UI_BASE_EXPORT std::vector<::Atom> GetURIListAtomsFrom();
// Places the intersection of |desired| and |offered| into |output|.
UI_BASE_EXPORT void GetAtomIntersection(const std::vector< ::Atom>& desired,
@@ -122,8 +117,6 @@ class UI_BASE_EXPORT SelectionData {
private:
::Atom type_;
scoped_refptr<base::RefCountedMemory> memory_;
-
- X11AtomCache atom_cache_;
};
} // namespace ui
« no previous file with comments | « ui/base/x/selection_requestor_unittest.cc ('k') | ui/base/x/selection_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698