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

Issue 10741002: Replace 'NativeTraits' typedef with 'isNode', 'isActive', and 'isEventTarget' static boolean fields. (Closed)

Created:
8 years, 5 months ago by podivilov
Modified:
8 years, 5 months ago
Reviewers:
Anton Muhin
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Replace 'NativeTraits' typedef with 'isNode', 'isActive', and 'isEventTarget' static boolean fields. 'isEventTarget' field is needed to implement proper GC semantics for non-node event target listeners. 'isNode'+'isActive' is a direct replacement of 'NativeTraits' typedef. R=antonm@google.com Committed: https://code.google.com/p/dart/source/detail?r=9501

Patch Set 1 #

Total comments: 4

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -20 lines) Patch
M lib/dom/scripts/systemnative.py View 1 2 chunks +14 lines, -19 lines 0 comments Download
M lib/dom/templates/dom/native/cpp_header.template View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
podivilov
8 years, 5 months ago (2012-07-09 15:11:12 UTC) #1
Anton Muhin
lgtm, but we have DartDOMStringMap.h purely in custom bindings, might be worth unification. https://chromiumcodereview.appspot.com/10741002/diff/1/lib/dom/scripts/systemnative.py File ...
8 years, 5 months ago (2012-07-09 15:22:43 UTC) #2
podivilov
8 years, 5 months ago (2012-07-10 10:51:13 UTC) #3
https://chromiumcodereview.appspot.com/10741002/diff/1/lib/dom/scripts/system...
File lib/dom/scripts/systemnative.py (right):

https://chromiumcodereview.appspot.com/10741002/diff/1/lib/dom/scripts/system...
lib/dom/scripts/systemnative.py:425: is_node_checker = lambda interface:
interface.id == 'Node'
On 2012/07/09 15:22:43, antonmuhin wrote:
> nit: _test instead of _checker?

Done.

https://chromiumcodereview.appspot.com/10741002/diff/1/lib/dom/scripts/system...
lib/dom/scripts/systemnative.py:953: def _FindInHierarchy(database, interface,
checker):
On 2012/07/09 15:22:43, antonmuhin wrote:
> ditto for test

Done.

Powered by Google App Engine
This is Rietveld 408576698