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

Issue 1022473004: [Webapp Refactor] Move key injection logic into the plugin layer. (Closed)

Created:
5 years, 9 months ago by kelvinp
Modified:
5 years, 9 months ago
Reviewers:
garykac
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

[Webapp Refactor] Move key injection related functionality into the plugin layer. This CL moves key injection logic setRemapKey() and injectKeyCombination() into the plugin layer. With this change, we no longer need to pass the default remap keys from the ApplicationDelegate through the SessionConnector to the DesktopConnectedView in order to setup a key remapping. Instead, we can simply call plugin.setRemapKeys('a->b,b->c') on the delegate. BUG=465878 Committed: https://crrev.com/06408c1d57d6521cc1acebccbdb4972d2a26ae41 Cr-Commit-Position: refs/heads/master@{#321419}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Reviewer's feedback #

Patch Set 3 : Removes mismatched privates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -135 lines) Patch
M remoting/webapp/app_remoting/js/app_remoting.js View 2 chunks +7 lines, -14 lines 0 comments Download
M remoting/webapp/base/js/application.js View 2 chunks +1 line, -7 lines 0 comments Download
M remoting/webapp/crd/js/client_plugin.js View 1 chunk +16 lines, -0 lines 0 comments Download
M remoting/webapp/crd/js/client_plugin_impl.js View 1 2 2 chunks +70 lines, -0 lines 0 comments Download
M remoting/webapp/crd/js/desktop_connected_view.js View 5 chunks +3 lines, -84 lines 0 comments Download
M remoting/webapp/crd/js/desktop_remoting.js View 2 chunks +7 lines, -15 lines 0 comments Download
M remoting/webapp/crd/js/session_connector.js View 1 chunk +1 line, -3 lines 0 comments Download
M remoting/webapp/crd/js/session_connector_impl.js View 3 chunks +3 lines, -12 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
kelvinp
PTAL https://codereview.chromium.org/1022473004/diff/1/remoting/webapp/crd/js/client_plugin_impl.js File remoting/webapp/crd/js/client_plugin_impl.js (right): https://codereview.chromium.org/1022473004/diff/1/remoting/webapp/crd/js/client_plugin_impl.js#newcode505 remoting/webapp/crd/js/client_plugin_impl.js:505: remoting.ClientPluginImpl.prototype.setRemapKeys = moved from desktop_connected_view.js https://codereview.chromium.org/1022473004/diff/1/remoting/webapp/crd/js/desktop_connected_view.js File remoting/webapp/crd/js/desktop_connected_view.js ...
5 years, 9 months ago (2015-03-19 00:25:15 UTC) #2
garykac
https://codereview.chromium.org/1022473004/diff/1/remoting/webapp/crd/js/client_plugin.js File remoting/webapp/crd/js/client_plugin.js (right): https://codereview.chromium.org/1022473004/diff/1/remoting/webapp/crd/js/client_plugin.js#newcode58 remoting/webapp/crd/js/client_plugin.js:58: remoting.ClientPlugin.prototype.injectKeyCombination = function(keys) {}; This is only used internally ...
5 years, 9 months ago (2015-03-19 01:20:58 UTC) #3
kelvinp
PTAL https://codereview.chromium.org/1022473004/diff/1/remoting/webapp/crd/js/client_plugin.js File remoting/webapp/crd/js/client_plugin.js (right): https://codereview.chromium.org/1022473004/diff/1/remoting/webapp/crd/js/client_plugin.js#newcode58 remoting/webapp/crd/js/client_plugin.js:58: remoting.ClientPlugin.prototype.injectKeyCombination = function(keys) {}; On 2015/03/19 01:20:57, garykac ...
5 years, 9 months ago (2015-03-19 17:28:20 UTC) #4
garykac
https://codereview.chromium.org/1022473004/diff/1/remoting/webapp/crd/js/client_plugin_impl.js File remoting/webapp/crd/js/client_plugin_impl.js (right): https://codereview.chromium.org/1022473004/diff/1/remoting/webapp/crd/js/client_plugin_impl.js#newcode557 remoting/webapp/crd/js/client_plugin_impl.js:557: remoting.ClientPluginImpl.prototype.injectKeyCombination = On 2015/03/19 17:28:20, kelvinp wrote: > On ...
5 years, 9 months ago (2015-03-19 17:53:25 UTC) #5
kelvinp
PTAL
5 years, 9 months ago (2015-03-19 18:02:22 UTC) #6
garykac
lgtm
5 years, 9 months ago (2015-03-19 18:19:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1022473004/40001
5 years, 9 months ago (2015-03-19 18:26:57 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-19 20:21:46 UTC) #10
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 20:22:20 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/06408c1d57d6521cc1acebccbdb4972d2a26ae41
Cr-Commit-Position: refs/heads/master@{#321419}

Powered by Google App Engine
This is Rietveld 408576698