Add default zoom functionality to chrome.tabs Zoom API.
commit5448610da81a6438bdf2f1b0a1827c0287073f6f
authorwjmaclean <wjmaclean@chromium.org>
Thu, 2 Apr 2015 16:21:24 +0000 (2 09:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 2 Apr 2015 16:23:39 +0000 (2 16:23 +0000)
treef78877549d5da5c3007ffda1b5b78b8d5c465a92
parentd0d92bcc47b71914d1ff3040d40b63f206392cd8
Add default zoom functionality to chrome.tabs Zoom API.

This CL adds default zoom factor functionality to the tabs zoom api.

Tabs can now be set to the current default zoom via

setZoom(tabId, 0)

and the current default zoom level can be retrieved as a parameter
default_zoom_factor in the ZoomSettings structure returned by
getZoomSettings.

BUG=470550

Review URL: https://codereview.chromium.org/1051013002

Cr-Commit-Position: refs/heads/master@{#323505}
chrome/browser/extensions/api/tabs/tabs_api.cc
chrome/browser/extensions/api/tabs/tabs_test.cc
chrome/common/extensions/api/tabs.json
chrome/common/extensions/docs/examples/api/tabs/zoom/popup.html
chrome/common/extensions/docs/examples/api/tabs/zoom/popup.js