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

Issue 10909133: Implement clipboard for Chromoting Linux hosts. (Closed)

Created:
8 years, 3 months ago by Lambros
Modified:
8 years, 2 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Implement clipboard for Chromoting Linux hosts. BUG=132454 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=158944

Patch Set 1 #

Total comments: 4

Patch Set 2 : Initialize display_ #

Patch Set 3 : Use WatchFileDescriptor instead of timer for X connection #

Patch Set 4 : Remove logging and fix style nits #

Total comments: 2

Patch Set 5 : Add initial PumpEvents() #

Total comments: 10

Patch Set 6 : Rebase and address review comments #

Patch Set 7 : Use desktop thread for clipboard #

Total comments: 25

Patch Set 8 : rebase #

Patch Set 9 : Move x_server_clipboard to remoting/host/linux #

Patch Set 10 : Fix Sergey's nits #

Patch Set 11 : Stomped another MessagePumpLibevent #

Total comments: 100

Patch Set 12 : Address Wez's comments #

Total comments: 32

Patch Set 13 : Remove timestamp processing, and address comments. #

Total comments: 32

Patch Set 14 : Address comments. #

Patch Set 15 : I'm an idiot! (Fix BadWindow crash) #

Total comments: 4

Patch Set 16 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+586 lines, -14 lines) Patch
M remoting/host/chromoting_host_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -7 lines 0 comments Download
M remoting/host/clipboard_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +87 lines, -5 lines 0 comments Download
M remoting/host/event_executor_linux.cc View 1 2 3 4 5 6 7 8 9 7 chunks +27 lines, -2 lines 0 comments Download
A remoting/host/linux/x_server_clipboard.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +106 lines, -0 lines 0 comments Download
A remoting/host/linux/x_server_clipboard.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +359 lines, -0 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Lambros
wez: x_server_clipboard.* sergeyu: clipboard_linux.cc (other files are pretty trivial) This is a functional first cut, ...
8 years, 3 months ago (2012-09-07 22:51:02 UTC) #1
dcheng
Out of curiosity, if ui::Clipboard had AddObserver()/RemoveObserver() methods for listening for clipboard changes, would remoting ...
8 years, 3 months ago (2012-09-07 23:11:37 UTC) #2
Lambros
On 2012/09/07 23:11:37, dcheng wrote: > Out of curiosity, if ui::Clipboard had AddObserver()/RemoveObserver() methods > ...
8 years, 3 months ago (2012-09-08 02:08:09 UTC) #3
Lambros
Removed the 1-second timer hack in favor of watching the X11 file-descriptor instead. This feels ...
8 years, 3 months ago (2012-09-10 22:18:59 UTC) #4
dcheng
On 2012/09/08 02:08:09, Lambros wrote: > On 2012/09/07 23:11:37, dcheng wrote: > > Out of ...
8 years, 3 months ago (2012-09-10 22:22:02 UTC) #5
Elliot Glaysher
http://codereview.chromium.org/10909133/diff/6002/remoting/host/x_server_clipboard.cc File remoting/host/x_server_clipboard.cc (right): http://codereview.chromium.org/10909133/diff/6002/remoting/host/x_server_clipboard.cc#newcode68 remoting/host/x_server_clipboard.cc:68: clipboard_atom_ = XInternAtom(display_, "CLIPBOARD", False); Probably want to replace ...
8 years, 3 months ago (2012-09-10 22:44:20 UTC) #6
Sergey Ulanov
http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc File remoting/host/clipboard_linux.cc (right): http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc#newcode23 remoting/host/clipboard_linux.cc:23: ~ClipboardLinux(); virtual http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc#newcode39 remoting/host/clipboard_linux.cc:39: virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE ...
8 years, 3 months ago (2012-09-12 01:00:08 UTC) #7
Wez
http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc File remoting/host/clipboard_linux.cc (right): http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc#newcode39 remoting/host/clipboard_linux.cc:39: virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} On 2012/09/12 01:00:08, ...
8 years, 3 months ago (2012-09-12 04:52:53 UTC) #8
Sergey Ulanov
http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc File remoting/host/clipboard_linux.cc (right): http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc#newcode39 remoting/host/clipboard_linux.cc:39: virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} On 2012/09/12 04:52:53, ...
8 years, 3 months ago (2012-09-12 18:39:12 UTC) #9
Wez
On 2012/09/12 18:39:12, sergeyu wrote: > http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc > File remoting/host/clipboard_linux.cc (right): > > http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc#newcode39 > ...
8 years, 3 months ago (2012-09-12 18:42:41 UTC) #10
Lambros
http://codereview.chromium.org/10909133/diff/1/remoting/host/x_server_clipboard.cc File remoting/host/x_server_clipboard.cc (right): http://codereview.chromium.org/10909133/diff/1/remoting/host/x_server_clipboard.cc#newcode56 remoting/host/x_server_clipboard.cc:56: void XServerClipboard::Init(Display* display, On 2012/09/07 23:11:37, dcheng wrote: > ...
8 years, 3 months ago (2012-09-12 23:42:32 UTC) #11
Sergey Ulanov
http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc File remoting/host/clipboard_linux.cc (right): http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc#newcode45 remoting/host/clipboard_linux.cc:45: base::Thread x11_thread_; On 2012/09/12 23:42:32, Lambros wrote: > On ...
8 years, 3 months ago (2012-09-14 00:29:56 UTC) #12
Lambros
ptal http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc File remoting/host/clipboard_linux.cc (right): http://codereview.chromium.org/10909133/diff/2002/remoting/host/clipboard_linux.cc#newcode45 remoting/host/clipboard_linux.cc:45: base::Thread x11_thread_; On 2012/09/14 00:29:56, sergeyu wrote: > ...
8 years, 3 months ago (2012-09-14 02:09:17 UTC) #13
Sergey Ulanov
LGTM when my nits are addressed. I didn't review x_server_clipboard.cc and will leave it to ...
8 years, 3 months ago (2012-09-14 19:35:01 UTC) #14
Lambros
http://codereview.chromium.org/10909133/diff/8008/remoting/host/clipboard_linux.cc File remoting/host/clipboard_linux.cc (right): http://codereview.chromium.org/10909133/diff/8008/remoting/host/clipboard_linux.cc#newcode12 remoting/host/clipboard_linux.cc:12: #include "base/message_pump_libevent.h" On 2012/09/14 19:35:01, sergeyu wrote: > don't ...
8 years, 3 months ago (2012-09-14 21:35:13 UTC) #15
Wez
We currently target Debian/Ubuntu, and any modern Linux distro will be using Xorg, which has ...
8 years, 3 months ago (2012-09-17 22:00:34 UTC) #16
Wez
Some initial comments; unless we have a compelling reason to continue to support X servers ...
8 years, 3 months ago (2012-09-17 22:13:29 UTC) #17
Lambros
http://codereview.chromium.org/10909133/diff/3002/remoting/host/linux/x_server_clipboard.cc File remoting/host/linux/x_server_clipboard.cc (right): http://codereview.chromium.org/10909133/diff/3002/remoting/host/linux/x_server_clipboard.cc#newcode17 remoting/host/linux/x_server_clipboard.cc:17: // to be 0). On 2012/09/17 22:13:29, Wez wrote: ...
8 years, 3 months ago (2012-09-19 23:58:19 UTC) #18
Wez
http://codereview.chromium.org/10909133/diff/3002/remoting/host/linux/x_server_clipboard.cc File remoting/host/linux/x_server_clipboard.cc (right): http://codereview.chromium.org/10909133/diff/3002/remoting/host/linux/x_server_clipboard.cc#newcode17 remoting/host/linux/x_server_clipboard.cc:17: // to be 0). On 2012/09/19 23:58:19, Lambros wrote: ...
8 years, 3 months ago (2012-09-20 23:37:45 UTC) #19
Lambros
PTAL at this simplified version. There are still a couple of tiny comment nits I ...
8 years, 3 months ago (2012-09-21 17:05:56 UTC) #20
Wez
Can you deal with the comments on the other files that I left against patch-set ...
8 years, 2 months ago (2012-09-25 20:29:29 UTC) #21
Lambros
http://codereview.chromium.org/10909133/diff/3002/remoting/host/chromoting_host_context.cc File remoting/host/chromoting_host_context.cc (right): http://codereview.chromium.org/10909133/diff/3002/remoting/host/chromoting_host_context.cc#newcode49 remoting/host/chromoting_host_context.cc:49: MessageLoop::TYPE_IO, 0)) && On 2012/09/17 22:13:29, Wez wrote: > ...
8 years, 2 months ago (2012-09-25 22:42:38 UTC) #22
Wez
lgtm http://codereview.chromium.org/10909133/diff/36001/remoting/host/linux/x_server_clipboard.cc File remoting/host/linux/x_server_clipboard.cc (right): http://codereview.chromium.org/10909133/diff/36001/remoting/host/linux/x_server_clipboard.cc#newcode86 remoting/host/linux/x_server_clipboard.cc:86: const std::string& data) { You need to check ...
8 years, 2 months ago (2012-09-26 00:30:39 UTC) #23
Lambros
http://codereview.chromium.org/10909133/diff/36001/remoting/host/linux/x_server_clipboard.cc File remoting/host/linux/x_server_clipboard.cc (right): http://codereview.chromium.org/10909133/diff/36001/remoting/host/linux/x_server_clipboard.cc#newcode86 remoting/host/linux/x_server_clipboard.cc:86: const std::string& data) { On 2012/09/26 00:30:39, Wez wrote: ...
8 years, 2 months ago (2012-09-26 01:37:10 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lambroslambrou@chromium.org/10909133/37007
8 years, 2 months ago (2012-09-26 01:37:30 UTC) #25
commit-bot: I haz the power
Retried try job too often for step(s) build
8 years, 2 months ago (2012-09-26 02:23:45 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lambroslambrou@chromium.org/10909133/37007
8 years, 2 months ago (2012-09-26 19:36:09 UTC) #27
commit-bot: I haz the power
8 years, 2 months ago (2012-09-26 20:22:53 UTC) #28
Retried try job too often for step(s) build

Powered by Google App Engine
This is Rietveld 408576698