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

Issue 918783002: CRD Viewport Management refactor (Closed)

Created:
5 years, 10 months ago by kelvinp
Modified:
5 years, 9 months ago
Reviewers:
garykac, Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This CL moves the viewport management related implementation (e.g. scrolling, letterboxing the plugin, resizing the host) from remoting.DesktopConnectedView into smaller single-purposed classes. Summary of changes: 1. Moves bumpScrolling implementation into the remoting.BumpScroller. 2. Moves all viewport related implementation from remoting.DesktopConnectedView into remoting.DesktopViewport BUG=457890 Committed: https://crrev.com/1e259c47f603e4b7cc0e9f5e5d4bea56369b3b32 Cr-Commit-Position: refs/heads/master@{#317707}

Patch Set 1 : Revision history: client_session.js -> bump_scroller.js, desktop_viewport.js #

Patch Set 2 : Implementation #

Total comments: 12

Patch Set 3 : Reviewer's comment #

Patch Set 4 : Rebase + plumbing remoting.Host into clientSession #

Total comments: 24

Patch Set 5 : Rebase + Remove non-viewport related changes #

Patch Set 6 : Reviewer's feedback #

Patch Set 7 : Fix rebase error #

Total comments: 8

Patch Set 8 : Reviewer's feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+769 lines, -972 lines) Patch
M remoting/remoting_webapp_files.gypi View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M remoting/webapp/base/js/base.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/browser_test/bump_scroll_browser_test.js View 1 2 3 4 5 7 chunks +80 lines, -58 lines 0 comments Download
A remoting/webapp/crd/js/bump_scroller.js View 1 2 3 4 5 6 7 1 chunk +108 lines, -0 lines 0 comments Download
M remoting/webapp/crd/js/client_session.js View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M remoting/webapp/crd/js/desktop_connected_view.js View 1 2 3 4 5 6 7 11 chunks +31 lines, -532 lines 0 comments Download
A remoting/webapp/crd/js/desktop_viewport.js View 1 2 3 4 5 6 7 1 chunk +485 lines, -0 lines 0 comments Download
M remoting/webapp/crd/js/host.js View 1 2 3 4 5 6 7 2 chunks +8 lines, -4 lines 0 comments Download
D remoting/webapp/unittests/desktop_connected_view_unittest.js View 1 2 3 1 chunk +0 lines, -319 lines 0 comments Download
A + remoting/webapp/unittests/desktop_viewport_unittest.js View 1 2 3 9 chunks +53 lines, -53 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
kelvinp
PTAL https://codereview.chromium.org/918783002/diff/20001/remoting/webapp/crd/js/bump_scroller.js File remoting/webapp/crd/js/bump_scroller.js (right): https://codereview.chromium.org/918783002/diff/20001/remoting/webapp/crd/js/bump_scroller.js#newcode39 remoting/webapp/crd/js/bump_scroller.js:39: bumpScrollStarted: 'bumpScrollStarted', The bumpScrolling browsertest will be changed ...
5 years, 10 months ago (2015-02-11 23:57:33 UTC) #2
garykac
https://codereview.chromium.org/918783002/diff/20001/remoting/remoting_webapp_files.gypi File remoting/remoting_webapp_files.gypi (right): https://codereview.chromium.org/918783002/diff/20001/remoting/remoting_webapp_files.gypi#newcode45 remoting/remoting_webapp_files.gypi:45: 'webapp/crd/js/client_plugin_host_desktop_impl.js', An _impl file without a non-_impl file feels ...
5 years, 10 months ago (2015-02-12 18:18:22 UTC) #3
Jamie
https://codereview.chromium.org/918783002/diff/20001/remoting/webapp/browser_test/mock_client_plugin.js File remoting/webapp/browser_test/mock_client_plugin.js (right): https://codereview.chromium.org/918783002/diff/20001/remoting/webapp/browser_test/mock_client_plugin.js#newcode176 remoting/webapp/browser_test/mock_client_plugin.js:176: remoting.MockClientPlugin.HostDesktop = function() { As with HostDesktopImpl, I don't ...
5 years, 10 months ago (2015-02-12 21:07:29 UTC) #4
kelvinp
Addressed reviewers feedback. After Gary landed his CL, I will switch remoting.DesktopConnectedView to use the ...
5 years, 10 months ago (2015-02-12 23:26:41 UTC) #5
kelvinp
PTAL
5 years, 10 months ago (2015-02-17 01:25:43 UTC) #6
Jamie
It feels like this CL is conflating a number of slightly different refactorings. I'm not ...
5 years, 10 months ago (2015-02-18 00:33:11 UTC) #8
kelvinp
Separated the HostDesktop refactor in its own CL https://codereview.chromium.org/929323003/
5 years, 10 months ago (2015-02-18 02:33:35 UTC) #9
kelvinp
PTAL https://codereview.chromium.org/918783002/diff/80001/remoting/webapp/browser_test/bump_scroll_browser_test.js File remoting/webapp/browser_test/bump_scroll_browser_test.js (right): https://codereview.chromium.org/918783002/diff/80001/remoting/webapp/browser_test/bump_scroll_browser_test.js#newcode266 remoting/webapp/browser_test/bump_scroll_browser_test.js:266: return Promise.all([started, stopped]).then(function() { On 2015/02/18 00:33:10, Jamie ...
5 years, 10 months ago (2015-02-20 23:24:17 UTC) #10
Jamie
The diffs look wrong for the latest patch-set. I had one comment based on the ...
5 years, 10 months ago (2015-02-21 02:01:32 UTC) #11
kelvinp
PTAL https://codereview.chromium.org/918783002/diff/80001/remoting/webapp/crd/js/desktop_viewport.js File remoting/webapp/crd/js/desktop_viewport.js (right): https://codereview.chromium.org/918783002/diff/80001/remoting/webapp/crd/js/desktop_viewport.js#newcode251 remoting/webapp/crd/js/desktop_viewport.js:251: remoting.DesktopViewport.prototype.resizeHostDesktop = function() { On 2015/02/21 02:01:32, Jamie ...
5 years, 10 months ago (2015-02-23 17:56:00 UTC) #12
Jamie
lgtm https://codereview.chromium.org/918783002/diff/140001/remoting/webapp/crd/js/bump_scroller.js File remoting/webapp/crd/js/bump_scroller.js (right): https://codereview.chromium.org/918783002/diff/140001/remoting/webapp/crd/js/bump_scroller.js#newcode34 remoting/webapp/crd/js/bump_scroller.js:34: this.defineEvents(Object.keys(remoting.BumpScroller.Events)); base.values https://codereview.chromium.org/918783002/diff/140001/remoting/webapp/crd/js/desktop_connected_view.js File remoting/webapp/crd/js/desktop_connected_view.js (right): https://codereview.chromium.org/918783002/diff/140001/remoting/webapp/crd/js/desktop_connected_view.js#newcode125 remoting/webapp/crd/js/desktop_connected_view.js:125: ...
5 years, 10 months ago (2015-02-23 21:22:51 UTC) #13
kelvinp
FYI https://codereview.chromium.org/918783002/diff/140001/remoting/webapp/crd/js/bump_scroller.js File remoting/webapp/crd/js/bump_scroller.js (right): https://codereview.chromium.org/918783002/diff/140001/remoting/webapp/crd/js/bump_scroller.js#newcode34 remoting/webapp/crd/js/bump_scroller.js:34: this.defineEvents(Object.keys(remoting.BumpScroller.Events)); On 2015/02/23 21:22:51, Jamie wrote: > base.values ...
5 years, 10 months ago (2015-02-23 23:42:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/918783002/160001
5 years, 10 months ago (2015-02-23 23:52:27 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 10 months ago (2015-02-24 01:03:14 UTC) #18
commit-bot: I haz the power
5 years, 10 months ago (2015-02-24 01:03:59 UTC) #19
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/1e259c47f603e4b7cc0e9f5e5d4bea56369b3b32
Cr-Commit-Position: refs/heads/master@{#317707}

Powered by Google App Engine
This is Rietveld 408576698