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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview A helper object used from the "Site Settings" section to 6 * @fileoverview A helper object used from the "Site Settings" section to
7 * interact with the content settings prefs. 7 * interact with the content settings prefs.
8 */ 8 */
9 9
10 /** 10 /**
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 */ 263 */
264 removeUsbDevice: function(origin, embeddingOrigin, usbDevice) {}, 264 removeUsbDevice: function(origin, embeddingOrigin, usbDevice) {},
265 265
266 /** 266 /**
267 * Fetches the incognito status of the current profile (whether an icognito 267 * Fetches the incognito status of the current profile (whether an icognito
268 * profile exists). Returns the results via onIncognitoStatusChanged. 268 * profile exists). Returns the results via onIncognitoStatusChanged.
269 */ 269 */
270 updateIncognitoStatus: function() {}, 270 updateIncognitoStatus: function() {},
271 271
272 /** 272 /**
273 * Fetches the zoom scope setting. Returns the result via
274 * onZoomScopeChanged.
275 */
276 fetchZoomScope: function() {},
277
278 /**
273 * Fetches the currently defined zoom levels for sites. Returns the results 279 * Fetches the currently defined zoom levels for sites. Returns the results
274 * via onZoomLevelsChanged. 280 * via onZoomLevelsChanged.
275 */ 281 */
276 fetchZoomLevels: function() {}, 282 fetchZoomLevels: function() {},
277 283
278 /** 284 /**
285 * Sets whether the zoom scope is per-origin or per-tab.
286 * @param {boolean} zoomScopeIsPerOrigin The zoom scope setting.
287 */
288 setZoomScopeIsPerOrigin: function(zoomScopeIsPerOrigin) {},
289
290 /**
279 * Removes a zoom levels for a given host. 291 * Removes a zoom levels for a given host.
280 * @param {string} host The host to remove zoom levels for. 292 * @param {string} host The host to remove zoom levels for.
281 */ 293 */
282 removeZoomLevel: function(host) {}, 294 removeZoomLevel: function(host) {},
283 }; 295 };
284 296
285 /** 297 /**
286 * @constructor 298 * @constructor
287 * @implements {settings.SiteSettingsPrefsBrowserProxy} 299 * @implements {settings.SiteSettingsPrefsBrowserProxy}
288 */ 300 */
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 removeUsbDevice: function(origin, embeddingOrigin, usbDevice) { 413 removeUsbDevice: function(origin, embeddingOrigin, usbDevice) {
402 chrome.send('removeUsbDevice', [origin, embeddingOrigin, usbDevice]); 414 chrome.send('removeUsbDevice', [origin, embeddingOrigin, usbDevice]);
403 }, 415 },
404 416
405 /** @override */ 417 /** @override */
406 updateIncognitoStatus: function() { 418 updateIncognitoStatus: function() {
407 chrome.send('updateIncognitoStatus'); 419 chrome.send('updateIncognitoStatus');
408 }, 420 },
409 421
410 /** @override */ 422 /** @override */
423 fetchZoomScope: function() {
424 chrome.send('fetchZoomScope');
425 },
426
427 /** @override */
411 fetchZoomLevels: function() { 428 fetchZoomLevels: function() {
412 chrome.send('fetchZoomLevels'); 429 chrome.send('fetchZoomLevels');
413 }, 430 },
414 431
415 /** @override */ 432 /** @override */
433 setZoomScopeIsPerOrigin: function(zoomScopeIsPerOrigin) {
434 chrome.send('setZoomScopeIsPerOrigin', [zoomScopeIsPerOrigin]);
435 },
436
437 /** @override */
416 removeZoomLevel: function(host) { 438 removeZoomLevel: function(host) {
417 chrome.send('removeZoomLevel', [host]); 439 chrome.send('removeZoomLevel', [host]);
418 }, 440 },
419 }; 441 };
420 442
421 return { 443 return {
422 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, 444 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy,
423 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, 445 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl,
424 }; 446 };
425 }); 447 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698