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

Issue 19861006: Allow binding a getter+setter for window object property. (Closed)

Created:
7 years, 5 months ago by Krzysztof Olczyk
Modified:
7 years, 4 months ago
CC:
blink-reviews, Nils Barth (inactive), jamesr, kojih, jsbell+bindings_chromium.org, eae+blinkwatch, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, do-not-use, Mostyn Bramley-Moore, Daniel Blizniak
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

The WebFrame class of Chromium API in Blink has bindToWindowObject() method which allows binding the specified NPObject* as a property of global DOM window object. This has two limitations: 1) Only objects can be bound (no way to bind primitive values) 2) No possibility to further track value of this property / setters cannot be set. This patch adds another alternative version of this functions which : 1) operates on NPVariant instead of NPObject*, thus allowing a binding of any value 2) accepts a pair of accessors instead of value. BUG=

Patch Set 1 : Allow binding a getter+setter for window object property. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -0 lines) Patch
Source/bindings/v8/ScriptController.h View 2 chunks +3 lines, -0 lines 1 comment Download
Source/bindings/v8/ScriptController.cpp View 2 chunks +14 lines, -0 lines 0 comments Download
Source/web/WebFrameImpl.h View 2 chunks +2 lines, -0 lines 0 comments Download
Source/web/WebFrameImpl.cpp View 5 chunks +36 lines, -0 lines 0 comments Download
public/web/WebFrame.h View 3 chunks +6 lines, -0 lines 0 comments Download
public/web/WebWindowPropertyCallback.h View 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Krzysztof Olczyk
Hi reviewers, could you please review this bit of extension to WebFrame API?
7 years, 5 months ago (2013-07-24 07:50:50 UTC) #1
abarth-chromium
I don't understand the motivation for this change. Why would we want embedders to be ...
7 years, 5 months ago (2013-07-24 18:26:04 UTC) #2
Krzysztof Olczyk
Thank you for your feedback! Could you please explain why NPObject implies poor implementation quality? ...
7 years, 5 months ago (2013-07-25 15:11:47 UTC) #3
abarth-chromium
On 2013/07/25 15:11:47, Krzysztof Olczyk wrote: > Could you please explain why NPObject implies poor ...
7 years, 5 months ago (2013-07-25 17:17:57 UTC) #4
Krzysztof Olczyk
Thank your for your detailed explanation. WebIDL mechanism and making it available externally sounds definitely ...
7 years, 4 months ago (2013-07-29 15:54:58 UTC) #5
abarth-chromium
On 2013/07/29 15:54:58, Krzysztof Olczyk wrote: > However, we need to port several components, in ...
7 years, 4 months ago (2013-07-29 18:14:31 UTC) #6
Krzysztof Olczyk
7 years, 4 months ago (2013-08-02 10:40:57 UTC) #7
On 2013/07/29 18:14:31, abarth wrote:
> On 2013/07/29 15:54:58, Krzysztof Olczyk wrote:
> > However, we need to port several components, in quite short time-frame,
> 
> I'm sorry, but schedule pressure isn't a good reason to add technical debt to
> the project.  I've suggested two possible paths forward, but both require
> investment on your end.  If you're not willing pay off your technical debt,
then
> I don't think Blink should absorb it either.  not lgtm.

OK, I can understand that you do not want to incorporate the improvements to the
technology
you are phasing out. 
Though, I have never stated that we are going to stick to this np-based
solution. 
I was just wondering if you would have been willing to take this patch in the
meantime,
while the related technology is still present and the replacements are still not
in place.

Anyway, thank you very much for the discussion and shedding light on 
what is the road map in Blink/Chromium regarding the DOM extension mechanisms. 
I hope to be able to move the discussed elements of ours to v8ext or WebIDL
and possibly helping out with the latter.

Powered by Google App Engine
This is Rietveld 408576698