From eb17f4ab37cd47a12f97f0ab37b92d5297bd6743 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 18 Oct 2015 10:53:49 +0100 Subject: Implement basic browsing context name property --- javascript/duktape/Window.bnd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'javascript') diff --git a/javascript/duktape/Window.bnd b/javascript/duktape/Window.bnd index af62eb711..a6355fb2c 100644 --- a/javascript/duktape/Window.bnd +++ b/javascript/duktape/Window.bnd @@ -116,3 +116,19 @@ getter Window::navigator() } return 1; %} + +getter Window::name() +%{ + const char *name; + browser_window_get_name(priv->win, &name); + duk_push_string(ctx, name); + return 1; +%} + +setter Window::name() +%{ + const char *name; + name = duk_to_string(ctx, -1); + browser_window_set_name(priv->win, name); + return 0; +%} -- cgit v1.2.3