mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-14 15:28:57 +00:00
Event Options dont need to be pub
This commit is contained in:
@@ -30,7 +30,7 @@ const CompositionEventOptions = struct {
|
||||
data: ?[]const u8 = null,
|
||||
};
|
||||
|
||||
pub const Options = Event.inheritOptions(CompositionEvent, CompositionEventOptions);
|
||||
const Options = Event.inheritOptions(CompositionEvent, CompositionEventOptions);
|
||||
|
||||
pub fn init(typ: []const u8, opts_: ?Options, page: *Page) !*CompositionEvent {
|
||||
const opts = opts_ orelse Options{};
|
||||
|
||||
@@ -33,7 +33,7 @@ const CustomEventOptions = struct {
|
||||
detail: ?js.Object = null,
|
||||
};
|
||||
|
||||
pub const Options = Event.inheritOptions(CustomEvent, CustomEventOptions);
|
||||
const Options = Event.inheritOptions(CustomEvent, CustomEventOptions);
|
||||
|
||||
pub fn init(typ: []const u8, opts_: ?Options, page: *Page) !*CustomEvent {
|
||||
const arena = page.arena;
|
||||
|
||||
@@ -41,7 +41,7 @@ pub const ErrorEventOptions = struct {
|
||||
@"error": ?js.Object = null,
|
||||
};
|
||||
|
||||
pub const Options = Event.inheritOptions(ErrorEvent, ErrorEventOptions);
|
||||
const Options = Event.inheritOptions(ErrorEvent, ErrorEventOptions);
|
||||
|
||||
pub fn init(typ: []const u8, opts_: ?Options, page: *Page) !*ErrorEvent {
|
||||
const arena = page.arena;
|
||||
|
||||
@@ -35,7 +35,7 @@ const MessageEventOptions = struct {
|
||||
source: ?*Window = null,
|
||||
};
|
||||
|
||||
pub const Options = Event.inheritOptions(MessageEvent, MessageEventOptions);
|
||||
const Options = Event.inheritOptions(MessageEvent, MessageEventOptions);
|
||||
|
||||
pub fn init(typ: []const u8, opts_: ?Options, page: *Page) !*MessageEvent {
|
||||
const opts = opts_ orelse Options{};
|
||||
|
||||
@@ -35,7 +35,7 @@ const NavigationCurrentEntryChangeEventOptions = struct {
|
||||
navigationType: ?[]const u8 = null,
|
||||
};
|
||||
|
||||
pub const Options = Event.inheritOptions(
|
||||
const Options = Event.inheritOptions(
|
||||
NavigationCurrentEntryChangeEvent,
|
||||
NavigationCurrentEntryChangeEventOptions,
|
||||
);
|
||||
|
||||
@@ -32,7 +32,7 @@ const PageTransitionEventOptions = struct {
|
||||
persisted: ?bool = false,
|
||||
};
|
||||
|
||||
pub const Options = Event.inheritOptions(PageTransitionEvent, PageTransitionEventOptions);
|
||||
const Options = Event.inheritOptions(PageTransitionEvent, PageTransitionEventOptions);
|
||||
|
||||
pub fn init(typ: []const u8, _opts: ?Options, page: *Page) !*PageTransitionEvent {
|
||||
const opts = _opts orelse Options{};
|
||||
|
||||
@@ -32,7 +32,7 @@ const PopStateEventOptions = struct {
|
||||
state: ?[]const u8 = null,
|
||||
};
|
||||
|
||||
pub const Options = Event.inheritOptions(PopStateEvent, PopStateEventOptions);
|
||||
const Options = Event.inheritOptions(PopStateEvent, PopStateEventOptions);
|
||||
|
||||
pub fn init(typ: []const u8, _opts: ?Options, page: *Page) !*PopStateEvent {
|
||||
const opts = _opts orelse Options{};
|
||||
|
||||
@@ -31,7 +31,7 @@ const ProgressEventOptions = struct {
|
||||
lengthComputable: bool = false,
|
||||
};
|
||||
|
||||
pub const Options = Event.inheritOptions(ProgressEvent, ProgressEventOptions);
|
||||
const Options = Event.inheritOptions(ProgressEvent, ProgressEventOptions);
|
||||
|
||||
pub fn init(typ: []const u8, _opts: ?Options, page: *Page) !*ProgressEvent {
|
||||
const opts = _opts orelse Options{};
|
||||
|
||||
Reference in New Issue
Block a user