Package Torello.Browser
Enum Domains
- java.lang.Object
-
- java.lang.Enum<Domains>
-
- Torello.Browser.Domains
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Domains>
public enum Domains extends java.lang.Enum<Domains>
A simple way of representing the various Browser Domains offered by the Remote Browser. Protocol. Instances of thisenumare attched to each and everyBrowserEventwhich is generated & propagated by the browser.
Hi-Lited Source-Code:- View Here: Torello/Browser/Domains.java
- Open New Browser-Tab: Torello/Browser/Domains.java
File Size: 15,931 Bytes Line Count: 476 '\n' Characters Found
-
-
Enum Constant Summary
Browser API Enum Constants Enum Constant AccessibilityAnimationAuditsAutofillBackgroundServiceBluetoothEmulationBrowserCacheStorageCastConsoleCSSDeviceAccessDeviceOrientationDOMDOMDebuggerDOMSnapshotDOMStorageEmulationEventBreakpointsExtensionsFedCmFetchFileSystemHeadlessExperimentalIndexedDBInputInspectorIOLayerTreeLogMediaMemoryNetworkOverlayPagePerformancePerformanceTimelinePreloadPWASecurityServiceWorkerStorageSystemInfoTargetTetheringTracingWebAudioWebAuthnJavaScript API Enum Constants Enum Constant DebuggerHeapProfilerProfilerRunTimeSchema
-
Field Summary
Static Constants: Boolean values assigned to the Domain-Flag Modifier and Type Field static booleanBrowserAPIstatic booleanJSAPIInstance Field: Domain-Flag which identifies which Domain a Constant belongs to Modifier and Type Field booleanbrowserAPI_Or_JSAPI
-
Method Summary
Convert String to Enum Constant Modifier and Type Method static DomainsvalueOf(String name)List all Enum Constants Modifier and Type Method static Domains[]values()More Methods Modifier and Type Method Class<?>getDomainClass()StringgetPackageName()StringtoFullPackageName()
-
-
-
Enum Constant Detail
-
Accessibility
public static final Domains Accessibility
[No Description provided by Google]- See Also:
Accessibility
-
Animation
-
Audits
-
Autofill
-
BackgroundService
public static final Domains BackgroundService
Defines events for background web platform features.- See Also:
BackgroundService
-
BluetoothEmulation
public static final Domains BluetoothEmulation
This domain allows configuring virtual Bluetooth devices to test the web-bluetooth API.- See Also:
BluetoothEmulation
-
Browser
-
CSS
public static final Domains CSS
This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated `id` used in subsequent operations on the related object. Each object type has a specific `id` structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the `get*ForNode()` calls (which accept a DOM node id). A client can also keep track of stylesheets via the `styleSheetAdded`/`styleSheetRemoved` events and subsequently load the required stylesheet contents using the `getStyleSheet[Text]()` methods.- See Also:
CSS
-
CacheStorage
public static final Domains CacheStorage
[No Description provided by Google]- See Also:
CacheStorage
-
Cast
-
DOM
public static final Domains DOM
This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an `id`. This `id` can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client. Note that `iframe` owner elements will return corresponding document elements as their child nodes.- See Also:
DOM
-
DOMDebugger
public static final Domains DOMDebugger
DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.- See Also:
DOMDebugger
-
DOMSnapshot
public static final Domains DOMSnapshot
This domain facilitates obtaining document snapshots with DOM, layout, and style information.- See Also:
DOMSnapshot
-
DOMStorage
public static final Domains DOMStorage
Query and modify DOM storage.- See Also:
DOMStorage
-
DeviceAccess
public static final Domains DeviceAccess
[No Description provided by Google]- See Also:
DeviceAccess
-
DeviceOrientation
public static final Domains DeviceOrientation
[No Description provided by Google]- See Also:
DeviceOrientation
-
Emulation
-
EventBreakpoints
public static final Domains EventBreakpoints
EventBreakpoints permits setting JavaScript breakpoints on operations and events occurring in native code invoked from JavaScript. Once breakpoint is hit, it is reported through Debugger domain, similarly to regular breakpoints being hit.- See Also:
EventBreakpoints
-
Extensions
public static final Domains Extensions
Defines commands and events for browser extensions.- See Also:
Extensions
-
FedCm
-
Fetch
-
FileSystem
public static final Domains FileSystem
[No Description provided by Google]- See Also:
FileSystem
-
HeadlessExperimental
public static final Domains HeadlessExperimental
This domain provides experimental commands only supported in headless mode.- See Also:
HeadlessExperimental
-
IO
-
IndexedDB
-
Input
-
Inspector
-
LayerTree
-
Log
-
Media
-
Memory
-
Network
-
Overlay
-
PWA
-
Page
-
Performance
public static final Domains Performance
[No Description provided by Google]- See Also:
Performance
-
PerformanceTimeline
public static final Domains PerformanceTimeline
Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.- See Also:
PerformanceTimeline
-
Preload
-
Security
-
ServiceWorker
public static final Domains ServiceWorker
[No Description provided by Google]- See Also:
ServiceWorker
-
Storage
-
SystemInfo
public static final Domains SystemInfo
The SystemInfo domain defines methods and events for querying low-level system information.- See Also:
SystemInfo
-
Target
-
Tethering
-
Tracing
-
WebAudio
-
WebAuthn
-
Console
-
Debugger
-
HeapProfiler
public static final Domains HeapProfiler
[No Description provided by Google]- See Also:
HeapProfiler
-
Profiler
-
RunTime
public static final Domains RunTime
RunTime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.- See Also:
RunTime
-
Schema
-
-
Field Detail
-
BrowserAPI
public static final boolean BrowserAPI
TRUEindicates that a constant is a member of the JavaScript API- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
public static final boolean BrowserAPI = true;
-
JSAPI
public static final boolean JSAPI
FALSEindicates that a constant is a member of the Browser API- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
public static final boolean JSAPI = false;
-
browserAPI_Or_JSAPI
public final boolean browserAPI_Or_JSAPI
WhenTRUE, thisDomainis amongst the Browser-APIDomains. WhenFALSE, this is a member of the JavaScript-APIDomains.- Code:
- Exact Field Declaration Expression:
public final boolean browserAPI_Or_JSAPI;
-
-
Method Detail
-
values
public static Domains[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Domains c : Domains.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Domains valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toFullPackageName
public java.lang.String toFullPackageName()
Geerates a Full-Path Class-Name, as aStringfor the Domain that is represented this Enum-Constant. If'this'Enum-Constant wereAnimation, this method would return:"Torello.Browser.BrowserAPI.Animation"- Code:
- Exact Method Body:
return "Torello.Browser." + (this.browserAPI_Or_JSAPI ? "BrowserAPI" : "JavaScriptAPI") + '.' + this.name();
-
getPackageName
public java.lang.String getPackageName()
Generates the Package-Name for the API in which this Domain resides. If'this'Enum-Constant wereAnimation, this method would return:"Torello.Browser.BrowserAPI"- Code:
- Exact Method Body:
return "Torello.Browser." + (this.browserAPI_Or_JSAPI ? "BrowserAPI" : "JavaScriptAPI");
-
getDomainClass
public java.lang.Class<?> getDomainClass()
- Code:
- Exact Method Body:
if (this.domainClass != null) return this.domainClass; try { this.domainClass = Class.forName(this.toFullPackageName()); if (this.domainClass == null) throw new DomainEnumError( "Class.forName(...) returned null for Domain Class:\n" + this.toFullPackageName() ); return this.domainClass; } catch (ClassNotFoundException e) { throw new DomainEnumError( "Unable to load the Domain Class using Class.forName(...):\n" + this.toFullPackageName(), e ); } catch (LinkageError e) { throw new DomainEnumError( "The Domain Class was found, but Java could not load/link/initialize it:\n" + this.toFullPackageName(), e ); } catch (SecurityException e) { throw new DomainEnumError( "A SecurityManager prevented loading the Domain Class:\n" + this.toFullPackageName(), e ); }
-
-