Skip to content

Commit 3e02303

Browse files
committed
[dotnet] [bidi] Simplify browsing context to be just context
Following to spec, it is implicitly clear that Context is exactly BrowsingCoontext. For RealmContext and UserContext we use fully qualified name.
1 parent b778ad5 commit 3e02303

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dotnet/src/webdriver/BiDi/BiDi.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ public static async Task<BiDi> ConnectAsync(string url)
6060
return bidi;
6161
}
6262

63-
public Task<Modules.BrowsingContext.BrowsingContext> CreateBrowsingContextAsync(Modules.BrowsingContext.BrowsingContextType type, Modules.BrowsingContext.CreateOptions? options = null)
63+
public Task<Modules.BrowsingContext.BrowsingContext> CreateContextAsync(Modules.BrowsingContext.BrowsingContextType type, Modules.BrowsingContext.CreateOptions? options = null)
6464
{
6565
return BrowsingContextModule.CreateAsync(type, options);
6666
}
6767

68-
public Task<IReadOnlyList<Modules.BrowsingContext.BrowsingContextInfo>> GetBrowsingContextTreeAsync(Modules.BrowsingContext.GetTreeOptions? options = null)
68+
public Task<IReadOnlyList<Modules.BrowsingContext.BrowsingContextInfo>> GetTreeAsync(Modules.BrowsingContext.GetTreeOptions? options = null)
6969
{
7070
return BrowsingContextModule.GetTreeAsync(options);
7171
}
@@ -82,22 +82,22 @@ public async ValueTask DisposeAsync()
8282
_transport?.Dispose();
8383
}
8484

85-
public Task<Subscription> OnBrowsingContextCreatedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
85+
public Task<Subscription> OnContextCreatedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
8686
{
8787
return BrowsingContextModule.OnContextCreatedAsync(handler, options);
8888
}
8989

90-
public Task<Subscription> OnBrowsingContextCreatedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
90+
public Task<Subscription> OnContextCreatedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
9191
{
9292
return BrowsingContextModule.OnContextCreatedAsync(handler, options);
9393
}
9494

95-
public Task<Subscription> OnBrowsingContextDestroyedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
95+
public Task<Subscription> OnContextDestroyedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
9696
{
9797
return BrowsingContextModule.OnContextDestroyedAsync(handler, options);
9898
}
9999

100-
public Task<Subscription> OnBrowsingContextDestroyedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
100+
public Task<Subscription> OnContextDestroyedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
101101
{
102102
return BrowsingContextModule.OnContextDestroyedAsync(handler, options);
103103
}

0 commit comments

Comments
 (0)