mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-14 15:28:57 +00:00
minor Navigation style changes
This commit is contained in:
@@ -24,7 +24,7 @@ const log = @import("../../log.zig");
|
||||
const Page = @import("../Page.zig");
|
||||
const Console = @import("Console.zig");
|
||||
const History = @import("History.zig");
|
||||
const Navigation = @import("../webapi/navigation/Navigation.zig");
|
||||
const Navigation = @import("navigation/Navigation.zig");
|
||||
const Crypto = @import("Crypto.zig");
|
||||
const CSS = @import("CSS.zig");
|
||||
const Navigator = @import("Navigator.zig");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2023-2024 Lightpanda (Selecy SAS)
|
||||
// Copyright (C) 2023-2025 Lightpanda (Selecy SAS)
|
||||
//
|
||||
// Francis Bouvier <francis@lightpanda.io>
|
||||
// Pierre Tachoire <pierre@lightpanda.io>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2023-2024 Lightpanda (Selecy SAS)
|
||||
// Copyright (C) 2023-2025 Lightpanda (Selecy SAS)
|
||||
//
|
||||
// Francis Bouvier <francis@lightpanda.io>
|
||||
// Pierre Tachoire <pierre@lightpanda.io>
|
||||
@@ -47,8 +47,6 @@ pub fn getPersisted(self: *PageTransitionEvent) bool {
|
||||
return self._persisted;
|
||||
}
|
||||
|
||||
const PageTransitionKind = enum { show, hide };
|
||||
|
||||
pub const JsApi = struct {
|
||||
pub const bridge = js.Bridge(PageTransitionEvent);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2023-2024 Lightpanda (Selecy SAS)
|
||||
// Copyright (C) 2023-2025 Lightpanda (Selecy SAS)
|
||||
//
|
||||
// Francis Bouvier <francis@lightpanda.io>
|
||||
// Pierre Tachoire <pierre@lightpanda.io>
|
||||
@@ -52,7 +52,7 @@ pub fn getState(self: *PopStateEvent, page: *Page) !?js.Value {
|
||||
return value;
|
||||
}
|
||||
|
||||
pub fn getUAVisualTransition(_: *PopStateEvent) bool {
|
||||
pub fn hasUAVisualTransition(_: *PopStateEvent) bool {
|
||||
// Not currently supported so we always return false;
|
||||
return false;
|
||||
}
|
||||
@@ -68,5 +68,5 @@ pub const JsApi = struct {
|
||||
|
||||
pub const constructor = bridge.constructor(PopStateEvent.init, .{});
|
||||
pub const state = bridge.accessor(PopStateEvent.getState, null, .{});
|
||||
pub const hasUAVisualTransition = bridge.accessor(PopStateEvent.getUAVisualTransition, null, .{});
|
||||
pub const hasUAVisualTransition = bridge.accessor(PopStateEvent.hasUAVisualTransition, null, .{});
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2023-2024 Lightpanda (Selecy SAS)
|
||||
// Copyright (C) 2023-2025 Lightpanda (Selecy SAS)
|
||||
//
|
||||
// Francis Bouvier <francis@lightpanda.io>
|
||||
// Pierre Tachoire <pierre@lightpanda.io>
|
||||
@@ -42,7 +42,7 @@ _current_navigation_kind: ?NavigationKind = null,
|
||||
|
||||
_index: usize = 0,
|
||||
// Need to be stable pointers, because Events can reference entries.
|
||||
_entries: std.ArrayListUnmanaged(*NavigationHistoryEntry) = .empty,
|
||||
_entries: std.ArrayList(*NavigationHistoryEntry) = .empty,
|
||||
_next_entry_id: usize = 0,
|
||||
|
||||
pub fn init(arena: std.mem.Allocator) Navigation {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2023-2024 Lightpanda (Selecy SAS)
|
||||
// Copyright (C) 2023-2025 Lightpanda (Selecy SAS)
|
||||
//
|
||||
// Francis Bouvier <francis@lightpanda.io>
|
||||
// Pierre Tachoire <pierre@lightpanda.io>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2023-2024 Lightpanda (Selecy SAS)
|
||||
// Copyright (C) 2023-2025 Lightpanda (Selecy SAS)
|
||||
//
|
||||
// Francis Bouvier <francis@lightpanda.io>
|
||||
// Pierre Tachoire <pierre@lightpanda.io>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2023-2024 Lightpanda (Selecy SAS)
|
||||
// Copyright (C) 2023-2025 Lightpanda (Selecy SAS)
|
||||
//
|
||||
// Francis Bouvier <francis@lightpanda.io>
|
||||
// Pierre Tachoire <pierre@lightpanda.io>
|
||||
|
||||
Reference in New Issue
Block a user