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

Issue 2622153002: [Bindings] Implement installRuntimeEnabledFeatures method on some classes (Closed)

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

Description

Implement installRuntimeEnabledFeatures method on V8{Window,HTMLDocument,Document,Node,EventTarget}. It installs runtime enabled features on instances, and its use case is limited to those classes. BUG=617892 Review-Url: https://codereview.chromium.org/2622153002 Cr-Commit-Position: refs/heads/master@{#442939} Committed: https://chromium.googlesource.com/chromium/src/+/aa5a228e4146b4cd7076319725f4ac09c231d098

Patch Set 1 #

Total comments: 6

Patch Set 2 : Work for comments #

Total comments: 8

Patch Set 3 : Work for comments #

Patch Set 4 : Fix build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -0 lines) Patch
M third_party/WebKit/Source/bindings/scripts/v8_interface.py View 1 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.h.tmpl View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/partial_interface.h.tmpl View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (16 generated)
peria
PTL. This method will be needed to use context snapshots.
3 years, 11 months ago (2017-01-11 05:06:02 UTC) #6
haraken
Ideally we want to avoid hard-coding interface names in the IDL compiler. What makes it ...
3 years, 11 months ago (2017-01-11 05:27:14 UTC) #7
peria
On 2017/01/11 05:27:14, haraken wrote: > Ideally we want to avoid hard-coding interface names in ...
3 years, 11 months ago (2017-01-11 05:51:37 UTC) #8
Yuki
On 2017/01/11 05:51:37, peria wrote: > On 2017/01/11 05:27:14, haraken wrote: > > Ideally we ...
3 years, 11 months ago (2017-01-11 06:00:07 UTC) #9
Yuki
Very basic question: How do you take a snapshot *without* any of conditionally-enabled things? The ...
3 years, 11 months ago (2017-01-11 07:06:52 UTC) #12
peria
https://codereview.chromium.org/2622153002/diff/1/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl File third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl (right): https://codereview.chromium.org/2622153002/diff/1/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl#newcode531 third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl:531: {% if v8_class_or_partial in ['V8Window', 'V8HTMLDocument', 'V8Document', 'V8Node', 'V8EventTarget'] ...
3 years, 11 months ago (2017-01-11 10:20:53 UTC) #13
peria
On 2017/01/11 07:06:52, Yuki wrote: > Very basic question: How do you take a snapshot ...
3 years, 11 months ago (2017-01-11 10:30:05 UTC) #14
Yuki
LGTM. https://codereview.chromium.org/2622153002/diff/20001/third_party/WebKit/Source/bindings/templates/interface.h.tmpl File third_party/WebKit/Source/bindings/templates/interface.h.tmpl (right): https://codereview.chromium.org/2622153002/diff/20001/third_party/WebKit/Source/bindings/templates/interface.h.tmpl#newcode152 third_party/WebKit/Source/bindings/templates/interface.h.tmpl:152: static void installRuntimeEnabledFeatures(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, ...
3 years, 11 months ago (2017-01-11 11:30:58 UTC) #15
haraken
> Because of our current design of Jinja template, it is difficult to choose > ...
3 years, 11 months ago (2017-01-11 11:42:28 UTC) #16
haraken
Discussed offline. LGTM. https://codereview.chromium.org/2622153002/diff/20001/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl File third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl (right): https://codereview.chromium.org/2622153002/diff/20001/third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl#newcode534 third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl:534: void {{v8_class_or_partial}}::installRuntimeEnabledFeatures(v8::Isolate* isolate, const DOMWrapperWorld& world, ...
3 years, 11 months ago (2017-01-11 12:16:13 UTC) #17
peria
https://codereview.chromium.org/2622153002/diff/20001/third_party/WebKit/Source/bindings/templates/interface.h.tmpl File third_party/WebKit/Source/bindings/templates/interface.h.tmpl (right): https://codereview.chromium.org/2622153002/diff/20001/third_party/WebKit/Source/bindings/templates/interface.h.tmpl#newcode152 third_party/WebKit/Source/bindings/templates/interface.h.tmpl:152: static void installRuntimeEnabledFeatures(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, v8::Local<v8::FunctionTemplate>); ...
3 years, 11 months ago (2017-01-11 12:41:17 UTC) #18
Yuki
LGTM.
3 years, 11 months ago (2017-01-11 12:44:40 UTC) #19
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/2622153002/40001
3 years, 11 months ago (2017-01-11 13:34:18 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/335307)
3 years, 11 months ago (2017-01-11 13:57:12 UTC) #24
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/2622153002/60001
3 years, 11 months ago (2017-01-11 14:10:49 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/98146)
3 years, 11 months ago (2017-01-11 15:34:38 UTC) #29
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/2622153002/60001
3 years, 11 months ago (2017-01-11 16:46:37 UTC) #31
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 17:18:46 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/aa5a228e4146b4cd7076319725f4...

Powered by Google App Engine
This is Rietveld 408576698