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

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

Issue 2326223002: Revert of Refactor X11ForeignWindowManager (Closed)
Patch Set: Created 4 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
« no previous file with comments | « ui/base/x/BUILD.gn ('k') | ui/base/x/selection_owner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/selection_owner.h
diff --git a/ui/base/x/selection_owner.h b/ui/base/x/selection_owner.h
index fd2326c9752151a0f129f7ae38cf0882812439c7..317a70029f0592f4f291acb00c816eae7b3ab2f9 100644
--- a/ui/base/x/selection_owner.h
+++ b/ui/base/x/selection_owner.h
@@ -20,8 +20,6 @@
#include "ui/gfx/x/x11_types.h"
namespace ui {
-
-class XScopedEventSelector;
// Owns a specific X11 selection on an X window.
//
@@ -67,7 +65,8 @@
XAtom property,
const scoped_refptr<base::RefCountedMemory>& data,
int offset,
- base::TimeTicks timeout);
+ base::TimeTicks timeout,
+ int foreign_window_manager_id);
IncrementalTransfer(const IncrementalTransfer& other);
~IncrementalTransfer();
@@ -87,6 +86,10 @@
// Time when the transfer should be aborted because the selection requestor
// is taking too long to notify us that we can send the next chunk.
base::TimeTicks timeout;
+
+ // Used to unselect PropertyChangeMask on |window| when we are done with
+ // the data transfer.
+ int foreign_window_manager_id;
};
// Attempts to convert the selection to |target|. If the conversion is
@@ -113,9 +116,6 @@
XDisplay* x_display_;
XID x_window_;
- // Events selected on the requesting window.
- std::unique_ptr<XScopedEventSelector> requestor_events_;
-
// The X11 selection that this instance communicates on.
XAtom selection_name_;
« no previous file with comments | « ui/base/x/BUILD.gn ('k') | ui/base/x/selection_owner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698