Skip to content

Commit

Permalink
Merge pull request #118 from tryphotino/debug
Browse files Browse the repository at this point in the history
Debug
  • Loading branch information
MikeYeager authored Feb 3, 2023
2 parents efe23e0 + b0ff5b0 commit e392136
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -341,3 +341,5 @@ healthchecksdb

.vscode
.DS_Store
/Photino.NET/Properties/launchSettings.json

2 changes: 1 addition & 1 deletion Photino.NET/Photino.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</Target>

<ItemGroup>
<PackageReference Include="Photino.Native" Version="2.2.3" />
<PackageReference Include="Photino.Native" Version="2.3.2" />
</ItemGroup>

</Project>
3 changes: 2 additions & 1 deletion Photino.NET/PhotinoDllImports.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public partial class PhotinoWindow


//SET
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, SetLastError = true, CharSet = CharSet.Auto)] static extern void Photino_setWebView2RuntimePath_win32 (IntPtr instance, string webView2RuntimePath);
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, SetLastError = true, CharSet = CharSet.Auto)] static extern void Photino_setWebView2RuntimePath_win32(IntPtr instance, string webView2RuntimePath);
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, SetLastError = true)] static extern void Photino_SetContextMenuEnabled(IntPtr instance, bool enabled);
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, SetLastError = true)] static extern void Photino_SetDevToolsEnabled(IntPtr instance, bool enabled);
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, SetLastError = true)] static extern void Photino_SetFullScreen(IntPtr instance, bool fullScreen);
Expand All @@ -66,6 +66,7 @@ public partial class PhotinoWindow

//MISC
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, SetLastError = true)] static extern void Photino_Center(IntPtr instance);
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, SetLastError = true)] static extern void Photino_ClearBrowserAutoFill(IntPtr instance);
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, SetLastError = true, CharSet = CharSet.Auto)] static extern void Photino_SendWebMessage(IntPtr instance, string message);
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, SetLastError = true, CharSet = CharSet.Auto)] static extern void Photino_ShowMessage(IntPtr instance, string title, string body, uint type);
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, SetLastError = true, CharSet = CharSet.Auto)] static extern void Photino_ShowNotification(IntPtr instance, string title, string body);
Expand Down
10 changes: 10 additions & 0 deletions Photino.NET/PhotinoWindow.NET.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,16 @@ public PhotinoWindow Win32SetWebView2Path(string data)
return this;
}

public PhotinoWindow ClearBrowserAutoFill()
{
if (IsWindowsPlatform)
Invoke(() => Photino_ClearBrowserAutoFill(_nativeInstance));
else
Log("ClearBrowserAutoFill is only supported on the Windows platform");

return this;
}

//NON-FLUENT METHODS - CAN ONLY BE CALLED AFTER WINDOW IS INITIALIZED
//ONE OF THESE 2 METHODS *MUST* BE CALLED TO CREATE THE WINDOW

Expand Down

0 comments on commit e392136

Please sign in to comment.