cef/include/capi
Marshall Greenblatt 8e79307a62 Pass mime type values as file dialog accept filters (see #3314)
File dialogs that specify mime type (e.g. "image/*") accept filters will pass
those values unchanged to the OnFileDialog |accept_filters| parameter. The
default dialog implementation will show those filters in addition to a combined
"Custom Files" filter. This is a change from preexisting Google Chrome
behavior where only the combined "Custom Files" filter is displayed, and
restores CEF behavior that existed prior to 2ea7459a89.

Document the fact that OnFileDialog may be called twice, once before MIME type
expansion and once afterwards.

Add new OnFileDialog |accept_extensions| and |accept_descriptions| parameters
for MIME type extensions and descriptions.

Details: This change adds a SelectFileDialog::FileTypeInfo::extension_mimetypes
member and improves the logic in FileSelectHelper::GetFileTypesFromAcceptType
and file_dialog_manager.cc SelectFileToFileChooserParams to support recall of
the source mime type when populating the FileChooserParams structure.

To test:
- Run `ceftests --gtest_filter=DialogTest.*`
- Run `cefclient --url=https://tests/dialogs`
2024-05-30 15:38:36 -04:00
..
test tests: Fix SchemeHandlerTest failure with ReduceAcceptLanguage trial 2024-05-26 13:45:29 -04:00
views chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
cef_accessibility_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_app_capi.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
cef_audio_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_auth_callback_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_base_capi.h Update to Chromium version 70.0.3516.0 (#581409) 2018-08-10 11:31:08 -04:00
cef_browser_capi.h Add GN arg to disable Alloy bootstrap (see #3681, see #3685) 2024-05-01 14:34:21 -04:00
cef_browser_process_handler_capi.h chrome: Enforce matching context for new user and incognito profiles 2024-02-14 18:51:32 -05:00
cef_callback_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_client_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_command_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_command_line_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_context_menu_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_cookie_capi.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
cef_crash_util_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_devtools_message_observer_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_dialog_handler_capi.h Pass mime type values as file dialog accept filters (see #3314) 2024-05-30 15:38:36 -04:00
cef_display_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_dom_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_download_handler_capi.h chrome: Add CefDownloadHandler support (see #3681) 2024-04-27 15:36:58 -04:00
cef_download_item_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_drag_data_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_drag_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_extension_capi.h Add GN arg to disable Alloy bootstrap (see #3681, see #3685) 2024-05-01 14:34:21 -04:00
cef_extension_handler_capi.h Add GN arg to disable Alloy bootstrap (see #3681, see #3685) 2024-05-01 14:34:21 -04:00
cef_file_util_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_find_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_focus_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_frame_capi.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
cef_frame_handler_capi.h capi: Update list comments in generated files 2024-01-05 15:04:12 -05:00
cef_i18n_util_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_image_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_jsdialog_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_keyboard_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_life_span_handler_capi.h capi: Update list comments in generated files 2024-01-05 15:04:12 -05:00
cef_load_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_media_access_handler_capi.h Add CefPermissionHandler callback for media access (fixes issue #2582) 2022-06-30 07:31:18 +00:00
cef_media_router_capi.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
cef_menu_model_capi.h capi: Update list comments in generated files 2024-01-05 15:04:12 -05:00
cef_menu_model_delegate_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_navigation_entry_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_origin_whitelist_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_parser_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_path_util_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_permission_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_preference_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_preference_manager_capi.h Support registration of custom preferences. 2022-10-26 16:54:33 -04:00
cef_print_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_print_settings_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_process_message_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_process_util_capi.h capi: Update list comments in generated files 2024-01-05 15:04:12 -05:00
cef_registration_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_render_handler_capi.h osr: Implement shared texture support (fixes #1006, fixes #2575) 2024-04-23 13:03:56 -04:00
cef_render_process_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_request_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_request_context_capi.h Add GN arg to disable Alloy bootstrap (see #3681, see #3685) 2024-05-01 14:34:21 -04:00
cef_request_context_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_request_handler_capi.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
cef_resource_bundle_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_resource_bundle_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_resource_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_resource_request_handler_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_response_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_response_filter_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_scheme_capi.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
cef_server_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_shared_memory_region_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_shared_process_message_builder_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_ssl_info_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_ssl_status_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_stream_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_string_visitor_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_task_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_thread_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_trace_capi.h capi: Update list comments in generated files 2024-01-05 15:04:12 -05:00
cef_unresponsive_process_callback_capi.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
cef_urlrequest_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_v8_capi.h Update to Chromium version 126.0.6478.0 (#1300313) 2024-05-26 13:45:29 -04:00
cef_values_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_waitable_event_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_x509_certificate_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_xml_reader_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00
cef_zip_reader_capi.h Update copyright year for generated files 2024-01-05 13:03:36 -05:00