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

Unified Diff: ui/base/clipboard/clipboard_aurax11.cc

Issue 23460052: Move XID, XDisplay, GetXDisplay and a few other types to ui/gfx/x/x11_types.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
Index: ui/base/clipboard/clipboard_aurax11.cc
diff --git a/ui/base/clipboard/clipboard_aurax11.cc b/ui/base/clipboard/clipboard_aurax11.cc
index a2ceb99da476f556fe86fe51ece6acd61b900df9..5c6ebb8dfe317e5a67ab7ffdfe2c75ef00ccf549 100644
--- a/ui/base/clipboard/clipboard_aurax11.cc
+++ b/ui/base/clipboard/clipboard_aurax11.cc
@@ -90,9 +90,9 @@ SelectionChangeObserver::SelectionChangeObserver()
clipboard_sequence_number_(0),
primary_sequence_number_(0) {
int ignored;
- if (XFixesQueryExtension(GetXDisplay(), &event_base_, &ignored)) {
- clipboard_atom_ = XInternAtom(GetXDisplay(), kClipboard, false);
- XFixesSelectSelectionInput(GetXDisplay(), GetX11RootWindow(),
+ if (XFixesQueryExtension(gfx::GetXDisplay(), &event_base_, &ignored)) {
+ clipboard_atom_ = XInternAtom(gfx::GetXDisplay(), kClipboard, false);
+ XFixesSelectSelectionInput(gfx::GetXDisplay(), GetX11RootWindow(),
clipboard_atom_,
XFixesSetSelectionOwnerNotifyMask |
XFixesSelectionWindowDestroyNotifyMask |
@@ -100,7 +100,7 @@ SelectionChangeObserver::SelectionChangeObserver()
// This seems to be semi-optional. For some reason, registering for any
// selection notify events seems to subscribe us to events for both the
// primary and the clipboard buffers. Register anyway just to be safe.
- XFixesSelectSelectionInput(GetXDisplay(), GetX11RootWindow(),
+ XFixesSelectSelectionInput(gfx::GetXDisplay(), GetX11RootWindow(),
XA_PRIMARY,
XFixesSetSelectionOwnerNotifyMask |
XFixesSelectionWindowDestroyNotifyMask |
@@ -309,7 +309,7 @@ class Clipboard::AuraX11Details : public base::MessagePumpDispatcher {
};
Clipboard::AuraX11Details::AuraX11Details()
- : x_display_(GetXDisplay()),
+ : x_display_(gfx::GetXDisplay()),
x_root_window_(DefaultRootWindow(x_display_)),
x_window_(XCreateWindow(
x_display_, x_root_window_,

Powered by Google App Engine
This is Rietveld 408576698