Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js

Issue 2630583002: Add setting to isolate zoom changes by default. (Closed)
Patch Set: ... and tell closure_compiler. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js
diff --git a/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js b/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js
index 651257799ea56235bdc92ae0301a28b2e7da055e..840c835abd2fc8eac5eb4d75e981b6911a7f6e3d 100644
--- a/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js
+++ b/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js
@@ -270,12 +270,24 @@ cr.define('settings', function() {
updateIncognitoStatus: function() {},
/**
+ * Fetches the zoom scope setting. Returns the result via
+ * onZoomScopeChanged.
+ */
+ fetchZoomScope: function() {},
+
+ /**
* Fetches the currently defined zoom levels for sites. Returns the results
* via onZoomLevelsChanged.
*/
fetchZoomLevels: function() {},
/**
+ * Sets whether the zoom scope is per-origin or per-tab.
+ * @param {boolean} zoomScopeIsPerOrigin The zoom scope setting.
+ */
+ setZoomScopeIsPerOrigin: function(zoomScopeIsPerOrigin) {},
+
+ /**
* Removes a zoom levels for a given host.
* @param {string} host The host to remove zoom levels for.
*/
@@ -408,11 +420,21 @@ cr.define('settings', function() {
},
/** @override */
+ fetchZoomScope: function() {
+ chrome.send('fetchZoomScope');
+ },
+
+ /** @override */
fetchZoomLevels: function() {
chrome.send('fetchZoomLevels');
},
/** @override */
+ setZoomScopeIsPerOrigin: function(zoomScopeIsPerOrigin) {
+ chrome.send('setZoomScopeIsPerOrigin', [zoomScopeIsPerOrigin]);
+ },
+
+ /** @override */
removeZoomLevel: function(host) {
chrome.send('removeZoomLevel', [host]);
},

Powered by Google App Engine
This is Rietveld 408576698