Menu

API reference

Requests and decisions

What a page or Chromium asks of your application and the answers it can give.

Structs

AppItem

An item of the application’s in a ContextMenu.

ChromeCommandRequest

A command about to run, passed to App::on_chrome_command.

ContextMenu

The menu a right-click opens, passed to App::on_context_menu to edit.

ContextMenuCommand

An item of the application’s chosen, passed to App::on_context_menu_command.

ContextMenuTarget

What a right-click was on.

DownloadRequest

A download about to start, passed to App::on_download.

DragEnter

A drag entering a window, passed to App::on_drag_enter.

FileDialogRequest

A page opening a file chooser, passed to App::on_file_dialog.

FileDialogResponder

Answers a FileDialogRequest the hook left for later (FileDialogDecision::Later), from any thread.

KeyPress

A key the user pressed, passed to App::on_key.

Modifiers

The modifier keys held with a key.

NavigationRequest

A page’s navigation of the window it is in, passed to App::on_navigation.

NewWindowRequest

A page’s request for a new window, passed to App::on_new_window.

PermissionRequest

A page asking for a device or a permission, passed to App::on_permission.

PermissionResponder

Answers a PermissionRequest the hook left for later (PermissionDecision::Later), from any thread.

Submenu

A submenu of a ContextMenu. Shown only when an item of it is.

Enums

ChromeCommand

A command Chromium runs in a window of the application’s, from a key shortcut or the context menu, as App::on_chrome_command is asked about it. Chromium’s own commands are folded by what the user asked for. Every kind of reload is Reload; the context menu’s Copy and Ctrl+C are both Copy.

FileDialogKind

What kind of file chooser a page opens (FileDialogRequest::kind).

Key

A key by its place on the keyboard rather than what it types. Shift+W and W are both Key::Char('W').

KeyDecision

The answer of App::on_key.

MediaKind

What kind of media was right-clicked.

MenuItem

An item of a ContextMenu.

NewWindowKind

How a page asked for a window of its own (NewWindowRequest::kind).

Permission

What a page asks for, in a PermissionRequest.

StandardItem

One of Kurogane’s items, which runs a command of Chromium’s.