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

Issue 278093003: Break dependency on core from generated mojom.js files (Closed)

Created:
6 years, 7 months ago by abarth-chromium
Modified:
6 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, cpu_(ooo_6.6-7.5)
Visibility:
Public.

Description

We want to be able to use the generated mojom.js files on web servers without having access to the core Mojo system. Currently the only reason these files depend on core is to get kInvalidHandle, but there's no such constant on the C++ side anymore. This CL replaces core.kInvalidHandle with |null| and teaches the handle converters how to convert null to and from an invalid handle. R=sky@chromium.org BUG=372065 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269704

Patch Set 1 #

Patch Set 2 : Delete core.kInvalidHandle #

Patch Set 3 : attempt to fix build #

Patch Set 4 : Specialize Converter<gin::Handle<gin::HandleWrapper> > #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -14 lines) Patch
M mojo/apps/js/bindings/connection_unittests.js View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/bindings/js/core.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M mojo/bindings/js/handle.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
M mojo/bindings/js/handle.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M mojo/public/js/bindings/connector.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/js_templates/module.js.tmpl View 1 chunk +1 line, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_js_generator.py View 1 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
abarth-chromium
6 years, 7 months ago (2014-05-10 01:07:48 UTC) #1
cpu_(ooo_6.6-7.5)
looks good to my untrained eyes. Does the "{{module.path}}" add value? I could not make ...
6 years, 7 months ago (2014-05-10 01:37:43 UTC) #2
abarth-chromium
On 2014/05/10 01:37:43, cpu wrote: > Does the "{{module.path}}" add value? I could not make ...
6 years, 7 months ago (2014-05-10 01:41:27 UTC) #3
cpu_(ooo_6.6-7.5)
ok, so it is needed if you want to cook things. note, I am removing ...
6 years, 7 months ago (2014-05-10 01:58:37 UTC) #4
darin (slow to review)
LGTM
6 years, 7 months ago (2014-05-10 03:04:20 UTC) #5
abarth-chromium
Hum... Actually this is used for core.kInvalidHandle...
6 years, 7 months ago (2014-05-10 13:38:40 UTC) #6
darin (slow to review)
Hmm... well that is just a constant, so we could redefine it as needed I ...
6 years, 7 months ago (2014-05-10 16:56:31 UTC) #7
abarth-chromium
On 2014/05/10 16:56:31, darin wrote: > Hmm... well that is just a constant, so we ...
6 years, 7 months ago (2014-05-10 17:07:55 UTC) #8
darin (slow to review)
Oh cool. Yeah, null sounds good. On May 10, 2014 10:07 AM, <abarth@chromium.org> wrote: > ...
6 years, 7 months ago (2014-05-10 17:09:20 UTC) #9
abarth-chromium
Done. PTAL.
6 years, 7 months ago (2014-05-10 17:21:47 UTC) #10
darin (slow to review)
lgtm
6 years, 7 months ago (2014-05-10 17:32:00 UTC) #11
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 7 months ago (2014-05-10 18:29:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/278093003/20001
6 years, 7 months ago (2014-05-10 18:30:44 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-10 19:45:08 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-10 19:54:20 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/182626)
6 years, 7 months ago (2014-05-10 19:54:20 UTC) #16
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 7 months ago (2014-05-10 22:04:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/278093003/40001
6 years, 7 months ago (2014-05-10 22:05:43 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-11 01:50:43 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-11 02:42:20 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/30147)
6 years, 7 months ago (2014-05-11 02:42:21 UTC) #21
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 7 months ago (2014-05-11 06:26:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/278093003/60001
6 years, 7 months ago (2014-05-11 06:26:50 UTC) #23
abarth-chromium
This CL got slightly uglier because I needed to specialize Converter<gin::Handle<gin::HandleWrapper> > in order to ...
6 years, 7 months ago (2014-05-11 06:27:20 UTC) #24
commit-bot: I haz the power
Change committed as 269704
6 years, 7 months ago (2014-05-11 14:20:45 UTC) #25
sky
6 years, 7 months ago (2014-05-12 15:22:28 UTC) #26
Message was sent while issue was closed.
Nice, LGTM

Powered by Google App Engine
This is Rietveld 408576698