Skip to content

Commit bea4307

Browse files
committed
Core - Add IWindowInfo.WindowName
Allows setting of the window_name property
1 parent 666a115 commit bea4307

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ public WindowInfo() { }
329329
public virtual int Width { get { throw null; } set { } }
330330
public virtual System.IntPtr WindowHandle { get { throw null; } set { } }
331331
public virtual bool WindowlessRenderingEnabled { get { throw null; } set { } }
332+
public virtual string WindowName { get { throw null; } set { } }
332333
public virtual int X { get { throw null; } set { } }
333334
public virtual int Y { get { throw null; } set { } }
334335
public void Dispose() { }

CefSharp.Core.Runtime/WindowInfo.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,18 @@ namespace CefSharp
147147
}
148148
}
149149

150+
virtual property String^ WindowName
151+
{
152+
String^ get()
153+
{
154+
return StringUtils::ToClr(_windowInfo->window_name);
155+
}
156+
void set(String^ value)
157+
{
158+
StringUtils::AssignNativeFromClr(_windowInfo->window_name, value);
159+
}
160+
}
161+
150162
virtual property bool WindowlessRenderingEnabled
151163
{
152164
bool get()

CefSharp.Core/WindowInfo.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ public IntPtr WindowHandle
9191
set { windowInfo.WindowHandle = value; }
9292
}
9393

94+
/// <inheritdoc/>
95+
public string WindowName
96+
{
97+
get { return windowInfo.WindowName; }
98+
set { windowInfo.WindowName = value; }
99+
}
100+
94101
/// <inheritdoc/>
95102
public void Dispose()
96103
{

CefSharp/IWindowInfo.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public interface IWindowInfo : IDisposable
6565
/// Handle for the new browser window. Only used with windowed rendering.
6666
/// </summary>
6767
IntPtr WindowHandle { get; set; }
68+
/// <summary>
69+
/// Window Name
70+
/// </summary>
71+
string WindowName { get; set; }
6872

6973
/// <summary>
7074
/// Create the browser as a child window.

0 commit comments

Comments
 (0)