Skip to content

Commit

Permalink
Upgrade to electron v29.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tong committed Apr 12, 2024
1 parent 6aa3b11 commit 9fc90cf
Show file tree
Hide file tree
Showing 8 changed files with 439 additions and 285 deletions.
14 changes: 7 additions & 7 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"start": "electron ."
},
"devDependencies": {
"electron": "v29.2.0"
"electron": "v29.3.0"
}
}
650 changes: 374 additions & 276 deletions electron-api.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"description": "Type definitions for the electron framework",
"releasenote": "See CHANGELOG",
"version": "29.2.0",
"version": "29.3.0",
"contributors": [
"tong",
"fponticelli"
Expand Down
24 changes: 24 additions & 0 deletions src/electron/main/NavigationHistory.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package electron.main;
/**
@see https://electronjs.org/docs/api/navigation-history
**/
@:jsRequire("electron", "NavigationHistory") extern class NavigationHistory extends js.node.events.EventEmitter<electron.main.NavigationHistory> {
/**
The index of the current page, from which we would go back/forward or reload.
**/
function getActiveIndex():Int;
/**
* `url` string - The URL of the navigation entry at the given index.
* `title` string - The page title of the navigation entry at the given index.
If index is out of bounds (greater than history length or less than 0), null will be returned.
**/
function getEntryAtIndex(index:Int):Any;
/**
History length.
**/
function length():Int;
}
enum abstract NavigationHistoryEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
4 changes: 4 additions & 0 deletions src/electron/main/WebContents.hx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ package electron.main;
A `Session` used by this webContents.
**/
var session : electron.main.Session;
/**
A `NavigationHistory` used by this webContents.
**/
var navigationHistory : electron.main.NavigationHistory;
/**
A `WebContents` instance that might own this `WebContents`.
**/
Expand Down
24 changes: 24 additions & 0 deletions src/electron/remote/NavigationHistory.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package electron.remote;
/**
@see https://electronjs.org/docs/api/navigation-history
**/
@:jsRequire("electron", "remote.NavigationHistory") extern class NavigationHistory extends js.node.events.EventEmitter<electron.remote.NavigationHistory> {
/**
The index of the current page, from which we would go back/forward or reload.
**/
function getActiveIndex():Int;
/**
* `url` string - The URL of the navigation entry at the given index.
* `title` string - The page title of the navigation entry at the given index.
If index is out of bounds (greater than history length or less than 0), null will be returned.
**/
function getEntryAtIndex(index:Int):Any;
/**
History length.
**/
function length():Int;
}
enum abstract NavigationHistoryEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) from js.node.events.EventEmitter.Event<T> {

}
4 changes: 4 additions & 0 deletions src/electron/remote/WebContents.hx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ package electron.remote;
A `Session` used by this webContents.
**/
var session : electron.remote.Session;
/**
A `NavigationHistory` used by this webContents.
**/
var navigationHistory : electron.remote.NavigationHistory;
/**
A `WebContents` instance that might own this `WebContents`.
**/
Expand Down

0 comments on commit 9fc90cf

Please sign in to comment.