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

Issue 22470008: Implement ScriptPromise and ScriptFunction (Closed)

Created:
7 years, 4 months ago by alecflett
Modified:
6 years, 9 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, eae+blinkwatch, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, do-not-use
Visibility:
Public.

Description

Implement ScriptPromise and ScriptFunction These two classes allow C++ code to hook into a Promise's resolution chain. Documentation provided in ScriptPromise.h BUG=

Patch Set 1 #

Total comments: 16

Patch Set 2 : Use Internals instead of a unit test #

Patch Set 3 : Full layout test #

Patch Set 4 : Fixed expectation #

Total comments: 5

Patch Set 5 : Break out GarbageCollected, add comments #

Patch Set 6 : Protect the ScriptFunction with a strong ref #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -47 lines) Patch
A + LayoutTests/fast/js/Promise-native-then.html View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
A + LayoutTests/fast/js/Promise-native-then-expected.txt View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/bindings.gypi View 1 2 chunks +2 lines, -0 lines 0 comments Download
A + Source/bindings/v8/GarbageCollected.h View 1 2 3 4 4 chunks +13 lines, -22 lines 1 comment Download
A + Source/bindings/v8/ScriptFunction.h View 1 2 3 4 5 1 chunk +37 lines, -18 lines 2 comments Download
A Source/bindings/v8/ScriptPromise.h View 1 2 3 4 1 chunk +105 lines, -0 lines 4 comments Download
M Source/core/testing/Internals.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
alecflett
abarth@ - Here is an updated version of what we worked on. I passed the ...
7 years, 4 months ago (2013-08-09 20:57:52 UTC) #1
abarth-chromium
https://codereview.chromium.org/22470008/diff/1/Source/bindings/v8/ScriptFunction.h File Source/bindings/v8/ScriptFunction.h (right): https://codereview.chromium.org/22470008/diff/1/Source/bindings/v8/ScriptFunction.h#newcode35 Source/bindings/v8/ScriptFunction.h:35: #include "V8Binding.h" Please use paths from the Source directory ...
7 years, 4 months ago (2013-08-09 21:46:52 UTC) #2
abarth-chromium
On 2013/08/09 20:57:52, alecflett wrote: > abarth@ - Here is an updated version of what ...
7 years, 4 months ago (2013-08-09 21:49:23 UTC) #3
abarth-chromium
If this is only needed in the NavigationController branch, I'm happy to review CLs for ...
7 years, 4 months ago (2013-08-09 21:50:29 UTC) #4
alecflett
abarth@ - ok, this is now using Internals. I just stuck a dummy method that ...
7 years, 4 months ago (2013-08-12 23:26:40 UTC) #5
abarth-chromium
Good idea~
7 years, 4 months ago (2013-08-12 23:32:40 UTC) #6
abarth-chromium
https://codereview.chromium.org/22470008/diff/14001/Source/bindings/v8/ScriptFunction.h File Source/bindings/v8/ScriptFunction.h (right): https://codereview.chromium.org/22470008/diff/14001/Source/bindings/v8/ScriptFunction.h#newcode41 Source/bindings/v8/ScriptFunction.h:41: // to use this class, I find this comment ...
7 years, 4 months ago (2013-08-12 23:35:32 UTC) #7
alecflett
ok, new patch uploaded - sorry I had completely forgotten about a few of your ...
7 years, 4 months ago (2013-08-13 20:37:10 UTC) #8
alecflett
abarth@ - ping?
7 years, 4 months ago (2013-08-15 00:01:24 UTC) #9
abarth-chromium
https://codereview.chromium.org/22470008/diff/22001/Source/bindings/v8/GarbageCollected.h File Source/bindings/v8/GarbageCollected.h (right): https://codereview.chromium.org/22470008/diff/22001/Source/bindings/v8/GarbageCollected.h#newcode40 Source/bindings/v8/GarbageCollected.h:40: class GarbageCollected { Oh, sorry. I meant that GarbageCollected ...
7 years, 4 months ago (2013-08-15 00:22:10 UTC) #10
abarth-chromium
https://codereview.chromium.org/22470008/diff/22001/Source/bindings/v8/ScriptFunction.h File Source/bindings/v8/ScriptFunction.h (right): https://codereview.chromium.org/22470008/diff/22001/Source/bindings/v8/ScriptFunction.h#newcode59 Source/bindings/v8/ScriptFunction.h:59: ref(); You should be able to encapsulate all this ...
7 years, 4 months ago (2013-08-15 00:23:54 UTC) #11
abarth-chromium
I'm not sure I've done a good job explaining the issues in this CL. Maybe ...
7 years, 4 months ago (2013-08-15 00:35:14 UTC) #12
abarth-chromium
7 years, 4 months ago (2013-08-19 22:00:04 UTC) #13
On 2013/08/15 00:35:14, abarth wrote:
> I'm not sure I've done a good job explaining the issues in this CL.  Maybe we
> should talk in person with a white board?

I took a swing at updating the CL:

https://codereview.chromium.org/23254004/

Let me know what you think.

Powered by Google App Engine
This is Rietveld 408576698