Dart Documentationchrome.src.common_expChromeObject

ChromeObject class

The abstract superclass of objects that can hold JsObject proxies.

class ChromeObject {
 final dynamic jsProxy;

 /**
  * Create a new instance of a `ChromeObject`, which creates and delegates to
  * a JsObject proxy.
  */
 ChromeObject() : jsProxy = new JsObject(context['Object']);

 /**
  * Create a new instance of a `ChromeObject`, which delegates to the given
  * JsObject proxy.
  */
 ChromeObject.fromProxy(this.jsProxy);

 JsObject toJs() => jsProxy;

 String toString() => jsProxy.toString();
}

Subclasses

AcceptInfo, AcceptOption, AccountInfo, AdapterState, Alarm, AlarmCreateInfo, AppWindow, ArrayBuffer, BluetoothDevice, Bounds, ChannelIdResult, ChooseEntryOptions, ChromeEvent, ChromeSetting, ConnectOptions, ConnectionHandle, ContextMenusCreateParams, ContextMenusUpdateParams, ControlSignalOptions, ControlTransferInfo, Coordinates, CpuInfo, CrDirectoryReader, CrEntry, CrFileSystem, CrMetadata, CreateInfo, CreateOptions, CreateWindowOptions, Device, DeviceProperties, DisconnectOptions, EndpointDescriptor, EnumerateDevicesAndRequestAccessOptions, EnumerateDevicesOptions, FileInfo, FileStatusInfo, GenericTransferInfo, GetDevicesOptions, GetProfilesOptions, GetServicesOptions, InjectDetails, InputDeviceInfo, InterfaceDescriptor, InvalidTokenDetails, IsochronousTransferInfo, LastErrorRuntime, LaunchData, LaunchItem, LocalMediaStream, Location, MediaFileSystemMetadata, MediaFileSystemsDetails, MemoryInfo, Message, MessageSender, NetworkInterface, NotificationBitmap, NotificationButton, NotificationItem, NotificationOptions, OnClickData, OpenInfo, OpenOptions, OutOfBandPairingData, OutputDeviceInfo, Permissions, Port, Profile, ReadOptions, RecvFromInfo, Rule, RuntimeConnectParams, RuntimeSendMessageParams, SerialReadInfo, SerialWriteInfo, ServiceInfo, ServiceRecord, SetOutOfBandPairingDataOptions, Socket, SocketInfo, SocketReadInfo, SocketWriteInfo, StartDiscoveryOptions, StorageArea, StorageAvailableCapacityInfo, StorageChange, StorageInfo, StorageUnitInfo, Tab, TabsCaptureVisibleTabParams, TabsConnectParams, TabsCreateParams, TabsHighlightParams, TabsMoveParams, TabsQueryParams, TabsReloadParams, TabsUpdateParams, TokenDetails, TransferResultInfo, TtsEvent, TtsSpeakParams, TtsVoice, TypesClearParams, TypesGetParams, TypesSetParams, UrlFilter, WatchLocationRequestInfo, WebAuthFlowDetails, Window, WindowsCreateParams, WindowsGetAllParams, WindowsGetCurrentParams, WindowsGetLastFocusedParams, WindowsGetParams, WindowsUpdateParams, WriteOptions

Constructors

new ChromeObject() #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

ChromeObject() : jsProxy = new JsObject(context['Object']);

new ChromeObject.fromProxy(jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

ChromeObject.fromProxy(this.jsProxy);

Properties

final jsProxy #

final dynamic jsProxy

Methods

JsObject toJs() #

JsObject toJs() => jsProxy;

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();