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

Issue 757963002: [Blink-in-JS] 'Import' function to load sub-modules and other resources for private scripts (Part-3) (Closed)

Created:
6 years ago by vivekg_samsung
Modified:
6 years ago
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, dglazkov+blink, jbroman, yosin_UTC9
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[Blink-in-JS] 'Import' function to load sub-modules and other resources for private scripts (Part-3) This CL introduces 'Import' function to load sub-modules for the private scripts. This helps to break down larger script modules in manageable script chunks. Part 1: https://codereview.chromium.org/755883004 Part 2: https://codereview.chromium.org/759553002 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186384

Patch Set 1 #

Total comments: 5

Patch Set 2 : More concrete example with CSS resources! #

Patch Set 3 : Patch for landing! #

Total comments: 6

Patch Set 4 : Modified to return CSS value as text #

Patch Set 5 : Implementing privateScriptController.import #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -51 lines) Patch
M Source/bindings/core/v8/PrivateScriptRunner.cpp View 2 chunks +26 lines, -0 lines 0 comments Download
M Source/core/xml/DocumentXMLTreeViewer.js View 2 chunks +3 lines, -51 lines 0 comments Download

Messages

Total messages: 34 (6 generated)
vivekg
@haraken, sorry for the delay. Here is the WIP patch for the 'include' function. Please ...
6 years ago (2014-11-25 07:02:52 UTC) #2
vivekg
https://codereview.chromium.org/757963002/diff/1/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/757963002/diff/1/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode78 Source/bindings/core/v8/PrivateScriptRunner.cpp:78: compileAndRunPrivateScript(args.GetIsolate(), scriptFileName, resourceData.utf8().data(), resourceData.length()); Calling the compileAndRunPrivateScript enables the ...
6 years ago (2014-11-25 07:12:32 UTC) #3
haraken
The approach looks great to me :)
6 years ago (2014-11-25 08:49:56 UTC) #6
haraken
Can you remove A.js and B.js from the CL?
6 years ago (2014-11-25 09:27:42 UTC) #7
vivekg
On 2014/11/25 at 09:27:42, haraken wrote: > Can you remove A.js and B.js from the ...
6 years ago (2014-11-25 09:28:13 UTC) #8
vivekg
On 2014/11/25 at 09:27:42, haraken wrote: > Can you remove A.js and B.js from the ...
6 years ago (2014-11-25 09:34:39 UTC) #9
vivekg
I will also add some Testing code from PrivateScriptTest.js to verify the importing of js ...
6 years ago (2014-11-25 09:40:57 UTC) #11
haraken
https://codereview.chromium.org/757963002/diff/40001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/757963002/diff/40001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode55 Source/bindings/core/v8/PrivateScriptRunner.cpp:55: if (isUndefinedOrNull(functionImportObject)) RELEASE_ASSERT(functionImportObject.IsEmpty() || functionImportObject->IsFunction()); if (functionImportObject.IsEmpty()) global->Set(...); https://codereview.chromium.org/757963002/diff/40001/Source/core/xml/DocumentXMLTreeViewer.js ...
6 years ago (2014-11-25 09:41:41 UTC) #12
jochen (gone - plz use gerrit)
+adamk fyi would it make sense to have try to have something that is closer ...
6 years ago (2014-11-25 09:45:04 UTC) #14
vivekg
On 2014/11/25 at 09:45:04, jochen wrote: > +adamk fyi > > would it make sense ...
6 years ago (2014-11-25 09:50:04 UTC) #15
vivekg
https://codereview.chromium.org/757963002/diff/40001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/757963002/diff/40001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode55 Source/bindings/core/v8/PrivateScriptRunner.cpp:55: if (isUndefinedOrNull(functionImportObject)) On 2014/11/25 at 09:41:41, haraken wrote: > ...
6 years ago (2014-11-25 11:30:32 UTC) #16
vivekg
https://codereview.chromium.org/757963002/diff/40001/Source/core/xml/DocumentXMLTreeViewer.js File Source/core/xml/DocumentXMLTreeViewer.js (right): https://codereview.chromium.org/757963002/diff/40001/Source/core/xml/DocumentXMLTreeViewer.js#newcode7 Source/core/xml/DocumentXMLTreeViewer.js:7: Import("DocumentXMLTreeViewer.css"); On 2014/11/25 at 09:41:41, haraken wrote: > Sorry ...
6 years ago (2014-11-25 11:31:08 UTC) #17
vivekg
Uploaded a new patch, ptal!
6 years ago (2014-11-25 12:17:03 UTC) #18
haraken
Looks good, but let's wait for adamk's comment. Also let's consider moving 'Import', 'installClass', 'throwException' ...
6 years ago (2014-11-25 12:20:28 UTC) #19
vivekg
On 2014/11/25 at 12:20:28, haraken wrote: > Looks good, but let's wait for adamk's comment. ...
6 years ago (2014-11-25 12:34:48 UTC) #20
haraken
On 2014/11/25 12:34:48, vivekg_ wrote: > On 2014/11/25 at 12:20:28, haraken wrote: > > Looks ...
6 years ago (2014-11-25 12:37:14 UTC) #21
vivekg
On 2014/11/25 at 12:37:14, haraken wrote: > On 2014/11/25 12:34:48, vivekg_ wrote: > > On ...
6 years ago (2014-11-25 12:38:11 UTC) #22
haraken
On 2014/11/25 12:38:11, vivekg_ wrote: > On 2014/11/25 at 12:37:14, haraken wrote: > > On ...
6 years ago (2014-11-25 12:45:17 UTC) #23
vivekg
On 2014/11/25 at 12:45:17, haraken wrote: > On 2014/11/25 12:38:11, vivekg_ wrote: > > On ...
6 years ago (2014-11-25 12:47:16 UTC) #24
vivekg
On 2014/11/25 at 12:47:16, vivekg_ wrote: > On 2014/11/25 at 12:45:17, haraken wrote: > > ...
6 years ago (2014-11-25 12:48:04 UTC) #25
haraken
On 2014/11/25 12:48:04, vivekg_ wrote: > On 2014/11/25 at 12:47:16, vivekg_ wrote: > > On ...
6 years ago (2014-11-25 12:49:00 UTC) #26
adamk
On 2014/11/25 09:45:04, jochen (slow) wrote: > +adamk fyi > > would it make sense ...
6 years ago (2014-11-25 18:29:33 UTC) #27
vivekg
On 2014/11/25 at 18:29:33, adamk wrote: > On 2014/11/25 09:45:04, jochen (slow) wrote: > > ...
6 years ago (2014-11-26 09:24:21 UTC) #28
haraken
On 2014/11/26 09:24:21, vivekg_ wrote: > On 2014/11/25 at 18:29:33, adamk wrote: > > On ...
6 years ago (2014-11-26 10:56:33 UTC) #29
vivekg
On 2014/11/26 at 10:56:33, haraken wrote: > > As Adamk suggested, let's land the css ...
6 years ago (2014-11-27 06:51:42 UTC) #30
haraken
LGTM
6 years ago (2014-11-27 06:52:42 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/757963002/80001
6 years ago (2014-12-03 04:11:40 UTC) #33
commit-bot: I haz the power
6 years ago (2014-12-03 06:44:12 UTC) #34
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186384

Powered by Google App Engine
This is Rietveld 408576698