API reference
Requests and decisions
What a page or Chromium asks of your application and the answers it can give.
Structs
AppItemAn item of the application’s in a
ContextMenu.ChromeCommandRequestA command about to run, passed to
App::on_chrome_command.ContextMenuThe menu a right-click opens, passed to
App::on_context_menuto edit.ContextMenuCommandAn item of the application’s chosen, passed to
App::on_context_menu_command.ContextMenuTargetWhat a right-click was on.
DownloadRequestA download about to start, passed to
App::on_download.DragEnterA drag entering a window, passed to
App::on_drag_enter.FileDialogRequestA page opening a file chooser, passed to
App::on_file_dialog.FileDialogResponderAnswers a
FileDialogRequestthe hook left for later (FileDialogDecision::Later), from any thread.KeyPressA key the user pressed, passed to
App::on_key.ModifiersThe modifier keys held with a key.
NavigationRequestA page’s navigation of the window it is in, passed to
App::on_navigation.NewWindowRequestA page’s request for a new window, passed to
App::on_new_window.PermissionRequestA page asking for a device or a permission, passed to
App::on_permission.PermissionResponderAnswers a
PermissionRequestthe hook left for later (PermissionDecision::Later), from any thread.SubmenuA submenu of a
ContextMenu. Shown only when an item of it is.
Enums
ChromeCommandA command Chromium runs in a window of the application’s, from a key shortcut or the context menu, as
App::on_chrome_commandis asked about it. Chromium’s own commands are folded by what the user asked for. Every kind of reload isReload; the context menu’s Copy and Ctrl+C are bothCopy.CommandDecisionThe answer of
App::on_chrome_command.DownloadDecisionThe answer of
App::on_download.DragDecisionThe answer of
App::on_drag_enter.FileDialogDecisionThe answer of
App::on_file_dialog.FileDialogKindWhat kind of file chooser a page opens (
FileDialogRequest::kind).KeyA key by its place on the keyboard rather than what it types. Shift+W and W are both
Key::Char('W').KeyDecisionThe answer of
App::on_key.MediaKindWhat kind of media was right-clicked.
MenuItemAn item of a
ContextMenu.NavigationDecisionThe answer of
App::on_navigation.NewWindowDecisionThe answer of
App::on_new_window.NewWindowKindHow a page asked for a window of its own (
NewWindowRequest::kind).PermissionWhat a page asks for, in a
PermissionRequest.PermissionDecisionThe answer of
App::on_permission.StandardItemOne of Kurogane’s items, which runs a command of Chromium’s.