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

Issue 2495033003: Stop using v8_interface.interface_context in Web modules bindings. (Closed)

Created:
4 years, 1 month ago by dglazkov
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop using v8_interface.interface_context in Web modules bindings. We should build our own instead of reusing, let's do that. Also, let's start generating something for the header files. R=yukishiino,bashi BUG=654129 NOTRY=true Committed: https://crrev.com/f7340622bc0a7c7d613a8ec6e8c63aea934b3503 Cr-Commit-Position: refs/heads/master@{#433435}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Feedback addressed. #

Total comments: 3

Patch Set 3 : Removed the comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -31 lines) Patch
M third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py View 1 2 3 chunks +71 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/web_module_interface.cpp.tmpl View 2 chunks +3 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/WebTestInterface3.h View 1 chunk +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/WebTestInterface3.cpp View 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
dglazkov
PTAL.
4 years, 1 month ago (2016-11-12 05:52:49 UTC) #1
haraken
https://codereview.chromium.org/2495033003/diff/1/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py File third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py (right): https://codereview.chromium.org/2495033003/diff/1/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py#newcode34 third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py:34: def includes_for_type(idl_type): Would you help me understand why you ...
4 years, 1 month ago (2016-11-12 08:01:37 UTC) #3
dglazkov
Feedback addressed.
4 years, 1 month ago (2016-11-13 00:11:22 UTC) #4
dglazkov
https://codereview.chromium.org/2495033003/diff/1/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py File third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py (right): https://codereview.chromium.org/2495033003/diff/1/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py#newcode34 third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py:34: def includes_for_type(idl_type): On 2016/11/12 at 08:01:37, haraken wrote: > ...
4 years, 1 month ago (2016-11-13 00:11:45 UTC) #5
bashi
lgtm on my side. https://codereview.chromium.org/2495033003/diff/1/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py File third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py (right): https://codereview.chromium.org/2495033003/diff/1/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py#newcode49 third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py:49: methods.append(Method.create(idl_operation)) On 2016/11/13 00:11:45, dglazkov ...
4 years, 1 month ago (2016-11-13 23:33:58 UTC) #7
haraken
LGTM https://codereview.chromium.org/2495033003/diff/1/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py File third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py (right): https://codereview.chromium.org/2495033003/diff/1/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py#newcode49 third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py:49: methods.append(Method.create(idl_operation)) On 2016/11/13 23:33:58, bashi1 wrote: > On ...
4 years, 1 month ago (2016-11-14 01:41:41 UTC) #8
Yuki
lgtm
4 years, 1 month ago (2016-11-14 08:26:37 UTC) #11
dglazkov
On 2016/11/13 at 23:33:58, bashi wrote: > lgtm on my side. > > https://codereview.chromium.org/2495033003/diff/20001/third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl#newcode4 > ...
4 years, 1 month ago (2016-11-19 22:13:10 UTC) #12
dglazkov
https://codereview.chromium.org/2495033003/diff/20001/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py File third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py (right): https://codereview.chromium.org/2495033003/diff/20001/third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py#newcode72 third_party/WebKit/Source/bindings/scripts/code_generator_web_module.py:72: # idl_definitions.TypedObject sub-types, so maybe use inheritance? On 2016/11/13 ...
4 years, 1 month ago (2016-11-19 22:14:33 UTC) #13
dglazkov
Removed the comment.
4 years, 1 month ago (2016-11-19 22:15:59 UTC) #14
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/2495033003/40001
4 years, 1 month ago (2016-11-19 22:17:06 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-20 00:02:27 UTC) #20
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f7340622bc0a7c7d613a8ec6e8c63aea934b3503 Cr-Commit-Position: refs/heads/master@{#433435}
4 years, 1 month ago (2016-11-20 00:06:07 UTC) #22
bashi
On 2016/11/19 22:13:10, dglazkov (OOO until Nov 28) wrote: > On 2016/11/13 at 23:33:58, bashi ...
4 years ago (2016-11-24 02:01:47 UTC) #23
peria
On 2016/11/24 02:01:47, bashi1 wrote: > On 2016/11/19 22:13:10, dglazkov (OOO until Nov 28) wrote: ...
4 years ago (2016-11-24 02:43:28 UTC) #24
bashi
4 years ago (2016-11-24 02:47:21 UTC) #25
Message was sent while issue was closed.
On 2016/11/24 02:43:28, peria wrote:
> On 2016/11/24 02:01:47, bashi1 wrote:
> > On 2016/11/19 22:13:10, dglazkov (OOO until Nov 28) wrote:
> > > On 2016/11/13 at 23:33:58, bashi wrote:
> > > > lgtm on my side.
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2495033003/diff/20001/third_party/WebKit/Sour...
> > > >
> third_party/WebKit/Source/bindings/templates/web_module_interface.h.tmpl:4:
> > //
> > > clang-format on
> > > > Maybe it's better to add a way to controll clang-format {on,off} rather
> than
> > > just overriding it?
> > > 
> > > Tell me more. I would love to find a way to do this more elegantly.
> > 
> > We will need to add a flag (e.g. clang_format_mode) to the template context,
> > then use it in copyright_block.txt:
> > 
> > // clang-format {% clang_format_mode %}
> > 
> > I'll do that :)
> 
> I have a concern on turning on clang-format, because a change in an IDL file
can
> re-generate all generated .cpp/.h files.
> 
> The reasons why I think so are
> 1) Currently we have dependency from "all IDL files" to "all generated files"
> 2) Code generator compares generated code and existing .cpp|.h files to decide
> if they should be updated.
> 3) clang-format runs on generated files
> Am I wrong?
> 
> If I'm wrong, then I think we can remove "clang-format off" from the template.
> Anyway, I think we don't need to make it configurable; always on or off.

Thanks peria-san. IIUC it means that when we turn on clang-format, we will
compile generated code every time even there is no logic change. I'd prefer to
turn off clang-format as a short-term fix then.

Powered by Google App Engine
This is Rietveld 408576698