Commit f58ed8dd authored by wjmaclean's avatar wjmaclean Committed by Commit bot

Change JS parameter to camel case.

Changes the parameter default_zoom_factor to appear as defaultZoomFactor
to javascript.

BUG=477559

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

Cr-Commit-Position: refs/heads/master@{#325477}
parent 708c18ce
......@@ -792,7 +792,7 @@ testing::AssertionResult ExtensionTabsZoomTest::RunGetDefaultZoom(
if (!get_zoom_settings_result)
return testing::AssertionFailure() << "no result";
if (!get_zoom_settings_result->GetDouble("default_zoom_factor",
if (!get_zoom_settings_result->GetDouble("defaultZoomFactor",
default_zoom_factor)) {
return testing::AssertionFailure()
<< "default zoom factor not found in result";
......
......@@ -79,9 +79,8 @@
"description": "Defines whether zoom changes will persist for the page's origin, or only take effect in this tab; defaults to <code>per-origin</code> when in <code>automatic</code> mode, and <code>per-tab</code> otherwise.",
"optional": true
},
"default_zoom_factor": {
"defaultZoomFactor": {
"type": "number",
"name": "defaultZoomFactor",
"optional": true,
"description": "Used to return the default zoom level for the current tab in calls to tabs.getZoomSettings."
}
......
......@@ -51,7 +51,7 @@ document.addEventListener('DOMContentLoaded', function() {
}
var percentDefaultZoom =
parseFloat(zoomSettings.default_zoom_factor) * 100;
parseFloat(zoomSettings.defaultZoomFactor) * 100;
document.getElementById('defaultLabel').textContent =
'Default: ' + percentDefaultZoom.toFixed(1) + '%';
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment