Confirmed users
209
edits
Line 7: | Line 7: | ||
An application exposes its widget view via declaring details of widget in mainfest. | An application exposes its widget view via declaring details of widget in mainfest. | ||
{ | |||
name: "MyApp2000", | name: "MyApp2000", | ||
... | ... | ||
Line 15: | Line 15: | ||
"href": "/widget.html", | "href": "/widget.html", | ||
"description": "This is my cool widget", | "description": "This is my cool widget", | ||
"screenshot": "foo.jpg" | "screenshot": "foo.jpg", | ||
"locales": { | |||
"en-US": { | |||
"name":"MyApp2000 Widget", | |||
"description":"This is my cool widget", | |||
"screenshot": "foo_en-US.jpg" | |||
} | |||
} | |||
}, | }, | ||
"myotherwidget": { ... } | "myotherwidget": { ... } | ||
} | }, | ||
widgetPages: [ | widgetPages: [ | ||
"/widget.html", | "/widget.html", | ||
Line 24: | Line 31: | ||
"/some_other_page.html" | "/some_other_page.html" | ||
] | ] | ||
} | } | ||
Line 77: | Line 70: | ||
=== Localization of Widget Info === | === Localization of Widget Info === | ||
Similar to app's localization, the localization of widget | Similar to app's localization, the localization of widget MUST be embedded in its declaration. | ||
==Limited Browser API== | ==Limited Browser API== |