Flutter Engine
The Flutter Engine
Classes | Functions | Variables
scripts.systemhtml Namespace Reference

Classes

class  Dart2JSBackend
 
class  DartLibraries
 
class  DartLibrary
 
class  DartLibraryEmitter
 
class  ElementConstructorInfo
 
class  HtmlDartInterfaceGenerator
 

Functions

def CanUseStaticExtensions (interface, should)
 
def ElementConstructorInfos (typename, element_constructors, factory_provider_name='_Elements')
 
def SvgSupportStr (tagName)
 
def ElemSupportStr (tagName)
 

Variables

list HTML_LIBRARY_NAMES
 
 js_support_checks
 
 promise_attributes
 
 promise_operations
 
 promise_generateCall
 
dictionary compat_conflicts
 

Function Documentation

◆ CanUseStaticExtensions()

def scripts.systemhtml.CanUseStaticExtensions (   interface,
  should 
)

Definition at line 21 of file systemhtml.py.

21def CanUseStaticExtensions(interface, should):
22 if not should:
23 return False
24 static_extension_interfaces = [] # Classes to be migrated
25 return interface in static_extension_interfaces
26
27
def CanUseStaticExtensions(interface, should)
Definition: systemhtml.py:21

◆ ElementConstructorInfos()

def scripts.systemhtml.ElementConstructorInfos (   typename,
  element_constructors,
  factory_provider_name = '_Elements' 
)
Returns list of ElementConstructorInfos about the convenience constructors
for an Element or SvgElement.

Definition at line 442 of file systemhtml.py.

444 factory_provider_name='_Elements'):
445 """Returns list of ElementConstructorInfos about the convenience constructors
446 for an Element or SvgElement."""
447 # TODO(sra): Handle multiple and named constructors.
448 if typename not in element_constructors:
449 return []
450 infos = element_constructors[typename]
451 if isinstance(infos, str):
452 infos = ElementConstructorInfo(
453 tag=infos, factory_provider_name=factory_provider_name)
454 if not isinstance(infos, list):
455 infos = [infos]
456 return infos
457
458
459# ------------------------------------------------------------------------------

◆ ElemSupportStr()

def scripts.systemhtml.ElemSupportStr (   tagName)

Definition at line 464 of file systemhtml.py.

464def ElemSupportStr(tagName):
465 return "Element.isTagSupported('%s')" % tagName
466
467
def ElemSupportStr(tagName)
Definition: systemhtml.py:464

◆ SvgSupportStr()

def scripts.systemhtml.SvgSupportStr (   tagName)

Definition at line 460 of file systemhtml.py.

460def SvgSupportStr(tagName):
461 return 'Svg%s' % ElemSupportStr(tagName)
462
463
def SvgSupportStr(tagName)
Definition: systemhtml.py:460

Variable Documentation

◆ compat_conflicts

dictionary scripts.systemhtml.compat_conflicts
Initial value:
1= {
2 # These interfaces implement Rectangle, which is a Dart interface. In order
3 # to match the interface of Rectangle, they must be marked as non-nullable.
4 'DOMRectReadOnly': ['bottom', 'height', 'left', 'right', 'top', 'width'],
5 'DOMRect': ['height', 'width'],
6}

Definition at line 1265 of file systemhtml.py.

◆ HTML_LIBRARY_NAMES

list scripts.systemhtml.HTML_LIBRARY_NAMES
Initial value:
1= [
2 'html', 'indexed_db', 'svg', 'web_audio', 'web_gl', 'web_sql'
3]

Definition at line 28 of file systemhtml.py.

◆ js_support_checks

scripts.systemhtml.js_support_checks

Definition at line 517 of file systemhtml.py.

◆ promise_attributes

scripts.systemhtml.promise_attributes

Definition at line 922 of file systemhtml.py.

◆ promise_generateCall

scripts.systemhtml.promise_generateCall
Initial value:
1= monitored.Set('systemhtml.promise_generateCall', [
2 "Navigator.requestKeyboardLock",
3])

Definition at line 1236 of file systemhtml.py.

◆ promise_operations

scripts.systemhtml.promise_operations

Definition at line 956 of file systemhtml.py.