Files
speckle-sharp-connectors/DUI3/Speckle.Connectors.DUI/Bridge/IBrowserScriptExecutor.cs
T
Adam Hathcock 4e85a6cccc feat(Revit 2026) Add projects and fixes for Revit 2026 usage (#736)
* add base revit 26 projects

* fix up cef replacement

* fix up revit 2026 events

* add revit events

* fixes for revit 26

* use right version of DI for Revit26

* add Revit26 to local

* fmt

* use visual studio to fix slns

* Add revit to installer constants

* move webview stuff to 2026 specific area to avoid build issues

* update locks

* Revit 2026 wants to invoke scripts with RevitTask.  Abstract RevitTask

* fmt

* fix project copying

* use 3.2 SDK

* fix build

* Revit 2025 is now CEF vulnerable

* add SendProgress to not overload revit context

* update Revit 26 lock files

* update locks

---------

Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com>
2025-05-14 12:55:00 +03:00

20 lines
696 B
C#

namespace Speckle.Connectors.DUI.Bridge;
public interface IBrowserScriptExecutor
{
/// <exception cref="InvalidOperationException">thrown when <see cref="IsBrowserInitialized"/> is <see langword="false"/></exception>
/// <param name="script">The (constant string) script to execute on the browser</param>
void ExecuteScript(string script);
void SendProgress(string script);
bool IsBrowserInitialized { get; }
object BrowserElement { get; }
/// <summary>
/// Action that opens up the developer tools of the respective browser we're using. While webview2 allows for "right click, inspect", cefsharp does not - hence the need for this.
/// </summary>
void ShowDevTools();
}