ui/ozone/generate_ozone_platform_list.py
def GeneratePlatformListSource(out, platforms):
  """Generate static array containing a list of ozone platforms."""

  out.write('// DO NOT MODIFY. GENERATED BY generate_ozone_platform_list.py\n')
  out.write('\n')

  out.write('#include "ui/ozone/platform_list.h"\n')
  out.write('\n')

  out.write('namespace ui {\n')
  out.write('\n')

  # Definition of names list.
  out.write('const char* kPlatformNames[] = {\n')

  # Prototypes for platform initializers.
  for plat_name in platforms:
    out.write('    "%s",  // %s\n' % (plat_name, GetConstantName(plat_name)))
  out.write('};\n')
  out.write('\n')

  out.write('}  // namespace ui\n')
  out.write('\n')
Generate static array containing a list of ozone platforms.
Generate static array containing a list of ozone platforms.
Generate static array containing a list of ozone platforms .
def GeneratePlatformListSource(out, platforms):
  out.write('// DO NOT MODIFY. GENERATED BY generate_ozone_platform_list.py\n')
  out.write('\n')
  out.write('#include "ui/ozone/platform_list.h"\n')
  out.write('\n')
  out.write('namespace ui {\n')
  out.write('\n')
  out.write('const char* kPlatformNames[] = {\n')
  for plat_name in platforms:
    out.write('    "%s",  // %s\n' % (plat_name, GetConstantName(plat_name)))
  out.write('};\n')
  out.write('\n')
  out.write('}  // namespace ui\n')
  out.write('\n')
def GeneratePlatformListSource ( out , platforms ) : out . write ( '// DO NOT MODIFY. GENERATED BY generate_ozone_platform_list.py\n' ) out . write ( '\n' ) out . write ( '#include "ui/ozone/platform_list.h"\n' ) out . write ( '\n' ) out . write ( 'namespace ui {\n' ) out . write ( '\n' ) out . write ( 'const char* kPlatformNames[] = {\n' ) for plat_name in platforms : out . write ( '    "%s",  // %s\n' % ( plat_name , GetConstantName ( plat_name ) ) ) out . write ( '};\n' ) out . write ( '\n' ) out . write ( '}  // namespace ui\n' ) out . write ( '\n' )
Generate static array containing a list of ozone platforms.
Generate static array containing a list of ozone platforms .
"""Generate static array containing a list of ozone platforms.""" # Definition of names list. # Prototypes for platform initializers.
out
platforms