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

Unified Diff: chrome/test/data/webui/settings/test_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
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/test/data/webui/settings/zoom_levels_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js
diff --git a/chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js b/chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js
index dd9abed76a8fa03899e486cbb22933541f303d73..80ae5abea7842d2016624495ce5bb458b6846c99 100644
--- a/chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js
+++ b/chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js
@@ -50,6 +50,7 @@ var TestSiteSettingsPrefsBrowserProxy = function() {
settings.TestBrowserProxy.call(this, [
'fetchUsbDevices',
'fetchZoomLevels',
+ 'fetchZoomScope',
'getCookieDetails',
'getDefaultValueForContentType',
'getExceptionList',
@@ -63,12 +64,16 @@ var TestSiteSettingsPrefsBrowserProxy = function() {
'resetCategoryPermissionForOrigin',
'setCategoryPermissionForOrigin',
'setDefaultValueForContentType',
- 'setProtocolDefault'
+ 'setProtocolDefault',
+ 'setZoomScopeIsPerOrigin',
]);
/** @private {!SiteSettingsPref} */
this.prefs_ = prefsEmpty;
+ /** @private {boolean} */
+ this.zoomScopeIsPerOrigin_ = true;
+
/** @private {!Array<ZoomLevelEntry>} */
this.zoomList_ = [];
@@ -103,6 +108,14 @@ TestSiteSettingsPrefsBrowserProxy.prototype = {
/**
* Sets the prefs to use when testing.
+ * @param {boolean} zoomScopeIsPerOrigin The zoom scope to set.
+ */
+ setZoomScope: function(zoomScopeIsPerOrigin) {
+ this.zoomScopeIsPerOrigin_ = zoomScopeIsPerOrigin;
+ },
+
+ /**
+ * Sets the prefs to use when testing.
* @param {!Array<ZoomLevelEntry>} list The zoom list to set.
*/
setZoomList: function(list) {
@@ -247,6 +260,12 @@ TestSiteSettingsPrefsBrowserProxy.prototype = {
},
/** @override */
+ fetchZoomScope: function() {
+ cr.webUIListenerCallback('onZoomScopeChanged', this.zoomScopeIsPerOrigin_);
+ this.methodCalled('fetchZoomScope');
+ },
+
+ /** @override */
fetchZoomLevels: function() {
cr.webUIListenerCallback('onZoomLevelsChanged', this.zoomList_);
this.methodCalled('fetchZoomLevels');
@@ -263,6 +282,11 @@ TestSiteSettingsPrefsBrowserProxy.prototype = {
},
/** @override */
+ setZoomScopeIsPerOrigin: function(zoomScopeIsPerOrigin) {
+ this.methodCalled('setZoomScopeIsPerOrigin', [zoomScopeIsPerOrigin]);
+ },
+
+ /** @override */
removeZoomLevel: function(host) {
this.methodCalled('removeZoomLevel', [host]);
},
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/test/data/webui/settings/zoom_levels_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698