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

Issue 422503004: Adding ability to stream windows and inject events to them (Closed)

Created:
6 years, 4 months ago by ronakvora do not use
Modified:
6 years, 4 months ago
Reviewers:
Sergey Ulanov, Lambros, Wez
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

I've created a new desktop environment, Me2MeWindowDesktopEnvironment. This environment has creates a WindowCapturerScreenWrapper instead of a ScreenCapturer with its CreateVideoCapturer() method. This wrapper wraps a WindowCapturer and delegates messages sent to it to the wrapped WindowCapturer. When the command line flag window-Id is specified the remoting_me2me_host.cc choses Me2MeWindowDesktopEnvironment instead of the regular desktop environment. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289825

Patch Set 1 #

Patch Set 2 : uploaded to remove lint errors #

Total comments: 65

Patch Set 3 : commented code #

Patch Set 4 : I updated the code with almost all of the comments Lambros had. The exceptions are the redesign of … #

Total comments: 72

Patch Set 5 : I updated the design of input_injector so we now have a single_window_input_injector subclassing in… #

Patch Set 6 : removed enablewindowinjection from input_injector_win and input_injector_linux #

Patch Set 7 : trying to make input_injectors unchanged #

Patch Set 8 : removed input_injector diffs #

Total comments: 20

Patch Set 9 : Added comments, removed extraneous commented out code, and reformatted. #

Total comments: 108

Patch Set 10 : Updated so CFRefs use CFCast. Updated --window-id flag description. Changed single_window_input_inj… #

Patch Set 11 : Refactoring file names #

Patch Set 12 : Updated single_window_desktop_environment.h and .cc #

Patch Set 13 : Addressed all comments from Lambros and Wez. Updated file names, comments, nits, etc. #

Patch Set 14 : Small nit changes #

Total comments: 10

Patch Set 15 : Just a few nits. #

Total comments: 7

Patch Set 16 : Removed enable_window_capture_ = false in remoting_me2me_host.cc #

Patch Set 17 : added exit code to remoting_host when unable to parse window_id #

Total comments: 16

Patch Set 18 : Removed window_capturer_screen_wrapper #

Patch Set 19 : Small changes to linux and windows single_window_input_injector #

Patch Set 20 : Small changes to remoting_me2me_host.cc #

Patch Set 21 : removed unnecessary include #

Total comments: 4

Patch Set 22 : Small changes #

Total comments: 2

Patch Set 23 : Updated if directive #

Total comments: 6

Patch Set 24 : Lambros nits #

Patch Set 25 : Changes to get this thing compiling on windows and linux #

Patch Set 26 : Changed method in single_window_input_injector to be called CreateForWindow so that the method is n… #

Patch Set 27 : compiler issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -2 lines) Patch
M remoting/host/host_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -1 line 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +43 lines, -1 line 0 comments Download
A remoting/host/single_window_desktop_environment.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +37 lines, -0 lines 0 comments Download
A remoting/host/single_window_desktop_environment.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +106 lines, -0 lines 0 comments Download
A remoting/host/single_window_input_injector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +30 lines, -0 lines 0 comments Download
A remoting/host/single_window_input_injector_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +15 lines, -0 lines 0 comments Download
A remoting/host/single_window_input_injector_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +166 lines, -0 lines 0 comments Download
A remoting/host/single_window_input_injector_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +15 lines, -0 lines 0 comments Download
M remoting/remoting_host.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
ronakvora do not use
You guys know what I've done already, but in case anyone else wants a better ...
6 years, 4 months ago (2014-07-29 20:51:49 UTC) #1
Lambros
Per-window remoting is a great feature to add. Thanks for doing this work! This is ...
6 years, 4 months ago (2014-07-30 00:14:50 UTC) #2
Lambros
Also, please update the Subject so instead of saying "Description" it says something like "Add ...
6 years, 4 months ago (2014-07-30 00:20:43 UTC) #3
ronakvora do not use
I updated the code with comments and Lambros' comments. I updated everything except for the ...
6 years, 4 months ago (2014-07-30 20:55:37 UTC) #4
ronakvora do not use
Forget to "Done" one of the comments. https://codereview.chromium.org/422503004/diff/20001/remoting/host/host_main.cc File remoting/host/host_main.cc (right): https://codereview.chromium.org/422503004/diff/20001/remoting/host/host_main.cc#newcode80 remoting/host/host_main.cc:80: " --window-Id=<id> ...
6 years, 4 months ago (2014-07-30 20:56:40 UTC) #5
Wez
In terms of design the changes I'd like to see are: 1. Strip down the ...
6 years, 4 months ago (2014-08-01 23:41:56 UTC) #6
Wez
P.S. The CL description also needs a more helpful title than "Description" ;)
6 years, 4 months ago (2014-08-01 23:42:35 UTC) #7
ronakvora do not use
I've updated the design of the InputInjector so that we now have a SingleWindowInputInjector. I ...
6 years, 4 months ago (2014-08-05 19:54:51 UTC) #8
Lambros
https://codereview.chromium.org/422503004/diff/140001/remoting/host/single_window_input_injector_mac.mm File remoting/host/single_window_input_injector_mac.mm (right): https://codereview.chromium.org/422503004/diff/140001/remoting/host/single_window_input_injector_mac.mm#newcode1 remoting/host/single_window_input_injector_mac.mm:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 4 months ago (2014-08-05 22:47:26 UTC) #9
Wez
https://codereview.chromium.org/422503004/diff/160001/remoting/host/host_main.cc File remoting/host/host_main.cc (right): https://codereview.chromium.org/422503004/diff/160001/remoting/host/host_main.cc#newcode80 remoting/host/host_main.cc:80: " --window-id=<id> - Specifies that a window should be ...
6 years, 4 months ago (2014-08-06 04:10:17 UTC) #10
ronakvora do not use
I refactored the me2me_single_window_desktop_environment to single_window_desktop_environment. I updated and addressed the other comments as well. ...
6 years, 4 months ago (2014-08-06 20:56:20 UTC) #11
Wez
LGTM :) https://codereview.chromium.org/422503004/diff/160001/remoting/host/host_main.cc File remoting/host/host_main.cc (right): https://codereview.chromium.org/422503004/diff/160001/remoting/host/host_main.cc#newcode80 remoting/host/host_main.cc:80: " --window-id=<id> - Specifies that a window ...
6 years, 4 months ago (2014-08-07 23:14:33 UTC) #12
ronakvora do not use
A few nits. https://codereview.chromium.org/422503004/diff/160001/remoting/host/host_main.cc File remoting/host/host_main.cc (right): https://codereview.chromium.org/422503004/diff/160001/remoting/host/host_main.cc#newcode80 remoting/host/host_main.cc:80: " --window-id=<id> - Specifies that a ...
6 years, 4 months ago (2014-08-08 17:07:14 UTC) #13
Wez
https://codereview.chromium.org/422503004/diff/280001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/422503004/diff/280001/remoting/host/remoting_me2me_host.cc#newcode470 remoting/host/remoting_me2me_host.cc:470: // instead. This comment is out of date. https://codereview.chromium.org/422503004/diff/280001/remoting/host/remoting_me2me_host.cc#newcode473 ...
6 years, 4 months ago (2014-08-08 22:12:14 UTC) #14
ronakvora do not use
removed enable_window_capture = false in remoting_me2me_host.cc https://codereview.chromium.org/422503004/diff/280001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/422503004/diff/280001/remoting/host/remoting_me2me_host.cc#newcode470 remoting/host/remoting_me2me_host.cc:470: // instead. On ...
6 years, 4 months ago (2014-08-08 22:28:27 UTC) #15
Wez
https://codereview.chromium.org/422503004/diff/280001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/422503004/diff/280001/remoting/host/remoting_me2me_host.cc#newcode473 remoting/host/remoting_me2me_host.cc:473: enable_window_capture_ = false; On 2014/08/08 22:28:26, ronakvora wrote: > ...
6 years, 4 months ago (2014-08-11 06:40:36 UTC) #16
Sergey Ulanov
Looks mostly good. Please wait for https://codereview.chromium.org/455073004/ to land and then remove WindowCapturerScreenWrapper. https://codereview.chromium.org/422503004/diff/280001/remoting/host/remoting_me2me_host.cc File ...
6 years, 4 months ago (2014-08-12 18:18:00 UTC) #17
ronakvora do not use
Removed window capturer screen wrapper https://codereview.chromium.org/422503004/diff/280001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/422503004/diff/280001/remoting/host/remoting_me2me_host.cc#newcode473 remoting/host/remoting_me2me_host.cc:473: enable_window_capture_ = false; On ...
6 years, 4 months ago (2014-08-13 18:04:44 UTC) #18
Sergey Ulanov
https://codereview.chromium.org/422503004/diff/320001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/422503004/diff/320001/remoting/host/remoting_me2me_host.cc#newcode356 remoting/host/remoting_me2me_host.cc:356: self_(this), On 2014/08/12 18:18:00, Sergey Ulanov wrote: > Add ...
6 years, 4 months ago (2014-08-13 21:27:14 UTC) #19
ronakvora do not use
https://codereview.chromium.org/422503004/diff/400001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/422503004/diff/400001/remoting/host/remoting_me2me_host.cc#newcode470 remoting/host/remoting_me2me_host.cc:470: #if defined(OS_LINUX) On 2014/08/13 21:27:14, Sergey Ulanov wrote: > ...
6 years, 4 months ago (2014-08-13 22:02:08 UTC) #20
Sergey Ulanov
LGTM when my comment is addressed https://codereview.chromium.org/422503004/diff/420001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/422503004/diff/420001/remoting/host/remoting_me2me_host.cc#newcode473 remoting/host/remoting_me2me_host.cc:473: LOG(WARNING) << "Window ...
6 years, 4 months ago (2014-08-13 22:06:22 UTC) #21
ronakvora do not use
https://codereview.chromium.org/422503004/diff/420001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/422503004/diff/420001/remoting/host/remoting_me2me_host.cc#newcode473 remoting/host/remoting_me2me_host.cc:473: LOG(WARNING) << "Window capturing is not fully supported on ...
6 years, 4 months ago (2014-08-13 22:17:02 UTC) #22
Lambros
lgtm, just some tiny nits. https://codereview.chromium.org/422503004/diff/440001/remoting/host/single_window_desktop_environment.cc File remoting/host/single_window_desktop_environment.cc (right): https://codereview.chromium.org/422503004/diff/440001/remoting/host/single_window_desktop_environment.cc#newcode57 remoting/host/single_window_desktop_environment.cc:57: SingleWindowDesktopEnvironment::CreateInputInjector() { nit: I ...
6 years, 4 months ago (2014-08-13 22:32:52 UTC) #23
ronakvora do not use
https://codereview.chromium.org/422503004/diff/440001/remoting/host/single_window_desktop_environment.cc File remoting/host/single_window_desktop_environment.cc (right): https://codereview.chromium.org/422503004/diff/440001/remoting/host/single_window_desktop_environment.cc#newcode57 remoting/host/single_window_desktop_environment.cc:57: SingleWindowDesktopEnvironment::CreateInputInjector() { On 2014/08/13 22:32:51, Lambros wrote: > nit: ...
6 years, 4 months ago (2014-08-13 22:48:28 UTC) #24
ronakvora do not use
The CQ bit was checked by ronakvora@google.com
6 years, 4 months ago (2014-08-13 22:56:22 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ronakvora@google.com/422503004/460001
6 years, 4 months ago (2014-08-13 22:57:30 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-14 11:08:36 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-14 11:16:35 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/6232) win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/4068)
6 years, 4 months ago (2014-08-14 11:16:36 UTC) #29
ronakvora do not use
The CQ bit was checked by ronakvora@google.com
6 years, 4 months ago (2014-08-14 22:04:13 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ronakvora@google.com/422503004/480001
6 years, 4 months ago (2014-08-14 22:07:05 UTC) #31
ronakvora do not use
The CQ bit was checked by ronakvora@google.com
6 years, 4 months ago (2014-08-14 22:58:15 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ronakvora@google.com/422503004/500001
6 years, 4 months ago (2014-08-14 23:00:30 UTC) #33
ronakvora do not use
The CQ bit was checked by ronakvora@google.com
6 years, 4 months ago (2014-08-15 00:00:50 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ronakvora@google.com/422503004/520001
6 years, 4 months ago (2014-08-15 00:02:37 UTC) #35
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-15 06:07:15 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-15 06:52:23 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/6322)
6 years, 4 months ago (2014-08-15 06:52:24 UTC) #38
Lambros
The CQ bit was checked by lambroslambrou@chromium.org
6 years, 4 months ago (2014-08-15 08:05:44 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ronakvora@google.com/422503004/520001
6 years, 4 months ago (2014-08-15 08:07:41 UTC) #40
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 09:13:48 UTC) #41
Message was sent while issue was closed.
Committed patchset #27 (520001) as 289825

Powered by Google App Engine
This is Rietveld 408576698