pub(crate) mod channel {
pub const DISPATCHER: &str = "nativeshell/window-dispatcher";
pub mod win {
pub const WINDOW_MANAGER: &str = ".window.window-manager";
pub const DROP_TARGET: &str = ".window.drop-target";
pub const DRAG_SOURCE: &str = ".window.drag-source";
}
pub const MENU_MANAGER: &str = "nativeshell/menu-manager";
pub const KEYBOARD_MAP_MANAGER: &str = "nativeshell/keyboard-map-manager";
pub const HOT_KEY_MANAGER: &str = "nativeshell/hot-key-manager";
pub const SCREEN_MANAGER: &str = "nativeshell/screen-manager";
pub const STATUS_ITEM_MANAGER: &str = "nativeshell/status-item-manager";
}
pub const CURRENT_API_VERSION: i32 = 1;
pub(crate) mod method {
pub mod window_manager {
pub const GET_API_VERSION: &str = "WindowManager.getApiVersion";
pub const CREATE_WINDOW: &str = "WindowManager.createWindow";
pub const INIT_WINDOW: &str = "WindowManager.initWindow";
}
pub mod window {
pub const SHOW: &str = "Window.show";
pub const SHOW_MODAL: &str = "Window.showModal";
pub const READY_TO_SHOW: &str = "Window.readyToShow";
pub const HIDE: &str = "Window.hide";
pub const ACTIVATE: &str = "Window.activate";
pub const DEACTIVATE: &str = "Window.deactivate";
pub const CLOSE: &str = "Window.close";
pub const CLOSE_WITH_RESULT: &str = "Window.closeWithResult";
pub const SET_GEOMETRY: &str = "Window.setGeometry";
pub const GET_GEOMETRY: &str = "Window.getGeometry";
pub const SUPPORTED_GEOMETRY: &str = "Window.supportedGeometry";
pub const GET_SCREEN_ID: &str = "Window.getScreenId";
pub const SET_STYLE: &str = "Window.setStyle";
pub const SET_TITLE: &str = "Window.setTitle";
pub const SET_MINIMIZED: &str = "Window.setMinimized";
pub const SET_MAXIMIZED: &str = "Window.setMaximized";
pub const SET_FULL_SCREEN: &str = "Window.setFullScreen";
pub const SET_COLLECTION_BEHAVIOR: &str = "Window.setCollectionBehavior";
pub const GET_WINDOW_STATE_FLAGS: &str = "Window.getWindowStateFlags";
pub const PERFORM_WINDOW_DRAG: &str = "Window.performWindowDrag";
pub const SHOW_POPUP_MENU: &str = "Window.showPopupMenu";
pub const HIDE_POPUP_MENU: &str = "Window.hidePopupMenu";
pub const SHOW_SYSTEM_MENU: &str = "Window.showSystemMenu";
pub const SET_WINDOW_MENU: &str = "Window.setWindowMenu";
pub const SAVE_POSITION_TO_STRING: &str = "Window.savePositionToString";
pub const RESTORE_POSITION_FROM_STRING: &str = "Window.restorePositionFromString";
}
pub mod drag_driver {
pub const DRAGGING_UPDATED: &str = "DragDriver.draggingUpdated";
pub const DRAGGING_EXITED: &str = "DragDriver.draggingExited";
pub const PERFORM_DROP: &str = "DragDriver.performDrop";
}
pub mod drag_source {
pub const BEGIN_DRAG_SESSION: &str = "DragSource.beginDragSession";
pub const DRAG_SESSION_ENDED: &str = "DragSource.dragSessionEnded";
}
pub mod menu {
pub const CREATE_OR_UPDATE: &str = "Menu.createOrUpdate";
pub const DESTROY: &str = "Menu.destroy";
pub const ON_ACTION: &str = "Menu.onAction";
pub const ON_OPEN: &str = "Menu.onOpen";
pub const SET_APP_MENU: &str = "Menu.setAppMenu";
}
pub mod menu_bar {
pub const MOVE_TO_PREVIOUS_MENU: &str = "Menubar.moveToPreviousMenu";
pub const MOVE_TO_NEXT_MENU: &str = "Menubar.moveToNextMenu";
}
pub mod keyboard_map {
pub const GET: &str = "KeyboardMap.get";
pub const ON_CHANGED: &str = "KeyboardMap.onChanged";
}
pub mod hot_key {
pub const CREATE: &str = "HotKey.create";
pub const DESTROY: &str = "HotKey.destroy";
pub const ON_PRESSED: &str = "HotKey.onPressed";
}
pub mod screen_manager {
pub const SCREENS_CHANGED: &str = "ScreenManager.screensChanged";
pub const GET_SCREENS: &str = "ScreenManager.getScreens";
pub const GET_MAIN_SCREEN: &str = "ScreenManager.getMainScreen";
pub const LOGICAL_TO_SYSTEM: &str = "ScreenManager.logicalToSystem";
pub const SYSTEM_TO_LOGICAL: &str = "ScreenManager.systemToLogical";
}
pub mod status_item {
pub const INIT: &str = "StatusItem.init";
pub const CREATE: &str = "StatusItem.create";
pub const DESTROY: &str = "StatusItem.destroy";
pub const SET_IMAGE: &str = "StatusItem.setImage";
pub const SET_HINT: &str = "StatusItem.setHint";
pub const SHOW_MENU: &str = "StatusItem.showMenu";
pub const SET_HIGHLIGHTED: &str = "StatusItem.setHighlighted";
pub const GET_GEOMETRY: &str = "StatusItem.getGeometry";
pub const GET_SCREEN_ID: &str = "StatusItem.getScreenId";
pub const ON_ACTION: &str = "StatusItem.onAction";
}
}
pub(crate) mod event {
pub mod window {
pub const INITIALIZE: &str = "event:Window.initialize";
pub const VISIBILITY_CHANGED: &str = "event:Window.visibilityChanged";
pub const STATE_FLAGS_CHANGED: &str = "event:Window.stateFlagsChanged";
pub const CLOSE_REQUEST: &str = "event:Window.closeRequest";
pub const CLOSE: &str = "event:Window.close";
}
}
pub(crate) mod drag_data {
pub mod key {
pub const FILES: &str = "drag-data:internal:files";
pub const URLS: &str = "drag-data:internal:urls";
}
}