| OLD | NEW |
| 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 // 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 | 7 |
| 8 /** @fileoverview Interface for settingsPrivate that can be overriden. */ | 8 /** @fileoverview Interface for settingsPrivate that can be overriden. */ |
| 9 | 9 |
| 10 assertNotReached('Interface file for Closure Compiler should not be executed.'); | 10 assertNotReached('Interface file for Closure Compiler should not be executed.'); |
| 11 | 11 |
| 12 /** @interface */ | 12 /** @interface */ |
| 13 function SettingsPrivate() {} | 13 function SettingsPrivate() {} |
| 14 | 14 |
| 15 SettingsPrivate.prototype = { | 15 SettingsPrivate.prototype = { |
| 16 /** | 16 /** |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 /** | 34 /** |
| 35 * Gets the value of a specific pref. | 35 * Gets the value of a specific pref. |
| 36 * @param {string} name | 36 * @param {string} name |
| 37 * @param {function(!chrome.settingsPrivate.PrefObject):void} callback | 37 * @param {function(!chrome.settingsPrivate.PrefObject):void} callback |
| 38 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref | 38 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getPref |
| 39 */ | 39 */ |
| 40 getPref: assertNotReached, | 40 getPref: assertNotReached, |
| 41 | 41 |
| 42 /** | 42 /** |
| 43 * Gets the page zoom factor as an integer percentage. | 43 * Gets the page zoom factor. |
| 44 * @param {function(number):void} callback | 44 * @param {function(number):void} callback |
| 45 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getDefa
ultZoomPercent | 45 * @see https://developer.chrome.com/extensions/settingsPrivate#method-getDefa
ultZoom |
| 46 */ | 46 */ |
| 47 getDefaultZoomPercent: assertNotReached, | 47 getDefaultZoom: assertNotReached, |
| 48 | 48 |
| 49 /** | 49 /** |
| 50 * Sets the page zoom factor from a zoom percentage. | 50 * Sets the page zoom factor. |
| 51 * @param {number} percent | 51 * @param {number} zoom |
| 52 * @param {function(boolean):void=} callback | 52 * @param {function(boolean):void=} callback |
| 53 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setDefa
ultZoomPercent | 53 * @see https://developer.chrome.com/extensions/settingsPrivate#method-setDefa
ultZoom |
| 54 */ | 54 */ |
| 55 setDefaultZoomPercent: assertNotReached, | 55 setDefaultZoom: assertNotReached, |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that | 59 * <p>Fired when a set of prefs has changed.</p><p>|prefs| The prefs that |
| 60 * changed.</p> | 60 * changed.</p> |
| 61 * @type {!ChromeEvent} | 61 * @type {!ChromeEvent} |
| 62 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha
nged | 62 * @see https://developer.chrome.com/extensions/settingsPrivate#event-onPrefsCha
nged |
| 63 */ | 63 */ |
| 64 SettingsPrivate.prototype.onPrefsChanged; | 64 SettingsPrivate.prototype.onPrefsChanged; |
| OLD | NEW |