Skip to content

Commit

Permalink
Check messageTray
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Sep 21, 2024
1 parent a2eda2d commit bf01e3c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions packages/gnome-shell/src/ui/messageTray.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import type * as MessageList from './messageList.js';

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L20
* @version 46
* @version 47
*/
export const ANIMATION_TIME: number;

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L36
* @version 46
* @version 47
*/
export enum State {
HIDDEN = 0,
Expand All @@ -38,7 +38,7 @@ export enum State {
* newer version having replaced them.
*
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L51
* @version 46
* @version 47
*/
export enum NotificationDestroyedReason {
EXPIRED = 1,
Expand All @@ -54,7 +54,7 @@ export enum NotificationDestroyedReason {
* through the Telepathy client.
*
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L62
* @version 46
* @version 47
*/
export enum Urgency {
LOW = 0,
Expand All @@ -72,7 +72,7 @@ export enum Urgency {
* of a notification is shown on the lock screen.
*
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L76
* @version 46
* @version 47
*/
export enum PrivacyScope {
USER = 0,
Expand All @@ -86,7 +86,7 @@ export enum PrivacyScope {
* A notification without a policy object will inherit the default one.
*
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L160
* @version 46
* @version 47
*/
export abstract class NotificationPolicy extends GObject.Object {
readonly enable: boolean;
Expand All @@ -109,7 +109,7 @@ export abstract class NotificationPolicy extends GObject.Object {

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L213
* @version 46
* @version 47
*/
export class NotificationGenericPolicy extends NotificationPolicy {
public id: string;
Expand All @@ -126,7 +126,7 @@ export class NotificationGenericPolicy extends NotificationPolicy {

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L243
* @version 46
* @version 47
*/
export class NotificationApplicationPolicy extends NotificationPolicy {
public id: string;
Expand All @@ -147,7 +147,7 @@ export class NotificationApplicationPolicy extends NotificationPolicy {

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L316
* @version 46
* @version 47
*/
export class Sound extends GObject.Object {
constructor(file: Gio.File | null | undefined, themedName?: string);
Expand All @@ -157,7 +157,7 @@ export class Sound extends GObject.Object {

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L335
* @version 46
* @version 47
*/
export class Action extends GObject.Object {
constructor(label: string, callback: () => void);
Expand All @@ -169,7 +169,7 @@ export class Action extends GObject.Object {

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L482
* @version 46
* @version 47
*/
export declare namespace Source {
export interface ConstructorProps extends MessageList.Source.ConstructorProps {
Expand All @@ -179,7 +179,7 @@ export declare namespace Source {

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L499
* @version 46
* @version 47
*/
export class Source extends MessageList.Source {
constructor(params?: Partial<Source.ConstructorProps>);
Expand Down Expand Up @@ -253,7 +253,7 @@ export declare namespace Notification {

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L352
* @version 46
* @version 47
*/
export class Notification extends GObject.Object implements Notification.ObjectProperties {
constructor(params?: Notification.ConstructorProps);
Expand Down Expand Up @@ -316,7 +316,7 @@ export class Notification extends GObject.Object implements Notification.ObjectP

/**
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L676
* @version 46
* @version 47
*/
export class MessageTray extends St.Widget {
constructor();
Expand All @@ -327,7 +327,7 @@ export class MessageTray extends St.Widget {

public readonly queueCount: number;

public bannerBlocked: boolean;
public set bannerBlocked(v: boolean);

public contains(descendant: Clutter.Actor): boolean;
public contains(source: Source): boolean;
Expand Down Expand Up @@ -392,6 +392,6 @@ export class MessageTray extends St.Widget {
* The {Source} that should be used to send system notifications.
*
* @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/messageTray.js#L1290
* @version 46
* @version 47
*/
export function getSystemSource(): Source;

0 comments on commit bf01e3c

Please sign in to comment.