|
|
DescriptionIt is necessary to deal with callback function.
BUG=569301
Committed: https://crrev.com/e98eb22361144dcb3237ba6b999fa3dbd91498c6
Cr-Commit-Position: refs/heads/master@{#415256}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Addressed comments #
Total comments: 2
Patch Set 3 : Addressed comments #Messages
Total messages: 21 (10 generated)
lkawai@google.com changed reviewers: + bashi@chromium.org, haraken@chromium.org, peria@chromium.org, yukishiino@chromium.org
PTAL
LGTM https://codereview.chromium.org/2290113002/diff/1/third_party/WebKit/Source/b... File third_party/WebKit/Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/2290113002/diff/1/third_party/WebKit/Source/b... third_party/WebKit/Source/bindings/scripts/idl_definitions.py:184: raise ValueError('Expected 2 or 3 children, got %s' % num_children) I'd prefer the following pattern: if num_children < 2 or num_children > 3: raise ValueError(...) type_node = children[0] arguments_node = children[1] if num_children == 3: self.extended_attributes = ext_attributes_node_to_extended_attributes(...) else: self.extended_attributes = {} c.f., see how the IdlConstant class is implemented.
lgtm with haraken-san's comment addressed. Could you update the description like below? --- [one line summary] [some lines of explanation] BUG=[bug number] --- For example, --- Add extended attributes to IdlCallbackFunction It is necessary ... BUG=... ---
Description was changed from ========== Add extended attributes to IdlCallbackFunction. It is necessary to deal with callback function. BUG=569301 ========== to ========== It is necessary to deal with callback function. BUG=569301 ==========
LGTM. https://codereview.chromium.org/2290113002/diff/1/third_party/WebKit/Source/b... File third_party/WebKit/Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/2290113002/diff/1/third_party/WebKit/Source/b... third_party/WebKit/Source/bindings/scripts/idl_definitions.py:184: raise ValueError('Expected 2 or 3 children, got %s' % num_children) On 2016/08/30 05:27:57, haraken wrote: > > I'd prefer the following pattern: > > if num_children < 2 or num_children > 3: > raise ValueError(...) > type_node = children[0] > arguments_node = children[1] > if num_children == 3: > self.extended_attributes = ext_attributes_node_to_extended_attributes(...) > else: > self.extended_attributes = {} > > > c.f., see how the IdlConstant class is implemented. Lisa's code looks more Python's way than haraken's suggestion, and easier for me to read. Although it's also reasonable to keep consistency with the rest of lines in this file.
PTAL https://codereview.chromium.org/2290113002/diff/1/third_party/WebKit/Source/b... File third_party/WebKit/Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/2290113002/diff/1/third_party/WebKit/Source/b... third_party/WebKit/Source/bindings/scripts/idl_definitions.py:184: raise ValueError('Expected 2 or 3 children, got %s' % num_children) On 2016/08/30 05:27:57, haraken wrote: > > I'd prefer the following pattern: > > if num_children < 2 or num_children > 3: > raise ValueError(...) > type_node = children[0] > arguments_node = children[1] > if num_children == 3: > self.extended_attributes = ext_attributes_node_to_extended_attributes(...) > else: > self.extended_attributes = {} > > > c.f., see how the IdlConstant class is implemented. Done. https://codereview.chromium.org/2290113002/diff/1/third_party/WebKit/Source/b... third_party/WebKit/Source/bindings/scripts/idl_definitions.py:184: raise ValueError('Expected 2 or 3 children, got %s' % num_children) On 2016/08/30 05:49:11, Yuki wrote: > On 2016/08/30 05:27:57, haraken wrote: > > > > I'd prefer the following pattern: > > > > if num_children < 2 or num_children > 3: > > raise ValueError(...) > > type_node = children[0] > > arguments_node = children[1] > > if num_children == 3: > > self.extended_attributes = ext_attributes_node_to_extended_attributes(...) > > else: > > self.extended_attributes = {} > > > > > > c.f., see how the IdlConstant class is implemented. > > Lisa's code looks more Python's way than haraken's suggestion, and easier for me > to read. Although it's also reasonable to keep consistency with the rest of > lines in this file. Acknowledged.
LGTM. https://codereview.chromium.org/2290113002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/2290113002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/bindings/scripts/idl_definitions.py:186: self.extended_attributes = {} You already set self.extended_attributes on line 176. You don't need this else-clause.
LGTM
https://codereview.chromium.org/2290113002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/2290113002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/bindings/scripts/idl_definitions.py:186: self.extended_attributes = {} On 2016/08/30 05:59:41, Yuki wrote: > You already set self.extended_attributes on line 176. > You don't need this else-clause. Done.
The CQ bit was checked by lkawai@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by lkawai@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from bashi@chromium.org, haraken@chromium.org, yukishiino@chromium.org Link to the patchset: https://codereview.chromium.org/2290113002/#ps40001 (title: "Addressed comments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== It is necessary to deal with callback function. BUG=569301 ========== to ========== It is necessary to deal with callback function. BUG=569301 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== It is necessary to deal with callback function. BUG=569301 ========== to ========== It is necessary to deal with callback function. BUG=569301 Committed: https://crrev.com/e98eb22361144dcb3237ba6b999fa3dbd91498c6 Cr-Commit-Position: refs/heads/master@{#415256} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/e98eb22361144dcb3237ba6b999fa3dbd91498c6 Cr-Commit-Position: refs/heads/master@{#415256} |