This page describes changes that affect developers of JavaScript desktop gadgets. Google Desktop still has COM APIs, but we strongly encourage you to use JavaScript and the Gadget Designer instead. For information about changes in other releases, see Release Notes. For more information about the Desktop Gadget API, see Creating a Gadget and the Gadget API Reference.
JavaScript gadgets can now play audio clips. To support this, a property named audio has been added to the framework namespace. For more information on audio support, see the documentation for the following new objects and enumerations:
The framework.system.network and framework.system.network.wireless objects now provide more information.
online
, connectionType
, physicalMediaType
.
enumerateAvailableAccessPoints
, enumerationSupported
. connect()
, disconnect()
.The framework.system object now gives information about the system's BIOS, make, model, and currently running processes.
bios
, machine
, process
.getFileIcon()
, languageCode()
, localTimeToUniversalTime()
Some uses of collections are now deprecated.
In particular, you used to be able to write code like
options("foo") = "bar"
,
but now we strongly encourage using an accessor method
such as putValue
:
options.putValue("foo", "bar")
Similarly, you should no longer use code like
foo = options("foo")
.
Instead use a method such as getValue
:
foo = options.getValue("foo")
Also, instead of reading or writing the default value of an item
using options.defaultValue("foo")
,
you should use the new options
getDefaultValue
and putDefaultValue
methods.
The following methods have been added to the
options object:
getDefaultValue()
and
putDefaultValue()
.
We added three new methods to the
plugin
object
that's exposed to scripts:
plugin.ShowDetailsView()
,
plugin.CloseDetailsView()
,
plugin.ShowOptionsDialog()
.
We added two new events to the
view
object:
oncancel
and
onok
.
The following flags were added to the
Content Item Flags:
gddContentItemFlagDisplayAsIs
,
gddContentItemFlagHtml
,
gddContentItemFlagHidden
.
Three properties were added to the
edit
element:
multiline
,
passwordChar
, and
wordWrap
.