mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@@ -14,35 +14,35 @@ int GetResourceId(const char* resource_name) {
|
||||
char* name;
|
||||
int id;
|
||||
} resource_map[] = {
|
||||
{"binding.html", IDS_BINDING_HTML},
|
||||
{"dialogs.html", IDS_DIALOGS_HTML},
|
||||
{"draggable.html", IDS_DRAGGABLE_HTML},
|
||||
{"drm.html", IDS_DRM_HTML},
|
||||
{"logo.png", IDS_LOGO_PNG},
|
||||
{"localstorage.html", IDS_LOCALSTORAGE_HTML},
|
||||
{"menu_icon.1x.png", IDS_MENU_ICON_1X_PNG},
|
||||
{"menu_icon.2x.png", IDS_MENU_ICON_2X_PNG},
|
||||
{"osr_test.html", IDS_OSRTEST_HTML},
|
||||
{"other_tests.html", IDS_OTHER_TESTS_HTML},
|
||||
{"pdf.html", IDS_PDF_HTML},
|
||||
{"pdf.pdf", IDS_PDF_PDF},
|
||||
{"performance.html", IDS_PERFORMANCE_HTML},
|
||||
{"performance2.html", IDS_PERFORMANCE2_HTML},
|
||||
{"preferences.html", IDS_PREFERENCES_HTML},
|
||||
{"response_filter.html", IDS_RESPONSE_FILTER_HTML},
|
||||
{"transparency.html", IDS_TRANSPARENCY_HTML},
|
||||
{"urlrequest.html", IDS_URLREQUEST_HTML},
|
||||
{"window.html", IDS_WINDOW_HTML},
|
||||
{"window_icon.1x.png", IDS_WINDOW_ICON_1X_PNG},
|
||||
{"window_icon.2x.png", IDS_WINDOW_ICON_2X_PNG},
|
||||
{"xmlhttprequest.html", IDS_XMLHTTPREQUEST_HTML},
|
||||
{"binding.html", IDS_BINDING_HTML},
|
||||
{"dialogs.html", IDS_DIALOGS_HTML},
|
||||
{"draggable.html", IDS_DRAGGABLE_HTML},
|
||||
{"drm.html", IDS_DRM_HTML},
|
||||
{"logo.png", IDS_LOGO_PNG},
|
||||
{"localstorage.html", IDS_LOCALSTORAGE_HTML},
|
||||
{"menu_icon.1x.png", IDS_MENU_ICON_1X_PNG},
|
||||
{"menu_icon.2x.png", IDS_MENU_ICON_2X_PNG},
|
||||
{"osr_test.html", IDS_OSRTEST_HTML},
|
||||
{"other_tests.html", IDS_OTHER_TESTS_HTML},
|
||||
{"pdf.html", IDS_PDF_HTML},
|
||||
{"pdf.pdf", IDS_PDF_PDF},
|
||||
{"performance.html", IDS_PERFORMANCE_HTML},
|
||||
{"performance2.html", IDS_PERFORMANCE2_HTML},
|
||||
{"preferences.html", IDS_PREFERENCES_HTML},
|
||||
{"response_filter.html", IDS_RESPONSE_FILTER_HTML},
|
||||
{"transparency.html", IDS_TRANSPARENCY_HTML},
|
||||
{"urlrequest.html", IDS_URLREQUEST_HTML},
|
||||
{"window.html", IDS_WINDOW_HTML},
|
||||
{"window_icon.1x.png", IDS_WINDOW_ICON_1X_PNG},
|
||||
{"window_icon.2x.png", IDS_WINDOW_ICON_2X_PNG},
|
||||
{"xmlhttprequest.html", IDS_XMLHTTPREQUEST_HTML},
|
||||
};
|
||||
|
||||
for (int i = 0; i < sizeof(resource_map)/sizeof(_resource_map); ++i) {
|
||||
for (int i = 0; i < sizeof(resource_map) / sizeof(_resource_map); ++i) {
|
||||
if (!strcmp(resource_map[i].name, resource_name))
|
||||
return resource_map[i].id;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user