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

Issue 1009503003: [bindings] Introduce ScriptValue.to<T> to convert to native values. (Closed)

Created:
5 years, 9 months ago by vivekg_samsung
Modified:
5 years, 9 months ago
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, cmumford, dgrogan, jsbell+idb_chromium.org, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[bindings] Introduce ScriptValue.to<T> to convert to native values. The IndexedDB utilizes couple of methods to translate ScriptValue to their respective native counterparts. This warrants addition of ScriptValue.to<T> template method to do the job using the NativeValueTraits<T>. R=haraken@chromium.org, jsbell@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191901

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adding new file NativeValueTraits.h #

Total comments: 6

Patch Set 3 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -17 lines) Patch
A Source/bindings/core/v8/NativeValueTraits.h View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/ScriptValue.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/V8Binding.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M Source/bindings/core/v8/v8.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/modules/v8/V8BindingForModules.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/IDBCursor.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/indexeddb/IDBFactory.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/IDBKeyRange.cpp View 5 chunks +7 lines, -7 lines 0 comments Download
M Source/modules/indexeddb/IDBObjectStore.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (5 generated)
vivekg
PTAL, thanks.
5 years, 9 months ago (2015-03-13 16:04:21 UTC) #2
jsbell
lgtm script_value_cast<>() has isolate as a later parameter, in contrast to https://code.google.com/p/chromium/issues/detail?id=424446 - but I'll ...
5 years, 9 months ago (2015-03-13 16:33:26 UTC) #3
vivekg
On 2015/03/13 16:33:26, jsbell wrote: > lgtm > > script_value_cast<>() has isolate as a later ...
5 years, 9 months ago (2015-03-13 17:58:20 UTC) #4
vivekg
On 2015/03/13 18:18:21, vivekg_ wrote: > mailto:vivekg@chromium.org changed reviewers: > + mailto:jl@opera.com haraken@, Jens: any ...
5 years, 9 months ago (2015-03-13 18:19:21 UTC) #6
haraken
https://codereview.chromium.org/1009503003/diff/1/Source/bindings/core/v8/ScriptValue.h File Source/bindings/core/v8/ScriptValue.h (right): https://codereview.chromium.org/1009503003/diff/1/Source/bindings/core/v8/ScriptValue.h#newcode61 Source/bindings/core/v8/ScriptValue.h:61: return script_value_cast<T>(v8Value(), isolate(), exceptionState); I'm wondering why we cannot ...
5 years, 9 months ago (2015-03-14 01:27:19 UTC) #7
vivekg
On 2015/03/14 01:27:19, haraken wrote: > https://codereview.chromium.org/1009503003/diff/1/Source/bindings/core/v8/ScriptValue.h > File Source/bindings/core/v8/ScriptValue.h (right): > > https://codereview.chromium.org/1009503003/diff/1/Source/bindings/core/v8/ScriptValue.h#newcode61 > ...
5 years, 9 months ago (2015-03-14 01:49:27 UTC) #8
haraken
On 2015/03/14 01:49:27, vivekg_ wrote: > On 2015/03/14 01:27:19, haraken wrote: > > > https://codereview.chromium.org/1009503003/diff/1/Source/bindings/core/v8/ScriptValue.h ...
5 years, 9 months ago (2015-03-14 10:37:01 UTC) #10
vivekg
bashi@, any suggestions?
5 years, 9 months ago (2015-03-16 02:31:03 UTC) #11
bashi
On 2015/03/16 02:31:03, vivekg_ wrote: > bashi@, any suggestions? Could putting un-specialized NativeValueTraits in a ...
5 years, 9 months ago (2015-03-16 03:19:57 UTC) #12
Yuki
On 2015/03/16 03:19:57, bashi1 wrote: > On 2015/03/16 02:31:03, vivekg_ wrote: > > bashi@, any ...
5 years, 9 months ago (2015-03-16 04:38:00 UTC) #13
bashi
On 2015/03/16 04:38:00, Yuki wrote: > On 2015/03/16 03:19:57, bashi1 wrote: > > On 2015/03/16 ...
5 years, 9 months ago (2015-03-16 04:51:57 UTC) #14
vivekg
Thank you yuki@ and bashi@. I have also one idea listed as below. Please let ...
5 years, 9 months ago (2015-03-16 05:06:53 UTC) #15
Yuki
On 2015/03/16 05:06:53, vivekg_ wrote: > Thank you yuki@ and bashi@. I have also one ...
5 years, 9 months ago (2015-03-16 05:21:32 UTC) #16
vivekg
On 2015/03/16 at 05:21:32, yukishiino wrote: > On 2015/03/16 05:06:53, vivekg_ wrote: > > Thank ...
5 years, 9 months ago (2015-03-16 05:27:43 UTC) #17
vivekg
On 2015/03/16 at 05:21:32, yukishiino wrote: > On 2015/03/16 05:06:53, vivekg_ wrote: > > Thank ...
5 years, 9 months ago (2015-03-16 05:27:43 UTC) #18
vivekg
yuki@, there is one problem using the toNative<T> template version with using Vector<T> i.e. template ...
5 years, 9 months ago (2015-03-16 06:10:40 UTC) #19
Yuki
On 2015/03/16 06:10:40, vivekg_ wrote: > yuki@, there is one problem using the toNative<T> template ...
5 years, 9 months ago (2015-03-16 06:31:38 UTC) #20
vivekg
Done, PTAL.
5 years, 9 months ago (2015-03-16 07:40:59 UTC) #21
Yuki
lgtm https://codereview.chromium.org/1009503003/diff/20001/Source/bindings/core/v8/NativeValueTraits.h File Source/bindings/core/v8/NativeValueTraits.h (right): https://codereview.chromium.org/1009503003/diff/20001/Source/bindings/core/v8/NativeValueTraits.h#newcode8 Source/bindings/core/v8/NativeValueTraits.h:8: namespace v8 { You'd better include <v8.h>, which ...
5 years, 9 months ago (2015-03-16 08:03:07 UTC) #22
vivekg
Thank you. Done the v8.h inclusion changes. For the other comments, I will do the ...
5 years, 9 months ago (2015-03-16 08:32:17 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1009503003/40001
5 years, 9 months ago (2015-03-16 08:47:45 UTC) #26
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 10:12:58 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191901

Powered by Google App Engine
This is Rietveld 408576698