Package Torello.Browser.BrowserAPI
Class Browser.PermissionDescriptor
- java.lang.Object
-
- Torello.Browser.BaseType<Browser.PermissionDescriptor>
-
- Torello.Browser.BrowserAPI.Browser.PermissionDescriptor
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- Browser
public static class Browser.PermissionDescriptor extends BaseType<Browser.PermissionDescriptor> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in theBrowserdomain, which may be found within theBrowserAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dom-permissiondescriptor.
EXPERIMENTAL- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/BrowserAPI/Browser.java
- Open New Browser-Tab: Torello/Browser/BrowserAPI/Browser.java
File Size: 3,470 Bytes Line Count: 85 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: Browser$$PermissionDescriptor$$.java
- Open New Browser-Tab: Browser$$PermissionDescriptor$$.java
File Size: 10,747 Bytes Line Count: 245 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description BooleanallowWithoutGestureFor "fullscreen" permission, must specify allowWithoutGesture:true.BooleanallowWithoutSanitizationFor "clipboard" permission, may specify allowWithoutSanitization.StringnameName of permission.BooleanpanTiltZoomFor "camera" permission, may specify panTiltZoom.BooleansysexFor "midi" permission, may also specify sysex control.BooleanuserVisibleOnlyFor "push" permission, may specify userVisibleOnly.-
Fields inherited from class Torello.Browser.BaseType
domain, helperSingleton, isPresent, numFields
-
-
Constructor Summary
Constructors Constructor Description PermissionDescriptor(ReadOnlyList<Boolean> isPresent, String name, Boolean sysex, Boolean userVisibleOnly, Boolean allowWithoutSanitization, Boolean allowWithoutGesture, Boolean panTiltZoom)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static Browser.PermissionDescriptorfromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<Browser.PermissionDescriptor>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- See Also:
- Constant Field Values
-
name
public final java.lang.String name
Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.
-
sysex
public final java.lang.Boolean sysex
For "midi" permission, may also specify sysex control.
OPTIONAL
-
userVisibleOnly
public final java.lang.Boolean userVisibleOnly
For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.
OPTIONAL
-
allowWithoutSanitization
public final java.lang.Boolean allowWithoutSanitization
For "clipboard" permission, may specify allowWithoutSanitization.
OPTIONAL
-
allowWithoutGesture
public final java.lang.Boolean allowWithoutGesture
For "fullscreen" permission, must specify allowWithoutGesture:true.
OPTIONAL
-
panTiltZoom
public final java.lang.Boolean panTiltZoom
For "camera" permission, may specify panTiltZoom.
OPTIONAL
-
-
Constructor Detail
-
PermissionDescriptor
public PermissionDescriptor(ReadOnlyList<java.lang.Boolean> isPresent, java.lang.String name, java.lang.Boolean sysex, java.lang.Boolean userVisibleOnly, java.lang.Boolean allowWithoutSanitization, java.lang.Boolean allowWithoutGesture, java.lang.Boolean panTiltZoom)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static Browser.PermissionDescriptor fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<Browser.PermissionDescriptor> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-