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

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

Issue 396813004: Make selection_owner.h not include Xlib.h for consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | ui/base/dragdrop/os_exchange_data_provider_aurax11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/clipboard/clipboard_aurax11.cc
diff --git a/ui/base/clipboard/clipboard_aurax11.cc b/ui/base/clipboard/clipboard_aurax11.cc
index 1626f34e372f002ec7d3f25a04e24ca390c842a5..8a4f6feb0b360538228c4e3de97ba3545b84f0d4 100644
--- a/ui/base/clipboard/clipboard_aurax11.cc
+++ b/ui/base/clipboard/clipboard_aurax11.cc
@@ -534,12 +534,12 @@ uint32_t Clipboard::AuraX11Details::DispatchEvent(const PlatformEvent& xev) {
switch (xev->type) {
case SelectionRequest: {
if (xev->xselectionrequest.selection == XA_PRIMARY) {
- primary_owner_.OnSelectionRequest(xev->xselectionrequest);
+ primary_owner_.OnSelectionRequest(*xev);
} else {
// We should not get requests for the CLIPBOARD_MANAGER selection
// because we never take ownership of it.
DCHECK_EQ(GetCopyPasteSelection(), xev->xselectionrequest.selection);
- clipboard_owner_.OnSelectionRequest(xev->xselectionrequest);
+ clipboard_owner_.OnSelectionRequest(*xev);
}
break;
}
@@ -555,12 +555,12 @@ uint32_t Clipboard::AuraX11Details::DispatchEvent(const PlatformEvent& xev) {
}
case SelectionClear: {
if (xev->xselectionclear.selection == XA_PRIMARY) {
- primary_owner_.OnSelectionClear(xev->xselectionclear);
+ primary_owner_.OnSelectionClear(*xev);
} else {
// We should not get requests for the CLIPBOARD_MANAGER selection
// because we never take ownership of it.
DCHECK_EQ(GetCopyPasteSelection(), xev->xselection.selection);
- clipboard_owner_.OnSelectionClear(xev->xselectionclear);
+ clipboard_owner_.OnSelectionClear(*xev);
}
break;
}
« no previous file with comments | « no previous file | ui/base/dragdrop/os_exchange_data_provider_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698