feat: support global shortcuts via GlobalShortcutsPortal
feature with ozone/wayland (#45297)
This commit is contained in:
parent
4417f74a5b
commit
18007f843e
7 changed files with 591 additions and 9 deletions
|
@ -23,6 +23,13 @@ inline constexpr std::string_view kDeviceSerialNumberKey = "serialNumber";
|
|||
|
||||
inline constexpr base::cstring_view kRunAsNode = "ELECTRON_RUN_AS_NODE";
|
||||
|
||||
// Per-profile UUID to distinguish global shortcut sessions for
|
||||
// org.freedesktop.portal.GlobalShortcuts. This is a counterpart to
|
||||
// extensions::pref_names::kGlobalShortcutsUuid, which may be not defined
|
||||
// if extensions are disabled.
|
||||
inline constexpr char kElectronGlobalShortcutsUuid[] =
|
||||
"electron.global_shortcuts.uuid";
|
||||
|
||||
#if BUILDFLAG(ENABLE_PDF_VIEWER)
|
||||
inline constexpr std::string_view kPDFExtensionPluginName =
|
||||
"Chromium PDF Viewer";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue