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 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 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 SET_STYLE: &str = "Window.setStyle";
pub const SET_TITLE: &str = "Window.setTitle";
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 mod drop_target {
pub const DRAGGING_UPDATED: &str = "DropTarget.draggingUpdated";
pub const DRAGGING_EXITED: &str = "DropTarget.draggingExited";
pub const PERFORM_DROP: &str = "DropTarget.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 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(crate) mod event {
pub mod window {
pub const INITIALIZE: &str = "event:Window.initialize";
pub const VISIBILITY_CHANGED: &str = "event:Window.visibilityChanged";
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";
}
}