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

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

Issue 397223002: Enable copying long text to Chrome and pasting long text from Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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_owner.cc ('k') | ui/base/x/selection_requestor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/selection_requestor.h
diff --git a/ui/base/x/selection_requestor.h b/ui/base/x/selection_requestor.h
index 0732211100ceac96f4a9cc1cd562b661fc556b05..5455ff781fbda822b7e4ba612b2682f1a2e82a00 100644
--- a/ui/base/x/selection_requestor.h
+++ b/ui/base/x/selection_requestor.h
@@ -62,6 +62,12 @@ class UI_BASE_EXPORT SelectionRequestor {
// |xwindow_| to us.
void OnSelectionNotify(const XEvent& event);
+ // Returns true if SelectionOwner can process the XChangeProperty event,
+ // |event|.
+ bool CanDispatchPropertyEvent(const XEvent& event);
+
+ void OnPropertyEvent(const XEvent& event);
+
private:
friend class SelectionRequestorTest;
@@ -75,8 +81,12 @@ class UI_BASE_EXPORT SelectionRequestor {
XAtom selection;
XAtom target;
+ // Whether the result of the XConvertSelection() request is being sent
+ // incrementally.
+ bool data_sent_incrementally;
+
// The result data for the XConvertSelection() request.
- scoped_refptr<base::RefCountedMemory> out_data;
+ std::vector<scoped_refptr<base::RefCountedMemory> > out_data;
size_t out_data_items;
XAtom out_type;
@@ -98,7 +108,7 @@ class UI_BASE_EXPORT SelectionRequestor {
// Mark |request| as completed. If the current request is completed, converts
// the selection for the next request.
- void CompleteRequest(size_t index);
+ void CompleteRequest(size_t index, bool success);
// Converts the selection for the request at |current_request_index_|.
void ConvertSelectionForCurrentRequest();
« no previous file with comments | « ui/base/x/selection_owner.cc ('k') | ui/base/x/selection_requestor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698