mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Simplify parsing of CEF structure types.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@190 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
		| @@ -1053,21 +1053,6 @@ class obj_analysis: | ||||
|                 'result_value' : None | ||||
|             } | ||||
|          | ||||
|         # check for simple direct translations | ||||
|         structuretypes = { | ||||
|             'CefPrintInfo' : 'cef_print_info_t', | ||||
|             'CefWindowInfo' : 'cef_window_info_t', | ||||
|             'CefPopupFeatures' : 'cef_popup_features_t', | ||||
|             'CefSettings' : 'cef_settings_t', | ||||
|             'CefBrowserSettings' : 'cef_browser_settings_t', | ||||
|             'CefURLParts' : 'cef_urlparts_t', | ||||
|         } | ||||
|         if value in structuretypes.keys(): | ||||
|             return { | ||||
|                 'result_type' : 'structure', | ||||
|                 'result_value' : structuretypes[value] | ||||
|             } | ||||
|          | ||||
|         # check for simple direct translations | ||||
|         simpletypes = { | ||||
|             'void' : 'void', | ||||
| @@ -1105,6 +1090,13 @@ class obj_analysis: | ||||
|                 'result_type' : 'refptr', | ||||
|                 'result_value' : get_capi_name(list[0], True)+'*' | ||||
|             } | ||||
|  | ||||
|         # check for CEF structure types | ||||
|         if value[0:3] == 'Cef' and value[-4:] != 'List': | ||||
|             return { | ||||
|                 'result_type' : 'structure', | ||||
|                 'result_value' : get_capi_name(value, True) | ||||
|             } | ||||
|          | ||||
|         return None | ||||
|          | ||||
|   | ||||
		Reference in New Issue
	
	Block a user