[mediacapture-screen-share] Use a single enum for or all (#277)

beaufortfrancois has just created a new issue for https://github.com/w3c/mediacapture-screen-share:

== Use a single enum for or all  ==
May I suggest we use single `Enum` for "include", "exclude" and use it where needed?

Before:
```webidl
enum SelfCapturePreferenceEnum {
  "include",
  "exclude"
};
enum SystemAudioPreferenceEnum {
  "include",
  "exclude"
};
enum SurfaceSwitchingPreferenceEnum {
  "include",
  "exclude"
};
enum MonitorTypeSurfacesEnum {
  "include",
  "exclude"
};
```
```webidl
enum DisplayMediaIncludeOrExclude { "include", "exclude" };

typedef DisplayMediaIncludeOrExclude SystemAudioPreferenceEnum;
typedef DisplayMediaIncludeOrExclude SelfCapturePreferenceEnum;
typedef DisplayMediaIncludeOrExclude SurfaceSwitchingPreferenceEnum;
typedef DisplayMediaIncludeOrExclude MonitorTypeSurfacesEnum;
```

Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/277 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 1 September 2023 14:58:55 UTC