ppapi/generators/idl_c_header.py
def CheckPassByValue(filenode, releases):
  """Checks that new pass-by-value structs are not introduced.

  See http://crbug.com/233439 for details.
  """
  cgen = CGen()
  # DO NOT add any more entries to this whitelist.
  # http://crbug.com/233439
  type_whitelist = ['PP_ArrayOutput', 'PP_CompletionCallback',
                    'PP_Ext_EventListener', 'PP_FloatPoint',
                    'PP_Point', 'PP_TouchPoint', 'PP_Var']
  nodes_to_check = filenode.GetListOf('Struct')
  nodes_to_check.extend(filenode.GetListOf('Union'))
  for node in nodes_to_check:
    if node.GetName() in type_whitelist:
      continue
    build_list = node.GetUniqueReleases(releases)
    if node.GetProperty('passByValue'):
      raise Exception('%s is a new passByValue struct or union. '
                      'See http://crbug.com/233439' % node.GetName())
    if node.GetProperty('returnByValue'):
      raise Exception('%s is a new returnByValue struct or union. '
                      'See http://crbug.com/233439' % node.GetName())
Checks that new pass-by-value structs are not introduced.

  See http://crbug.com/233439 for details.
  
Checks that new pass-by-value structs are not introduced.
Checks that new pass - by - value structs are not introduced .
def CheckPassByValue(filenode, releases):
  cgen = CGen()
  type_whitelist = ['PP_ArrayOutput', 'PP_CompletionCallback',
                    'PP_Ext_EventListener', 'PP_FloatPoint',
                    'PP_Point', 'PP_TouchPoint', 'PP_Var']
  nodes_to_check = filenode.GetListOf('Struct')
  nodes_to_check.extend(filenode.GetListOf('Union'))
  for node in nodes_to_check:
    if node.GetName() in type_whitelist:
      continue
    build_list = node.GetUniqueReleases(releases)
    if node.GetProperty('passByValue'):
      raise Exception('%s is a new passByValue struct or union. '
                      'See http://crbug.com/233439' % node.GetName())
    if node.GetProperty('returnByValue'):
      raise Exception('%s is a new returnByValue struct or union. '
                      'See http://crbug.com/233439' % node.GetName())
def CheckPassByValue ( filenode , releases ) : cgen = CGen ( ) type_whitelist = [ 'PP_ArrayOutput' , 'PP_CompletionCallback' , 'PP_Ext_EventListener' , 'PP_FloatPoint' , 'PP_Point' , 'PP_TouchPoint' , 'PP_Var' ] nodes_to_check = filenode . GetListOf ( 'Struct' ) nodes_to_check . extend ( filenode . GetListOf ( 'Union' ) ) for node in nodes_to_check : if node . GetName ( ) in type_whitelist : continue build_list = node . GetUniqueReleases ( releases ) if node . GetProperty ( 'passByValue' ) : raise Exception ( '%s is a new passByValue struct or union. ' 'See http://crbug.com/233439' % node . GetName ( ) ) if node . GetProperty ( 'returnByValue' ) : raise Exception ( '%s is a new returnByValue struct or union. ' 'See http://crbug.com/233439' % node . GetName ( ) )
Checks that new pass-by-value structs are not introduced.
Checks that new pass - by - value structs are not introduced .
"""Checks that new pass-by-value structs are not introduced.

  See http://crbug.com/233439 for details.
  """ # DO NOT add any more entries to this whitelist. # http://crbug.com/233439
filenode
releases