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

Unified Diff: tools/dom/scripts/systemnative.py

Issue 1752983003: Moved ChromiumSubscribeUniform to web_gl (Closed) Base URL: git@github.com:dart-lang/sdk.git@integration
Patch Set: Merged from integration to master Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemnative.py
diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py
index 5470993d5c698334f589f9980bdc5cedced136b7..1fd37f4bcf1fbd05ee1f7432f10790f5284144f4 100644
--- a/tools/dom/scripts/systemnative.py
+++ b/tools/dom/scripts/systemnative.py
@@ -7,12 +7,14 @@
native binding from the IDL database."""
import emitter
+import logging
import os
from generator import *
from htmldartgenerator import *
from idlnode import IDLArgument, IDLAttribute, IDLEnum, IDLMember
from systemhtml import js_support_checks, GetCallbackInfo, HTML_LIBRARY_NAMES
+_logger = logging.getLogger('systemnative')
# TODO(vsm): This should be recoverable from IDL, but we appear to not
# track the necessary info.
@@ -76,9 +78,8 @@ def EncodeType(t):
class DartiumBackend(HtmlDartGenerator):
"""Generates Dart implementation for one DOM IDL interface."""
- def __init__(self, interface,
- cpp_library_emitter, options):
- super(DartiumBackend, self).__init__(interface, options, True)
+ def __init__(self, interface, cpp_library_emitter, options, loggerParent):
+ super(DartiumBackend, self).__init__(interface, options, True, loggerParent)
self._interface = interface
self._cpp_library_emitter = cpp_library_emitter
@@ -96,6 +97,7 @@ class DartiumBackend(HtmlDartGenerator):
self._cpp_definitions_emitter = None
self._cpp_resolver_emitter = None
self._dart_js_interop = options.dart_js_interop
+ _logger.setLevel(loggerParent.level)
def ImplementsMergedMembers(self):
# We could not add merged functions to implementation class because
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698