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

Issue 8573024: Clean up client state callback. (Closed)

Created:
9 years, 1 month ago by Jamie
Modified:
9 years, 1 month ago
Reviewers:
Sergey Ulanov, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Clean up client state callback. BUG=None TEST=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111036

Patch Set 1 #

Patch Set 2 : Removed unused error code. #

Total comments: 11

Patch Set 3 : Addressed reviewer comments. #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -72 lines) Patch
M remoting/client/plugin/chromoting_scriptable_object.h View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M remoting/client/plugin/chromoting_scriptable_object.cc View 3 chunks +8 lines, -5 lines 0 comments Download
M remoting/webapp/me2mom/client_screen.js View 1 2 3 4 chunks +10 lines, -10 lines 0 comments Download
M remoting/webapp/me2mom/client_session.js View 1 2 3 7 chunks +48 lines, -53 lines 0 comments Download
M remoting/webapp/me2mom/server_log_entry.js View 1 1 chunk +0 lines, -2 lines 0 comments Download
M remoting/webapp/me2mom/viewer_plugin_proto.js View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Jamie
PTAL http://codereview.chromium.org/8573024/diff/7/remoting/webapp/me2mom/client_session.js File remoting/webapp/me2mom/client_session.js (left): http://codereview.chromium.org/8573024/diff/7/remoting/webapp/me2mom/client_session.js#oldcode340 remoting/webapp/me2mom/client_session.js:340: window.innerHeight); Unrelated to this CL; it was just ...
9 years, 1 month ago (2011-11-16 00:17:12 UTC) #1
Wez
lgtm http://codereview.chromium.org/8573024/diff/7/remoting/webapp/me2mom/client_screen.js File remoting/webapp/me2mom/client_screen.js (right): http://codereview.chromium.org/8573024/diff/7/remoting/webapp/me2mom/client_screen.js#newcode182 remoting/webapp/me2mom/client_screen.js:182: * @param {number} newState The previous state of ...
9 years, 1 month ago (2011-11-16 21:58:26 UTC) #2
Sergey Ulanov
http://codereview.chromium.org/8573024/diff/7/remoting/client/plugin/chromoting_scriptable_object.cc File remoting/client/plugin/chromoting_scriptable_object.cc (right): http://codereview.chromium.org/8573024/diff/7/remoting/client/plugin/chromoting_scriptable_object.cc#newcode322 remoting/client/plugin/chromoting_scriptable_object.cc:322: cb.Call(Var(), Var(status), Var(error), &exception); Will this work with an ...
9 years, 1 month ago (2011-11-16 23:08:12 UTC) #3
Jamie
9 years, 1 month ago (2011-11-17 22:06:17 UTC) #4
http://codereview.chromium.org/8573024/diff/7/remoting/client/plugin/chromoti...
File remoting/client/plugin/chromoting_scriptable_object.cc (right):

http://codereview.chromium.org/8573024/diff/7/remoting/client/plugin/chromoti...
remoting/client/plugin/chromoting_scriptable_object.cc:322: cb.Call(Var(),
Var(status), Var(error), &exception);
On 2011/11/16 23:08:12, sergeyu wrote:
> Will this work with an older version of the webapp that didn't have these
> parameters?

Yes, I think so. Certainly the converse is true--if the caller is old and
doesn't provide these parameters then the function is still invoked; we test for
that case explicitly.

http://codereview.chromium.org/8573024/diff/7/remoting/client/plugin/chromoti...
File remoting/client/plugin/chromoting_scriptable_object.h (right):

http://codereview.chromium.org/8573024/diff/7/remoting/client/plugin/chromoti...
remoting/client/plugin/chromoting_scriptable_object.h:24: //   const unsigned
short STATUS_UNKNOWN;
On 2011/11/16 23:08:12, sergeyu wrote:
> Since these values are not used anymore can we remove them from the interface?
> Same question regarding status and error properties.
> We probably want to keep them for backward compatibility between the webapp
and
> the plugin. Maybe add TODO to remove them in the future?

Done.

http://codereview.chromium.org/8573024/diff/7/remoting/webapp/me2mom/client_s...
File remoting/webapp/me2mom/client_screen.js (right):

http://codereview.chromium.org/8573024/diff/7/remoting/webapp/me2mom/client_s...
remoting/webapp/me2mom/client_screen.js:182: * @param {number} newState The
previous state of the plugin.
On 2011/11/16 21:58:26, Wez wrote:
> typo: The _new_ state of the plugin?

Done.

http://codereview.chromium.org/8573024/diff/7/remoting/webapp/me2mom/client_s...
File remoting/webapp/me2mom/client_session.js (right):

http://codereview.chromium.org/8573024/diff/7/remoting/webapp/me2mom/client_s...
remoting/webapp/me2mom/client_session.js:45: // Note that the (positive) values
in both of these enums are copied directly
On 2011/11/16 21:58:26, Wez wrote:
> Why is positive in brackets?  Are the negative values copied or not?

No. I've removed the brackets and expanded a bit.

http://codereview.chromium.org/8573024/diff/7/remoting/webapp/me2mom/viewer_p...
File remoting/webapp/me2mom/viewer_plugin_proto.js (right):

http://codereview.chromium.org/8573024/diff/7/remoting/webapp/me2mom/viewer_p...
remoting/webapp/me2mom/viewer_plugin_proto.js:36:
remoting.ViewerPlugin.prototype.connectionInfoUpdate;
On 2011/11/16 21:58:26, Wez wrote:
> Did we not need this before because of some default for function():void?

It should have been there before, but the compiler didn't complain because it's
fine to write "object.undeclared_field = blah"

Powered by Google App Engine
This is Rietveld 408576698