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

Issue 55052: Copy selection to x clipboard. (Closed)

Created:
11 years, 9 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Copy selection to x clipboard. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13044

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 6

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -31 lines) Patch
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 3 chunks +18 lines, -6 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 3 4 4 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 3 4 9 chunks +92 lines, -13 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 3 chunks +12 lines, -1 line 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 4 chunks +22 lines, -0 lines 0 comments Download
M tools/gtk_clipboard_dump/gtk_clipboard_dump.cc View 1 2 3 4 3 chunks +22 lines, -9 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Evan Stade
This works, except for one case: where the user selects text and then deselects and ...
11 years, 9 months ago (2009-03-28 01:53:48 UTC) #1
Evan Stade
on second thought.. is there some reason we can't let the renderer copy to the ...
11 years, 9 months ago (2009-03-30 07:43:56 UTC) #2
darin (slow to review)
Is there a reason why we can't reuse all of the existing clipboard plumbing?
11 years, 8 months ago (2009-03-30 16:18:29 UTC) #3
darin (slow to review)
To elaborate: it seems to me that text selection is just another reason to generate ...
11 years, 8 months ago (2009-03-30 16:21:36 UTC) #4
brettw
Drive by
11 years, 8 months ago (2009-03-30 16:25:34 UTC) #5
darin (slow to review)
Alternatively, if you can't reuse WebClipboard, then it seems like the SelectionChanged event should just ...
11 years, 8 months ago (2009-03-30 16:26:37 UTC) #6
Evan Stade
On 2009/03/30 16:26:37, darin wrote: > Alternatively, if you can't reuse WebClipboard, then it seems ...
11 years, 8 months ago (2009-03-30 17:11:10 UTC) #7
darin (slow to review)
So, you suspect that the time it takes for X to call you back is ...
11 years, 8 months ago (2009-03-30 17:19:44 UTC) #8
agl
http://codereview.chromium.org/55052/diff/1001/1005 File chrome/browser/renderer_host/render_process_host.h (right): http://codereview.chromium.org/55052/diff/1001/1005#newcode128 Line 128: // FIXME Seems that this should be fixed ...
11 years, 8 months ago (2009-03-30 17:27:02 UTC) #9
Evan Stade
On 2009/03/30 17:19:44, darin wrote: > So, you suspect that the time it takes for ...
11 years, 8 months ago (2009-03-30 17:29:47 UTC) #10
darin (slow to review)
Yes, I know... but you have to tell X that there is clipboard data, so ...
11 years, 8 months ago (2009-03-30 17:45:50 UTC) #11
darin (slow to review)
If you really want to wait to copy the data until it is requested, then ...
11 years, 8 months ago (2009-03-30 17:49:58 UTC) #12
Evan Stade
redesigned the patch. GTK imposes the requirement that we be able to supply the data ...
11 years, 8 months ago (2009-03-30 23:05:09 UTC) #13
darin (slow to review)
Chrome is like a window manager for renderers, so losing the text selection when you ...
11 years, 8 months ago (2009-03-30 23:50:57 UTC) #14
Evan Stade
ping
11 years, 8 months ago (2009-03-31 20:15:21 UTC) #15
darin (slow to review)
LGTM
11 years, 8 months ago (2009-04-02 19:44:47 UTC) #16
tony
LG, some nits below. http://codereview.chromium.org/55052/diff/1042/3018 File chrome/browser/renderer_host/render_widget_host_view_gtk.cc (right): http://codereview.chromium.org/55052/diff/1042/3018#newcode85 Line 85: g_object_set_data(G_OBJECT(widget), "render-widget-host-view-gtk", host_view); Nit: ...
11 years, 8 months ago (2009-04-02 20:58:56 UTC) #17
Evan Stade
thanks for speedy review! http://codereview.chromium.org/55052/diff/1042/3018 File chrome/browser/renderer_host/render_widget_host_view_gtk.cc (right): http://codereview.chromium.org/55052/diff/1042/3018#newcode85 Line 85: g_object_set_data(G_OBJECT(widget), "render-widget-host-view-gtk", host_view); On ...
11 years, 8 months ago (2009-04-02 21:28:11 UTC) #18
tony
11 years, 8 months ago (2009-04-02 21:55:07 UTC) #19
On 2009/04/02 21:28:11, estade wrote:
> It's not just these methods. RenderWidgetHostViewGtkWidget frequently needs to
> access private member variables of RenderWidgetHostViewGtk, and we keep adding
> more and more public setters and getters, but I don't think it really makes
> sense because other classes (e.g. WebContentsViewGtk) shouldn't have access to
> those variables.
> 
> I can change it back though if you feel strongly

I don't feel strongly about it, but I think the friend class means our design
doesn't fit quite right.  It would be nice to re-evaluate in the future and see
if we can refactor such that we don't need the friend class.

Powered by Google App Engine
This is Rietveld 408576698