Skip to content

Commit

Permalink
[dotnet] [bidi] Simplify browsing context to be just context
Browse files Browse the repository at this point in the history
Following to spec, it is implicitly clear that Context is exactly BrowsingCoontext. For RealmContext and UserContext we use fully qualified name.
  • Loading branch information
nvborisenko committed Sep 14, 2024
1 parent b778ad5 commit 3e02303
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dotnet/src/webdriver/BiDi/BiDi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ public static async Task<BiDi> ConnectAsync(string url)
return bidi;
}

public Task<Modules.BrowsingContext.BrowsingContext> CreateBrowsingContextAsync(Modules.BrowsingContext.BrowsingContextType type, Modules.BrowsingContext.CreateOptions? options = null)
public Task<Modules.BrowsingContext.BrowsingContext> CreateContextAsync(Modules.BrowsingContext.BrowsingContextType type, Modules.BrowsingContext.CreateOptions? options = null)
{
return BrowsingContextModule.CreateAsync(type, options);
}

public Task<IReadOnlyList<Modules.BrowsingContext.BrowsingContextInfo>> GetBrowsingContextTreeAsync(Modules.BrowsingContext.GetTreeOptions? options = null)
public Task<IReadOnlyList<Modules.BrowsingContext.BrowsingContextInfo>> GetTreeAsync(Modules.BrowsingContext.GetTreeOptions? options = null)
{
return BrowsingContextModule.GetTreeAsync(options);
}
Expand All @@ -82,22 +82,22 @@ public async ValueTask DisposeAsync()
_transport?.Dispose();
}

public Task<Subscription> OnBrowsingContextCreatedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
public Task<Subscription> OnContextCreatedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
{
return BrowsingContextModule.OnContextCreatedAsync(handler, options);
}

public Task<Subscription> OnBrowsingContextCreatedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
public Task<Subscription> OnContextCreatedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
{
return BrowsingContextModule.OnContextCreatedAsync(handler, options);
}

public Task<Subscription> OnBrowsingContextDestroyedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
public Task<Subscription> OnContextDestroyedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
{
return BrowsingContextModule.OnContextDestroyedAsync(handler, options);
}

public Task<Subscription> OnBrowsingContextDestroyedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
public Task<Subscription> OnContextDestroyedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
{
return BrowsingContextModule.OnContextDestroyedAsync(handler, options);
}
Expand Down

0 comments on commit 3e02303

Please sign in to comment.