| OLD | NEW |
| 1 // Copyright 2015 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 // This file was generated by: | 5 // This file was generated by: |
| 6 // ./tools/json_schema_compiler/compiler.py. | 6 // tools/json_schema_compiler/compiler.py. |
| 7 // NOTE: The format of types has changed. 'FooType' is now | 7 // NOTE: The format of types has changed. 'FooType' is now |
| 8 // 'chrome.settingsPrivate.FooType'. | 8 // 'chrome.settingsPrivate.FooType'. |
| 9 // Please run the closure compiler before committing changes. | 9 // Please run the closure compiler before committing changes. |
| 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md | 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md |
| 11 | 11 |
| 12 /** @fileoverview Externs generated from namespace: settingsPrivate */ | 12 /** @fileoverview Externs generated from namespace: settingsPrivate */ |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * @const | 15 * @const |
| 16 */ | 16 */ |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 /** | 87 /** |
| 88 * Gets the value of a specific pref. | 88 * Gets the value of a specific pref. |
| 89 * @param {string} name | 89 * @param {string} name |
| 90 * @param {function(!chrome.settingsPrivate.PrefObject):void} callback | 90 * @param {function(!chrome.settingsPrivate.PrefObject):void} callback |
| 91 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref | 91 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref |
| 92 */ | 92 */ |
| 93 chrome.settingsPrivate.getPref = function(name, callback) {}; | 93 chrome.settingsPrivate.getPref = function(name, callback) {}; |
| 94 | 94 |
| 95 /** | 95 /** |
| 96 * Gets the page zoom factor as an integer percentage. | 96 * Gets the page zoom factor. |
| 97 * @param {function(number):void} callback | 97 * @param {function(number):void} callback |
| 98 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getDefaul
tZoomPercent | 98 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getDefaul
tZoom |
| 99 */ | 99 */ |
| 100 chrome.settingsPrivate.getDefaultZoomPercent = function(callback) {}; | 100 chrome.settingsPrivate.getDefaultZoom = function(callback) {}; |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * Sets the page zoom factor from a zoom percentage. | 103 * Sets the page zoom factor. |
| 104 * @param {number} percent | 104 * @param {number} zoom |
| 105 * @param {function(boolean):void=} callback | 105 * @param {function(boolean):void=} callback |
| 106 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setDefaul
tZoomPercent | 106 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setDefaul
tZoom |
| 107 */ | 107 */ |
| 108 chrome.settingsPrivate.setDefaultZoomPercent = function(percent, callback) {}; | 108 chrome.settingsPrivate.setDefaultZoom = function(zoom, callback) {}; |
| 109 | 109 |
| 110 /** | 110 /** |
| 111 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that | 111 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that |
| 112 * changed.</p> | 112 * changed.</p> |
| 113 * @type {!ChromeEvent} | 113 * @type {!ChromeEvent} |
| 114 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha
nged | 114 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha
nged |
| 115 */ | 115 */ |
| 116 chrome.settingsPrivate.onPrefsChanged; | 116 chrome.settingsPrivate.onPrefsChanged; |
| OLD | NEW |