mediacapture-screen-share
mediacapture-screen-share copied to clipboard
Use same enum for or all include or exclude enums?
May I suggest we add a single enum for "include", "exclude" (not web exposed) and use it where needed?
Before:
enum SelfCapturePreferenceEnum {
"include",
"exclude"
};
enum SystemAudioPreferenceEnum {
"include",
"exclude"
};
enum SurfaceSwitchingPreferenceEnum {
"include",
"exclude"
};
enum MonitorTypeSurfacesEnum {
"include",
"exclude"
};
After:
enum DisplayMediaIncludeOrExclude { "include", "exclude" };
typedef DisplayMediaIncludeOrExclude SystemAudioPreferenceEnum;
typedef DisplayMediaIncludeOrExclude SelfCapturePreferenceEnum;
typedef DisplayMediaIncludeOrExclude SurfaceSwitchingPreferenceEnum;
typedef DisplayMediaIncludeOrExclude MonitorTypeSurfacesEnum;
If it's not Web-exposed, could it be used in the IDL files of UA implementations without being reflected by a spec change, perhaps?
@jan-ivar @youennf What do you think?