WebAPI/BrowserAPI: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 38: Line 38:
|-
|-
|getScreenshot || P1 || || IN PROGRESS
|getScreenshot || P1 || || IN PROGRESS
|-
|getHeight || || {{bug|757859}} || NOT STARTED
|-
|getWIDTH || || {{bug|757859}} || NOT STARTED
|}
|}


Line 66: Line 70:
|-
|-
|close || P1 || {{bug|742944}} || IN PROGRESS
|close || P1 || {{bug|742944}} || IN PROGRESS
|-|securitychange || P1 || || NOT STARTED
|-
|securitychange || P1 || || NOT STARTED
|-
|resize || || {{bug|757859}} || NOT STARTED
|}
|}


Line 124: Line 131:




'''getThumbnail(callback)'''
'''getScreenshot(callback)'''
 
: Generates a screenshot of the content currently displayed in the browser element. The screenshot should be returned to the callback as a binary blob, in addition to the URL it corresponds to. This could be used by a browser app to save visual bookmark or history information or as visual information to help in switching between tabs.
 
'''getWidth(callback)'''


: Generates a thumbnail of the content currently displayed in the browser element. The thumbnail should be returned to the callback as a binary blob, in addition to the URL it corresponds to. This could be used by a browser app to save visual bookmark or history information or as visual information to help in switching between tabs.
: Gets the width of the current browser content, returned as an integer in the provided callback.
 
'''getHeight(callback)'''
 
: Gets the height of the current browser content, returned as an integer in the provided callback.


== Events ==
== Events ==
Line 178: Line 193:


: Indicates that the security status (secure or not) of a web page changed. Not sure how this should work, should we provide all the security details (e.g. SSL or not, certificate) in the event payload or add a getSecurityInfo() method for this?
: Indicates that the security status (secure or not) of a web page changed. Not sure how this should work, should we provide all the security details (e.g. SSL or not, certificate) in the event payload or add a getSecurityInfo() method for this?
'''resize'''
: Indicates that the browser was resized. Not sure what data should be included in the event payload.


== Other Features ==
== Other Features ==
Confirmed users
394

edits