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

Issue 138223002: WIP: Implement binding layer for Blink-in-JavaScript

Created:
6 years, 11 months ago by haraken
Modified:
6 years, 11 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, sof, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive, kouhei (in TOK)
Visibility:
Public.

Description

WIP: Implement binding layer for Blink-in-JavaScript This CL moves window.atob and window.btoa to JavaScript. This is not yet for review.

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -178 lines) Patch
M Source/bindings/IDLExtendedAttributes.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/bindings.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 chunks +18 lines, -2 lines 0 comments Download
A + Source/bindings/v8/BlinkInJavaScriptController.js View 1 2 1 chunk +9 lines, -4 lines 0 comments Download
M Source/bindings/v8/DOMWrapperWorld.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
A + Source/bindings/v8/V8BlinkInJavaScript.h View 1 2 chunks +6 lines, -8 lines 0 comments Download
A Source/bindings/v8/V8BlinkInJavaScript.cpp View 1 2 3 1 chunk +161 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8PerIsolateData.h View 3 chunks +6 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8PerIsolateData.cpp View 1 chunk +13 lines, -0 lines 0 comments Download
A + Source/build/scripts/make_blink_in_javascript.py View 1 chunk +22 lines, -9 lines 0 comments Download
M Source/core/core.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/core_derived_sources.gyp View 1 chunk +17 lines, -0 lines 0 comments Download
D Source/core/frame/DOMWindowBase64.h View 1 chunk +0 lines, -49 lines 0 comments Download
D Source/core/frame/DOMWindowBase64.cpp View 1 chunk +0 lines, -78 lines 0 comments Download
M Source/core/frame/WindowBase64.idl View 1 chunk +2 lines, -3 lines 0 comments Download
A + Source/core/frame/WindowBase64.js View 1 2 1 chunk +42 lines, -22 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
haraken
This is not yet for review. I'll write a design document in days.
6 years, 11 months ago (2014-01-14 14:16:43 UTC) #1
arv (Not doing code reviews)
Very interesting. Really looking forward to hear more what you have in mind. My main ...
6 years, 11 months ago (2014-01-14 14:50:17 UTC) #2
haraken
> My main concern is that we are still going through the slow binding layer. ...
6 years, 11 months ago (2014-01-15 05:46:44 UTC) #3
abarth-chromium
The hardest part seems to be marshalling arguments in and out of the isolated world. ...
6 years, 11 months ago (2014-01-15 07:03:58 UTC) #4
haraken
Thanks abarth! > The hardest part seems to be marshalling arguments in and out of ...
6 years, 11 months ago (2014-01-15 07:12:36 UTC) #5
haraken
https://codereview.chromium.org/138223002/diff/130001/Source/core/frame/WindowBase64.idl File Source/core/frame/WindowBase64.idl (left): https://codereview.chromium.org/138223002/diff/130001/Source/core/frame/WindowBase64.idl#oldcode33 Source/core/frame/WindowBase64.idl:33: [RaisesException] DOMString btoa(DOMString string); On 2014/01/15 07:12:36, haraken wrote: ...
6 years, 11 months ago (2014-01-15 12:04:35 UTC) #6
arv (Not doing code reviews)
6 years, 11 months ago (2014-01-15 16:04:34 UTC) #7
https://codereview.chromium.org/138223002/diff/30001/Source/core/frame/Window...
File Source/core/frame/WindowBase64.js (right):

https://codereview.chromium.org/138223002/diff/30001/Source/core/frame/Window...
Source/core/frame/WindowBase64.js:35: var windowBase64 =
installClass("WindowBase64");
On 2014/01/15 05:46:45, haraken wrote:
> On 2014/01/14 14:50:18, arv wrote:
> > installClass('WindowBase64', {
> >   btoaMethod: function (str) {
> >   },
> >   atobMethod: ...
> > }
> > 
> > but why are they named *Method?
> 
> Done.
> 
> I was using *Method, since I'm planning to introduce *Getter and *Setter in
the
> future. However, "Method" is unnecessary, so dropped.

getters and setters are probably best done using getters and setters?

Powered by Google App Engine
This is Rietveld 408576698