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

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

Issue 2313033002: Refactor X11ForeignWindowManager (Reland) (Closed)
Patch Set: Rebase 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 317a70029f0592f4f291acb00c816eae7b3ab2f9..fd2326c9752151a0f129f7ae38cf0882812439c7 100644
--- a/ui/base/x/selection_owner.h
+++ b/ui/base/x/selection_owner.h
@@ -21,6 +21,8 @@
namespace ui {
+class XScopedEventSelector;
+
// Owns a specific X11 selection on an X window.
//
// The selection owner object keeps track of which xwindow is the current
@@ -65,8 +67,7 @@ class UI_BASE_EXPORT SelectionOwner {
XAtom property,
const scoped_refptr<base::RefCountedMemory>& data,
int offset,
- base::TimeTicks timeout,
- int foreign_window_manager_id);
+ base::TimeTicks timeout);
IncrementalTransfer(const IncrementalTransfer& other);
~IncrementalTransfer();
@@ -86,10 +87,6 @@ class UI_BASE_EXPORT SelectionOwner {
// 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
@@ -116,6 +113,9 @@ class UI_BASE_EXPORT SelectionOwner {
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