mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Co-authored-by: Sebastian Malton <sebastian@malton.name> Co-authored-by: Jim Ehrismann <jehrismann@mirantis.com>
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
export const windowActionHandleChannel = "window:window-action";
|
|
export const windowOpenAppMenuAsContextMenuChannel = "window:open-app-context-menu";
|
|
export const windowLocationChangedChannel = "window:location-changed";
|
|
|
|
/**
|
|
* The supported actions on the current window. The argument for `windowActionHandleChannel`
|
|
*/
|
|
export enum WindowAction {
|
|
/**
|
|
* Request that the current window goes back one step of browser history
|
|
*/
|
|
GO_BACK = "back",
|
|
|
|
/**
|
|
* Request that the current window goes forward one step of browser history
|
|
*/
|
|
GO_FORWARD = "forward",
|
|
|
|
/**
|
|
* Request that the current window is minimized
|
|
*/
|
|
MINIMIZE = "minimize",
|
|
|
|
/**
|
|
* Request that the current window is maximized if it isn't, or unmaximized
|
|
* if it is
|
|
*/
|
|
TOGGLE_MAXIMIZE = "toggle-maximize",
|
|
|
|
/**
|
|
* Request that the current window is closed
|
|
*/
|
|
CLOSE = "close",
|
|
}
|