Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Review: Web Notification #3186

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add enum CoreWebView2TextDirectionKinds to c# API details
  • Loading branch information
peiche-jessica committed Dec 13, 2022
commit cbd9d614b9340e2cd267e58cd01f4922823eb019
8 changes: 6 additions & 2 deletions specs/WebNotification.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,12 @@ interface ICoreWebView2Notification : IUnknown {
```csharp
namespace Microsoft.Web.WebView2.Core
{
runtimeclass CoreWebView2NotificationReceivedEventArgs;
runtimeclass CoreWebView2Notification;
enum CoreWebView2TextDirectionKinds
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Default" means the webview has a reasonable (probably correct) direction to apply for most cases, right?

Windows.UI.Core CoreWindowFlowDirection and Windows.UI.Xaml FlowDirection don't have "default", just the rtl+ltr values, but I think including Default makes sense here since most users of the enum won't care to be specifying this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure ref docs for this (above) correctly document this.

Also rename 'Default' to 'Auto'.

{
Default = 0,
LeftToRight = 1,
RightToLeft = 2,
};
runtimeclass CoreWebView2NotificationAction
{
// ICoreWebView2NotificationAction members
Expand Down