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

Issue 757703002: Creates a JavaScript Applicaiton (Closed)

Created:
6 years ago by hansmuller
Modified:
6 years ago
Reviewers:
jamesr, abarth-chromium
CC:
abarth-chromium, Aaron Boodman, ben+mojo_chromium.org, darin (slow to review), mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Defines a JavaScript application that's a client of the shell provided by the JS content handler. Includes a simple hello world example. BUG= R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/f207787a5323f056a1cf1c283062753f800e0783

Patch Set 1 #

Patch Set 2 : Do not try to call undefined Application methods. #

Total comments: 16

Patch Set 3 : Changes per review feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -108 lines) Patch
A examples/js/README.md View 1 chunk +5 lines, -0 lines 0 comments Download
A examples/js/hello.js View 1 chunk +34 lines, -0 lines 0 comments Download
D examples/js/main.js View 1 chunk +0 lines, -52 lines 0 comments Download
A examples/js/world.js View 1 chunk +15 lines, -0 lines 0 comments Download
M gin/modules/module_registry.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M services/js/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M services/js/content_handler_main.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M services/js/js_app.h View 1 2 4 chunks +20 lines, -21 lines 0 comments Download
M services/js/js_app.cc View 1 2 2 chunks +81 lines, -28 lines 0 comments Download
A services/js/js_app_runner_delegate.h View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A services/js/js_app_runner_delegate.cc View 1 chunk +48 lines, -0 lines 0 comments Download
A services/js/js_app_shell.h View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
A services/js/js_app_shell.cc View 1 chunk +42 lines, -0 lines 1 comment Download
M services/js/mojo_bridge_module.cc View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
hansmuller
Although much remains TODO, this version of the JS application is complete and relatively in ...
6 years ago (2014-11-24 20:52:58 UTC) #2
abarth-chromium
LGTM IMHO, we shouldn't proxy these functions through C++, but this CL is a big ...
6 years ago (2014-11-24 23:47:25 UTC) #3
hansmuller
I think you're right that this could be handled by just passing the shell's handle ...
6 years ago (2014-11-25 00:31:55 UTC) #4
hansmuller
Committed patchset #3 (id:40001) manually as f207787a5323f056a1cf1c283062753f800e0783 (presubmit successful).
6 years ago (2014-11-25 00:39:28 UTC) #5
jamesr
https://codereview.chromium.org/757703002/diff/40001/services/js/js_app_shell.cc File services/js/js_app_shell.cc (right): https://codereview.chromium.org/757703002/diff/40001/services/js/js_app_shell.cc#newcode17 services/js/js_app_shell.cc:17: return CreateHandle(isolate, new JSAppShell(js_app)); this seems to break the ...
6 years ago (2014-11-25 00:54:45 UTC) #7
scottmg
On 2014/11/25 00:54:45, jamesr wrote: > https://codereview.chromium.org/757703002/diff/40001/services/js/js_app_shell.cc > File services/js/js_app_shell.cc (right): > > https://codereview.chromium.org/757703002/diff/40001/services/js/js_app_shell.cc#newcode17 > ...
6 years ago (2014-11-25 03:45:06 UTC) #8
scottmg
On 2014/11/25 03:45:06, scottmg wrote: > On 2014/11/25 00:54:45, jamesr wrote: > > > https://codereview.chromium.org/757703002/diff/40001/services/js/js_app_shell.cc ...
6 years ago (2014-11-25 03:47:44 UTC) #9
scottmg
6 years ago (2014-11-25 03:51:29 UTC) #10
Message was sent while issue was closed.
On 2014/11/25 03:47:44, scottmg wrote:
> On 2014/11/25 03:45:06, scottmg wrote:
> > On 2014/11/25 00:54:45, jamesr wrote:
> > >
> >
>
https://codereview.chromium.org/757703002/diff/40001/services/js/js_app_shell.cc
> > > File services/js/js_app_shell.cc (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/757703002/diff/40001/services/js/js_app_shell...
> > > services/js/js_app_shell.cc:17: return CreateHandle(isolate, new
> > > JSAppShell(js_app));
> > > this seems to break the windows build:
> > > 
> > > e:\b\build\slave\mojo\build\src\services\js\js_app_shell.cc(17) : error
> C3861:
> > > 'CreateHandle': identifier not found
> > >
> >
>
http://build.chromium.org/p/client.mojo/builders/Mojo%20Win%20%28dbg%29/build...
> > > 
> > > where's CreateHandle supposed to come from?
> > 
> > Probably needs an #undef CreateHandle due to windows.h inclusion.
> 
> Or not. Just needs a gin::. Not sure how non-Windows is finding it up
though...

https://codereview.chromium.org/758823002/ i guess?

Powered by Google App Engine
This is Rietveld 408576698