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

Issue 2731683002: [WebAgentsAPI]: Introduce OverloadSetAdapter. (Closed)

Created:
3 years, 9 months ago by dglazkov
Modified:
3 years, 9 months ago
Reviewers:
haraken, bashi
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebAgentsAPI]: Introduce OverloadSetAdapter. Currently, effective_overload_set takes a list of Jinja2 method contexts. This is fairly easy to replicate in Web Agent API generator, but I would prefer to rely on idl_definition types (that is, taking a list of IdlOperations as arguments). I tried a couple of ways to refactor effective_overload_set to use them directly, but all of them were rather expensive, so I settled on a simple adapter pattern. BUG=683743 R=bashi,yukishiino,haraken Review-Url: https://codereview.chromium.org/2731683002 Cr-Commit-Position: refs/heads/master@{#454584} Committed: https://chromium.googlesource.com/chromium/src/+/6d2b4f8955d1733666dfc7a0d0309b65566fa20d

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -7 lines) Patch
M third_party/WebKit/Source/bindings/scripts/overload_set_algorithm.py View 5 chunks +46 lines, -7 lines 0 comments Download
A third_party/WebKit/Source/bindings/scripts/overload_set_algorithm_test.py View 1 chunk +54 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
bashi
lgtm
3 years, 9 months ago (2017-03-03 04:39:04 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2731683002/1
3 years, 9 months ago (2017-03-03 15:03:32 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/6d2b4f8955d1733666dfc7a0d0309b65566fa20d
3 years, 9 months ago (2017-03-03 15:10:24 UTC) #10
haraken
> Currently, effective_overload_set takes a list of Jinja2 method > contexts. This is fairly easy ...
3 years, 9 months ago (2017-03-03 18:52:45 UTC) #11
dglazkov
3 years, 9 months ago (2017-03-04 00:43:03 UTC) #12
Message was sent while issue was closed.
On 2017/03/03 at 18:52:45, haraken wrote:
> > Currently, effective_overload_set takes a list of Jinja2 method
> > contexts. This is fairly easy to replicate in Web Agent API
> > generator, but I would prefer to rely on idl_definition types
> > (that is, taking a list of IdlOperations as arguments).
> 
> Hmm, what is our long-term plan here? Are we planning to support both
idl_definition types and Jinja2's context? It might be a bit unfortunate if we
need to add the adaptor pattern here and there.

That's a good question. I tried to document my thinking in
https://bugs.chromium.org/p/chromium/issues/detail?id=698440

Powered by Google App Engine
This is Rietveld 408576698