My favorites | English | Sign in

Google Desktop APIs (Labs)

Release Notes (5.0)

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.

Summary of Changes

New Feature: Audio Support

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:

Back to top

Networking Enhancements

The framework.system.network and framework.system.network.wireless objects now provide more information.

Back to top

More System Information

The framework.system object now gives information about the system's BIOS, make, model, and currently running processes.

Back to top

Deprecated Usage: Collections

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.

New options Methods

The following methods have been added to the options object: getDefaultValue() and putDefaultValue().

Back to top

Miscellaneous

New plugin Methods

We added three new methods to the plugin object that's exposed to scripts: plugin.ShowDetailsView(), plugin.CloseDetailsView(), plugin.ShowOptionsDialog().

New view Events

We added two new events to the view object: oncancel and onok.

More Content Item Flags

The following flags were added to the Content Item Flags: gddContentItemFlagDisplayAsIs, gddContentItemFlagHtml, gddContentItemFlagHidden.

New edit Properties

Three properties were added to the edit element: multiline, passwordChar, and wordWrap.

Back to top