OLD | NEW |
1 // SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPP
P | 1 // SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPP
P |
2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P:::::::::::::::
:P | 2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P:::::::::::::::
:P |
3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP:::
::P | 3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP:::
::P |
4 // S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P::
:::P | 4 // S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P::
:::P |
5 // S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P::
:::P | 5 // S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P::
:::P |
6 // S:::::S T:::::T O:::::O O:::::O P::::P P::
:::P | 6 // S:::::S T:::::T O:::::O O:::::O P::::P P::
:::P |
7 // S::::SSSS P::::PPPPPP:::
::P | 7 // S::::SSSS P::::PPPPPP:::
::P |
8 // SS::::::SSSSS This file is generated. To update it, P:::::::::::::
PP | 8 // SS::::::SSSSS This file is generated. To update it, P:::::::::::::
PP |
9 // SSS::::::::SS run roll_closure_compiler. P::::PPPPPPPPP | 9 // SSS::::::::SS run roll_closure_compiler. P::::PPPPPPPPP |
10 // SSSSSS::::S P::::P | 10 // SSSSSS::::S P::::P |
(...skipping 2652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2663 * tab in the current window. | 2663 * tab in the current window. |
2664 * @param {function(string): void=} opt_callback An optional callback function | 2664 * @param {function(string): void=} opt_callback An optional callback function |
2665 * that will be invoked with the language of the tab specified as first | 2665 * that will be invoked with the language of the tab specified as first |
2666 * argument. | 2666 * argument. |
2667 * @return {undefined} | 2667 * @return {undefined} |
2668 */ | 2668 */ |
2669 chrome.tabs.detectLanguage = function(tabIdOrCallback, opt_callback) {}; | 2669 chrome.tabs.detectLanguage = function(tabIdOrCallback, opt_callback) {}; |
2670 | 2670 |
2671 | 2671 |
2672 /** | 2672 /** |
| 2673 * @see https://developer.chrome.com/extensions/tabs#method-discard |
| 2674 * @param {number|function(!Tab): void} tabIdOrCallback |
| 2675 * @param {function(!Tab): void=} opt_callback |
| 2676 */ |
| 2677 chrome.tabs.discard; |
| 2678 |
| 2679 |
| 2680 /** |
2673 * @see https://developer.chrome.com/extensions/tabs#method-executeScript | 2681 * @see https://developer.chrome.com/extensions/tabs#method-executeScript |
2674 * @param {number|!chrome.tabs.InjectDetails} tabIdOrDetails | 2682 * @param {number|!chrome.tabs.InjectDetails} tabIdOrDetails |
2675 * Either the id of the tab in which to run the script, or an object | 2683 * Either the id of the tab in which to run the script, or an object |
2676 * containing the details of the script to run, in which case the script | 2684 * containing the details of the script to run, in which case the script |
2677 * will be executed in the active tab of the current window. | 2685 * will be executed in the active tab of the current window. |
2678 * @param {(!chrome.tabs.InjectDetails|function(!Array<*>):void)=} | 2686 * @param {(!chrome.tabs.InjectDetails|function(!Array<*>):void)=} |
2679 * opt_detailsOrCallback Either an object containing the details of the | 2687 * opt_detailsOrCallback Either an object containing the details of the |
2680 * script to run, if the tab id was speficied as first argument, or a | 2688 * script to run, if the tab id was speficied as first argument, or a |
2681 * callback that will be invoked with the result of the execution of the | 2689 * callback that will be invoked with the result of the execution of the |
2682 * script in every injected frame. | 2690 * script in every injected frame. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2724 * | 2732 * |
2725 * @param {number?} windowId Window id. | 2733 * @param {number?} windowId Window id. |
2726 * @param {function(Tab): void} callback Callback. | 2734 * @param {function(Tab): void} callback Callback. |
2727 * @deprecated Please use tabs.query({active: true}). | 2735 * @deprecated Please use tabs.query({active: true}). |
2728 * @return {undefined} | 2736 * @return {undefined} |
2729 */ | 2737 */ |
2730 chrome.tabs.getSelected = function(windowId, callback) {}; | 2738 chrome.tabs.getSelected = function(windowId, callback) {}; |
2731 | 2739 |
2732 | 2740 |
2733 /** | 2741 /** |
| 2742 * @see https://developer.chrome.com/extensions/tabs#method-getZoom |
| 2743 * @param {number|function(number): void} tabIdOrCallback |
| 2744 * @param {function(number): void=} opt_callback |
| 2745 * @return {undefined} |
| 2746 */ |
| 2747 chrome.tabs.getZoom = function(tabIdOrCallback, opt_callback) {}; |
| 2748 |
| 2749 |
| 2750 /** |
| 2751 * @see https://developer.chrome.com/extensions/tabs#type-ZoomSettings |
| 2752 * @typedef {?{ |
| 2753 * mode: (string|undefined), |
| 2754 * scope: (string|undefined), |
| 2755 * defaultZoomFactor: (number|undefined), |
| 2756 * }} |
| 2757 */ |
| 2758 chrome.tabs.ZoomSettings; |
| 2759 |
| 2760 |
| 2761 /** |
| 2762 * @see https://developer.chrome.com/extensions/tabs#method-getZoomSettings |
| 2763 * @param {number|function(!chrome.tabs.ZoomSettings): void} tabIdOrCallback |
| 2764 * @param {function(!chrome.tabs.ZoomSettings): void=} opt_callback |
| 2765 */ |
| 2766 chrome.tabs.getZoomSettings = function(tabIdOrCallback, opt_callback) {}; |
| 2767 |
| 2768 |
| 2769 /** |
2734 * @typedef {?{ | 2770 * @typedef {?{ |
2735 * windowId: (number|undefined), | 2771 * windowId: (number|undefined), |
2736 * tabs: (number|!Array<number>) | 2772 * tabs: (number|!Array<number>) |
2737 * }} | 2773 * }} |
2738 */ | 2774 */ |
2739 chrome.tabs.HighlightInfo; | 2775 chrome.tabs.HighlightInfo; |
2740 | 2776 |
2741 | 2777 |
2742 /** | 2778 /** |
2743 * @param {!chrome.tabs.HighlightInfo} highlightInfo | 2779 * @param {!chrome.tabs.HighlightInfo} highlightInfo |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2887 * @param {*} request The request value of any type. | 2923 * @param {*} request The request value of any type. |
2888 * @param {function(*): void=} opt_callback The callback function which | 2924 * @param {function(*): void=} opt_callback The callback function which |
2889 * takes a JSON response object sent by the handler of the request. | 2925 * takes a JSON response object sent by the handler of the request. |
2890 * @deprecated Please use runtime.sendMessage. | 2926 * @deprecated Please use runtime.sendMessage. |
2891 * @return {undefined} | 2927 * @return {undefined} |
2892 */ | 2928 */ |
2893 chrome.tabs.sendRequest = function(tabId, request, opt_callback) {}; | 2929 chrome.tabs.sendRequest = function(tabId, request, opt_callback) {}; |
2894 | 2930 |
2895 | 2931 |
2896 /** | 2932 /** |
| 2933 * @see https://developer.chrome.com/extensions/tabs#method-setZoom |
| 2934 * @param {number} tabIdOrZoomFactor |
| 2935 * @param {(number|function(): void)=} opt_zoomFactorOrCallback |
| 2936 * @param {function(): void=} opt_callback |
| 2937 * @return {undefined} |
| 2938 */ |
| 2939 chrome.tabs.setZoom = function( |
| 2940 tabIdOrZoomFactor, opt_zoomFactorOrCallback, opt_callback) {}; |
| 2941 |
| 2942 |
| 2943 /** |
| 2944 * @see https://developer.chrome.com/extensions/tabs#method-setZoomSettings |
| 2945 * @param {number|!chrome.tabs.ZoomSettings} tabIdOrZoomSettings |
| 2946 * @param {(!chrome.tabs.ZoomSettings|function(): void)=} |
| 2947 * opt_zoomSettingsOrCallback |
| 2948 * @param {function(): void=} opt_callback |
| 2949 */ |
| 2950 chrome.tabs.setZoomSettings = function( |
| 2951 tabIdOrZoomSettings, opt_zoomSettingsOrCallback, opt_callback) {}; |
| 2952 |
| 2953 |
| 2954 /** |
2897 * @typedef {?{ | 2955 * @typedef {?{ |
2898 * url: (string|undefined), | 2956 * url: (string|undefined), |
2899 * active: (boolean|undefined), | 2957 * active: (boolean|undefined), |
2900 * highlighted: (boolean|undefined), | 2958 * highlighted: (boolean|undefined), |
2901 * pinned: (boolean|undefined), | 2959 * pinned: (boolean|undefined), |
2902 * openerTabId: (number|undefined) | 2960 * openerTabId: (number|undefined) |
2903 * }} | 2961 * }} |
2904 */ | 2962 */ |
2905 chrome.tabs.UpdateProperties; | 2963 chrome.tabs.UpdateProperties; |
2906 | 2964 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2979 | 3037 |
2980 | 3038 |
2981 /** | 3039 /** |
2982 * @type {!ChromeEvent} | 3040 * @type {!ChromeEvent} |
2983 * @deprecated Please use tabs.onActivated. | 3041 * @deprecated Please use tabs.onActivated. |
2984 */ | 3042 */ |
2985 chrome.tabs.onSelectionChanged; | 3043 chrome.tabs.onSelectionChanged; |
2986 | 3044 |
2987 | 3045 |
2988 /** | 3046 /** |
| 3047 * @see https://developer.chrome.com/extensions/tabs#event-onZoomChange |
| 3048 * @type {!ChromeObjectEvent} |
| 3049 */ |
| 3050 chrome.tabs.onZoomChange; |
| 3051 |
| 3052 |
| 3053 /** |
2989 * @see https://developer.chrome.com/extensions/topSites | 3054 * @see https://developer.chrome.com/extensions/topSites |
2990 * @const | 3055 * @const |
2991 */ | 3056 */ |
2992 chrome.topSites = {}; | 3057 chrome.topSites = {}; |
2993 | 3058 |
2994 | 3059 |
2995 | 3060 |
2996 /** | 3061 /** |
2997 * @constructor | 3062 * @constructor |
2998 * @see https://developer.chrome.com/extensions/topSites#type-MostVisitedURL | 3063 * @see https://developer.chrome.com/extensions/topSites#type-MostVisitedURL |
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4477 chrome.history.onVisited; | 4542 chrome.history.onVisited; |
4478 | 4543 |
4479 | 4544 |
4480 /** | 4545 /** |
4481 * @const | 4546 * @const |
4482 * @see http://developer.chrome.com/apps/identity.html | 4547 * @see http://developer.chrome.com/apps/identity.html |
4483 */ | 4548 */ |
4484 chrome.identity = {}; | 4549 chrome.identity = {}; |
4485 | 4550 |
4486 | 4551 |
| 4552 /** @typedef {?{id: string}} */ |
| 4553 chrome.identity.AccountInfo; |
| 4554 |
| 4555 |
4487 /** | 4556 /** |
4488 * @param {(chrome.identity.TokenDetails|function(string=): void)} | 4557 * @param {function(!Array<!chrome.identity.AccountInfo>): void} callback |
| 4558 * @return {undefined} |
| 4559 */ |
| 4560 chrome.identity.getAccounts = function(callback) {}; |
| 4561 |
| 4562 |
| 4563 /** |
| 4564 * @param {(!chrome.identity.TokenDetails|function(string=): void)} |
4489 * detailsOrCallback Token options or a callback function if no options are | 4565 * detailsOrCallback Token options or a callback function if no options are |
4490 * specified. | 4566 * specified. |
4491 * @param {function(string=): void=} opt_callback A callback function if options | 4567 * @param {function(string=): void=} opt_callback A callback function if options |
4492 * are specified. | 4568 * are specified. |
4493 * @return {undefined} | 4569 * @return {undefined} |
4494 */ | 4570 */ |
4495 chrome.identity.getAuthToken = function(detailsOrCallback, opt_callback) {}; | 4571 chrome.identity.getAuthToken = function(detailsOrCallback, opt_callback) {}; |
4496 | 4572 |
4497 | 4573 |
4498 /** @typedef {{interactive: (boolean|undefined)}} */ | 4574 /** |
| 4575 * @typedef {?{ |
| 4576 * interactive: (boolean|undefined), |
| 4577 * account: (!chrome.identity.AccountInfo|undefined), |
| 4578 * scopes: (!Array<string>|undefined) |
| 4579 * }} |
| 4580 */ |
4499 chrome.identity.TokenDetails; | 4581 chrome.identity.TokenDetails; |
4500 | 4582 |
4501 | 4583 |
4502 /** | 4584 /** |
4503 * @param {chrome.identity.InvalidTokenDetails} details | 4585 * @param {!chrome.identity.InvalidTokenDetails} details |
4504 * @param {function(): void} callback | 4586 * @param {function(): void=} opt_callback |
4505 * @return {undefined} | 4587 * @return {undefined} |
4506 */ | 4588 */ |
4507 chrome.identity.removeCachedAuthToken = function(details, callback) {}; | 4589 chrome.identity.removeCachedAuthToken = function(details, opt_callback) {}; |
4508 | 4590 |
4509 | 4591 |
4510 /** @typedef {{token: string}} */ | 4592 /** @typedef {?{token: string}} */ |
4511 chrome.identity.InvalidTokenDetails; | 4593 chrome.identity.InvalidTokenDetails; |
4512 | 4594 |
4513 | 4595 |
4514 /** | 4596 /** |
4515 * @param {chrome.identity.WebAuthFlowDetails} details | 4597 * @param {!chrome.identity.WebAuthFlowDetails} details |
4516 * @param {function(string=): void} callback | 4598 * @param {function(string=): void} callback |
4517 * @return {undefined} | 4599 * @return {undefined} |
4518 */ | 4600 */ |
4519 chrome.identity.launchWebAuthFlow = function(details, callback) {}; | 4601 chrome.identity.launchWebAuthFlow = function(details, callback) {}; |
4520 | 4602 |
4521 | 4603 |
4522 /** @typedef {{url: string, interactive: (boolean|undefined)}} */ | 4604 /** @typedef {?{url: string, interactive: (boolean|undefined)}} */ |
4523 chrome.identity.WebAuthFlowDetails; | 4605 chrome.identity.WebAuthFlowDetails; |
4524 | 4606 |
4525 | 4607 |
4526 /** | 4608 /** |
4527 * @param {function(!Object):void} callback | 4609 * @param {function(!Object):void} callback |
4528 * @return {undefined} | 4610 * @return {undefined} |
4529 */ | 4611 */ |
4530 chrome.identity.getProfileUserInfo = function(callback) {}; | 4612 chrome.identity.getProfileUserInfo = function(callback) {}; |
4531 | 4613 |
4532 | 4614 |
4533 /** @type {!ChromeEvent} */ | 4615 |
| 4616 /** @constructor */ |
| 4617 chrome.identity.OnSignInChangedEvent = function() {} |
| 4618 |
| 4619 |
| 4620 /** |
| 4621 * @param {function(!chrome.identity.AccountInfo, boolean):void} callback |
| 4622 * @return {undefined} |
| 4623 */ |
| 4624 chrome.identity.OnSignInChangedEvent.prototype.addListener = |
| 4625 function(callback) {}; |
| 4626 |
| 4627 |
| 4628 /** |
| 4629 * @param {function(!chrome.identity.AccountInfo, boolean):void} callback |
| 4630 * @return {undefined} |
| 4631 */ |
| 4632 chrome.identity.OnSignInChangedEvent.prototype.removeListener = |
| 4633 function(callback) {}; |
| 4634 |
| 4635 |
| 4636 /** |
| 4637 * @param {function(!chrome.identity.AccountInfo, boolean):void} callback |
| 4638 * @return {boolean} |
| 4639 */ |
| 4640 chrome.identity.OnSignInChangedEvent.prototype.hasListener = |
| 4641 function(callback) {}; |
| 4642 |
| 4643 |
| 4644 /** @return {boolean} */ |
| 4645 chrome.identity.OnSignInChangedEvent.prototype.hasListeners = |
| 4646 function() {}; |
| 4647 |
| 4648 |
| 4649 /** @type {!chrome.identity.OnSignInChangedEvent} */ |
4534 chrome.identity.onSignInChanged; | 4650 chrome.identity.onSignInChanged; |
4535 | 4651 |
4536 | 4652 |
4537 /** | 4653 /** |
4538 * @param {string=} opt_path | 4654 * @param {string=} opt_path |
4539 * @return {string} | 4655 * @return {string} |
4540 */ | 4656 */ |
4541 chrome.identity.getRedirectURL = function(opt_path) {}; | 4657 chrome.identity.getRedirectURL = function(opt_path) {}; |
4542 | 4658 |
4543 | 4659 |
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5823 | 5939 |
5824 | 5940 |
5825 /** | 5941 /** |
5826 * @const | 5942 * @const |
5827 * @see https://developer.chrome.com/extensions/system_cpu.html | 5943 * @see https://developer.chrome.com/extensions/system_cpu.html |
5828 */ | 5944 */ |
5829 chrome.system.cpu = {}; | 5945 chrome.system.cpu = {}; |
5830 | 5946 |
5831 | 5947 |
5832 /** | 5948 /** |
5833 * @param {function(!Object)} callback | 5949 * @interface |
| 5950 * @see https://developer.chrome.com/extensions/system_cpu#method-getInfo |
| 5951 */ |
| 5952 chrome.system.cpu.CpuInformation = function() {}; |
| 5953 |
| 5954 |
| 5955 /** @type {number} */ |
| 5956 chrome.system.cpu.CpuInformation.prototype.numOfProcessors; |
| 5957 |
| 5958 |
| 5959 /** @type {string} */ |
| 5960 chrome.system.cpu.CpuInformation.prototype.archName; |
| 5961 |
| 5962 |
| 5963 /** @type {string} */ |
| 5964 chrome.system.cpu.CpuInformation.prototype.modelName; |
| 5965 |
| 5966 |
| 5967 /** @type {!Array<string>} */ |
| 5968 chrome.system.cpu.CpuInformation.prototype.features; |
| 5969 |
| 5970 |
| 5971 /** @type {!Array<!chrome.system.cpu.ProcessorInformation>} */ |
| 5972 chrome.system.cpu.CpuInformation.prototype.processors; |
| 5973 |
| 5974 |
| 5975 /** |
| 5976 * This field is expected to roll out in ChromeOS 60. See the following link |
| 5977 * for the implementing CL. https://codereview.chromium.org/2802593005/ |
| 5978 * |
| 5979 * TODO(b/38111360): Remove above documentation when this is released. |
| 5980 * |
| 5981 * @type {!Array<number>|undefined} |
| 5982 */ |
| 5983 chrome.system.cpu.CpuInformation.prototype.temperatures; |
| 5984 |
| 5985 |
| 5986 /** |
| 5987 * @interface |
| 5988 * @see https://developer.chrome.com/extensions/system_cpu#method-getInfo |
| 5989 */ |
| 5990 chrome.system.cpu.ProcessorInformation = function() {}; |
| 5991 |
| 5992 |
| 5993 /** @type {number} */ |
| 5994 chrome.system.cpu.ProcessorInformation.prototype.user; |
| 5995 |
| 5996 |
| 5997 /** @type {number} */ |
| 5998 chrome.system.cpu.ProcessorInformation.prototype.kernel; |
| 5999 |
| 6000 |
| 6001 /** @type {number} */ |
| 6002 chrome.system.cpu.ProcessorInformation.prototype.idle; |
| 6003 |
| 6004 |
| 6005 /** @type {number} */ |
| 6006 chrome.system.cpu.ProcessorInformation.prototype.total; |
| 6007 |
| 6008 |
| 6009 /** |
| 6010 * @param {function(!chrome.system.cpu.CpuInformation)} callback |
5834 * @return {undefined} | 6011 * @return {undefined} |
5835 */ | 6012 */ |
5836 chrome.system.cpu.getInfo = function(callback) {}; | 6013 chrome.system.cpu.getInfo = function(callback) {}; |
5837 | 6014 |
5838 | 6015 |
5839 /** | 6016 /** |
5840 * @const | 6017 * @const |
5841 * @see http://developer.chrome.com/apps/system_display.html | 6018 * @see http://developer.chrome.com/apps/system_display.html |
5842 */ | 6019 */ |
5843 chrome.system.display = {}; | 6020 chrome.system.display = {}; |
5844 | 6021 |
5845 | 6022 |
5846 /** @type {!ChromeEvent} */ | 6023 /** |
| 6024 * @typedef {!{ |
| 6025 * left: number, |
| 6026 * top: number, |
| 6027 * width: number, |
| 6028 * height: number |
| 6029 * }} |
| 6030 * @see https://developer.chrome.com/extensions/system.display#type-Bounds |
| 6031 */ |
| 6032 chrome.system.display.Bounds; |
| 6033 |
| 6034 |
| 6035 /** |
| 6036 * @typedef {!{ |
| 6037 * left: number, |
| 6038 * top: number, |
| 6039 * right: number, |
| 6040 * bottom: number |
| 6041 * }} |
| 6042 * @see https://developer.chrome.com/extensions/system.display#type-Insets |
| 6043 */ |
| 6044 chrome.system.display.Insets; |
| 6045 |
| 6046 |
| 6047 /** |
| 6048 * @typedef {!{ |
| 6049 * x: number, |
| 6050 * y: number |
| 6051 * }} |
| 6052 * @see https://developer.chrome.com/extensions/system.display#type-Point |
| 6053 */ |
| 6054 chrome.system.display.Point; |
| 6055 |
| 6056 |
| 6057 /** |
| 6058 * @typedef {!{ |
| 6059 * width: number, |
| 6060 * height: number, |
| 6061 * widthInNativePixels: number, |
| 6062 * heightInNativePixels: number, |
| 6063 * uiScale: number, |
| 6064 * deviceScaleFactor: number, |
| 6065 * isNative: boolean, |
| 6066 * isSelected: boolean |
| 6067 * }} |
| 6068 * @see https://developer.chrome.com/extensions/system.display#type-DisplayMode |
| 6069 */ |
| 6070 chrome.system.display.DisplayMode; |
| 6071 |
| 6072 |
| 6073 /** |
| 6074 * @typedef {!{ |
| 6075 * id: string, |
| 6076 * parentId: string, |
| 6077 * position: string, |
| 6078 * offset: number |
| 6079 * }} |
| 6080 * @see https://developer.chrome.com/extensions/system.display#type-DisplayLayou
t |
| 6081 */ |
| 6082 chrome.system.display.DisplayLayout; |
| 6083 |
| 6084 |
| 6085 |
| 6086 /** |
| 6087 * An undocumented type that defines the objects passed to getInfo()'s callback. |
| 6088 * @constructor |
| 6089 */ |
| 6090 chrome.system.display.DisplayUnitInfo = function() {}; |
| 6091 |
| 6092 |
| 6093 /** @type {string} */ |
| 6094 chrome.system.display.DisplayUnitInfo.prototype.id; |
| 6095 |
| 6096 |
| 6097 /** @type {string} */ |
| 6098 chrome.system.display.DisplayUnitInfo.prototype.name; |
| 6099 |
| 6100 |
| 6101 /** @type {string} */ |
| 6102 chrome.system.display.DisplayUnitInfo.prototype.mirroringSourceId; |
| 6103 |
| 6104 |
| 6105 /** @type {boolean} */ |
| 6106 chrome.system.display.DisplayUnitInfo.prototype.isPrimary; |
| 6107 |
| 6108 |
| 6109 /** @type {boolean} */ |
| 6110 chrome.system.display.DisplayUnitInfo.prototype.isInternal; |
| 6111 |
| 6112 |
| 6113 /** @type {boolean} */ |
| 6114 chrome.system.display.DisplayUnitInfo.prototype.isEnabled; |
| 6115 |
| 6116 |
| 6117 /** @type {number} */ |
| 6118 chrome.system.display.DisplayUnitInfo.prototype.dpiX; |
| 6119 |
| 6120 |
| 6121 /** @type {number} */ |
| 6122 chrome.system.display.DisplayUnitInfo.prototype.dpiY; |
| 6123 |
| 6124 |
| 6125 /** @type {number} */ |
| 6126 chrome.system.display.DisplayUnitInfo.prototype.rotation; |
| 6127 |
| 6128 |
| 6129 /** @type {!chrome.system.display.Bounds} */ |
| 6130 chrome.system.display.DisplayUnitInfo.prototype.bounds; |
| 6131 |
| 6132 |
| 6133 /** @type {!chrome.system.display.Insets} */ |
| 6134 chrome.system.display.DisplayUnitInfo.prototype.overscan; |
| 6135 |
| 6136 |
| 6137 /** @type {!chrome.system.display.Bounds} */ |
| 6138 chrome.system.display.DisplayUnitInfo.prototype.workArea; |
| 6139 |
| 6140 |
| 6141 /** @type {!Array<!chrome.system.display.DisplayMode>} */ |
| 6142 chrome.system.display.DisplayUnitInfo.prototype.modes; |
| 6143 |
| 6144 |
| 6145 /** @type {boolean} */ |
| 6146 chrome.system.display.DisplayUnitInfo.prototype.hasTouchSupport; |
| 6147 |
| 6148 |
| 6149 /** |
| 6150 * @param {function(!Array<!Object>):void} callback Callbacks must declare their |
| 6151 * param to be an array of objects since there is no defined type. To |
| 6152 * achieve stronger type checking, cast the objects to |
| 6153 * chrome.system.display.DisplayUnitInfo. Called with an array of objects |
| 6154 * representing display info. |
| 6155 * @return {undefined} |
| 6156 * @see https://developer.chrome.com/extensions/system.display#method-getInfo |
| 6157 */ |
| 6158 chrome.system.display.getInfo = function(callback) {}; |
| 6159 |
| 6160 |
| 6161 /** |
| 6162 * @param {function(!Array<!chrome.system.display.DisplayLayout>):void} callback |
| 6163 * The callback to invoke with the results. |
| 6164 * @see https://developer.chrome.com/extensions/system.display#method-getDisplay
Layout |
| 6165 */ |
| 6166 chrome.system.display.getDisplayLayout = function(callback) {}; |
| 6167 |
| 6168 |
| 6169 /** |
| 6170 * @param {string} id The display's unique identifier. |
| 6171 * @param {!Object} info The information about display properties that should be |
| 6172 * changed. A property will be changed only if a new value for it is |
| 6173 * specified in info. |
| 6174 * @param {function():void=} callback Empty function called when the function |
| 6175 * finishes. To find out whether the function succeeded, runtime.lastError |
| 6176 * should be queried. |
| 6177 * @see https://developer.chrome.com/extensions/system.display#method-setDisplay
Properties |
| 6178 */ |
| 6179 chrome.system.display.setDisplayProperties = function(id, info, callback) {}; |
| 6180 |
| 6181 |
| 6182 /** |
| 6183 * @param {!Array<!chrome.system.display.DisplayLayout>} layouts The layout |
| 6184 * information, required for all displays except the primary display. |
| 6185 * @param {function():void=} callback Empty function called when the function |
| 6186 * finishes. To find out whether the function succeeded, runtime.lastError |
| 6187 * should be queried. |
| 6188 * @see https://developer.chrome.com/extensions/system.display#method-setDisplay
Layout |
| 6189 */ |
| 6190 chrome.system.display.setDisplayLayout = function(layouts, callback) {}; |
| 6191 |
| 6192 |
| 6193 /** |
| 6194 * @param {boolean} enabled True if unified desktop should be enabled. |
| 6195 * @see https://developer.chrome.com/extensions/system.display#method-enableUnif
iedDesktop |
| 6196 */ |
| 6197 chrome.system.display.enableUnifiedDesktop = function(enabled) {}; |
| 6198 |
| 6199 |
| 6200 /** |
| 6201 * @param {string} id The display's unique identifier. |
| 6202 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa
librationStart |
| 6203 */ |
| 6204 chrome.system.display.overscanCalibrationStart = function(id) {}; |
| 6205 |
| 6206 |
| 6207 /** |
| 6208 * @param {string} id The display's unique identifier. |
| 6209 * @param {!chrome.system.display.Insets} delta The amount to change the |
| 6210 * overscan insets. |
| 6211 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa
librationAdjust |
| 6212 */ |
| 6213 chrome.system.display.overscanCalibrationAdjust = function(id, delta) {}; |
| 6214 |
| 6215 |
| 6216 /** |
| 6217 * @param {string} id The display's unique identifier. |
| 6218 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa
librationReset |
| 6219 */ |
| 6220 chrome.system.display.overscanCalibrationReset = function(id) {}; |
| 6221 |
| 6222 |
| 6223 /** |
| 6224 * @param {string} id The display's unique identifier. |
| 6225 * @see https://developer.chrome.com/extensions/system.display#method-overscanCa
librationComplete |
| 6226 */ |
| 6227 chrome.system.display.overscanCalibrationComplete = function(id) {}; |
| 6228 |
| 6229 |
| 6230 /** |
| 6231 * @param {string} id The display's unique identifier. |
| 6232 * @param {function(boolean):void=} callback Optional callback to inform the |
| 6233 * caller that the touch calibration has ended. The argument of the callback |
| 6234 * informs if the calibration was a success or not. |
| 6235 * @see https://developer.chrome.com/extensions/system.display#method-showNative
TouchCalibration |
| 6236 */ |
| 6237 chrome.system.display.showNativeTouchCalibration = function(id, callback) {}; |
| 6238 |
| 6239 |
| 6240 /** |
| 6241 * @param {string} id The display's unique identifier. |
| 6242 * @see https://developer.chrome.com/extensions/system.display#method-startCusto
mTouchCalibration |
| 6243 */ |
| 6244 chrome.system.display.startCustomTouchCalibration = function(id) {}; |
| 6245 |
| 6246 |
| 6247 /** |
| 6248 * @param {!Object} pairs The pairs of point used to calibrate the display. |
| 6249 * @param {!chrome.system.display.Bounds} bounds Bounds of the display when the |
| 6250 * touch calibration was performed. |bounds.left| and |bounds.top| values |
| 6251 * are ignored. |
| 6252 * @see https://developer.chrome.com/extensions/system.display#method-completeCu
stomTouchCalibration |
| 6253 */ |
| 6254 chrome.system.display.completeCustomTouchCalibration = function(pairs, bounds) { |
| 6255 }; |
| 6256 |
| 6257 |
| 6258 /** |
| 6259 * @param {string} id The display's unique identifier. |
| 6260 * @see https://developer.chrome.com/extensions/system.display#method-clearTouch
Calibration |
| 6261 */ |
| 6262 chrome.system.display.clearTouchCalibration = function(id) {}; |
| 6263 |
| 6264 |
| 6265 /** |
| 6266 * @type {!ChromeEvent} |
| 6267 * @see https://developer.chrome.com/extensions/system.display#event-onDisplayCh
anged |
| 6268 */ |
5847 chrome.system.display.onDisplayChanged; | 6269 chrome.system.display.onDisplayChanged; |
5848 | 6270 |
5849 | 6271 |
5850 | |
5851 /** | |
5852 * @constructor | |
5853 */ | |
5854 chrome.system.display.Bounds = function() {}; | |
5855 | |
5856 | |
5857 /** @type {number} */ | |
5858 chrome.system.display.Bounds.prototype.left; | |
5859 | |
5860 | |
5861 /** @type {number} */ | |
5862 chrome.system.display.Bounds.prototype.top; | |
5863 | |
5864 | |
5865 /** @type {number} */ | |
5866 chrome.system.display.Bounds.prototype.width; | |
5867 | |
5868 | |
5869 /** @type {number} */ | |
5870 chrome.system.display.Bounds.prototype.height; | |
5871 | |
5872 | |
5873 /** | |
5874 * @typedef {{ | |
5875 * left: (number|undefined), | |
5876 * top: (number|undefined), | |
5877 * right: (number|undefined), | |
5878 * bottom: (number|undefined) | |
5879 * }} | |
5880 */ | |
5881 chrome.system.display.Insets; | |
5882 | |
5883 | |
5884 | |
5885 /** | |
5886 * @constructor | |
5887 */ | |
5888 chrome.system.display.DisplayInfo = function() {}; | |
5889 | |
5890 | |
5891 /** @type {string} */ | |
5892 chrome.system.display.DisplayInfo.prototype.id; | |
5893 | |
5894 | |
5895 /** @type {string} */ | |
5896 chrome.system.display.DisplayInfo.prototype.name; | |
5897 | |
5898 | |
5899 /** @type {string} */ | |
5900 chrome.system.display.DisplayInfo.prototype.mirroringSourceId; | |
5901 | |
5902 | |
5903 /** @type {boolean} */ | |
5904 chrome.system.display.DisplayInfo.prototype.isPrimary; | |
5905 | |
5906 | |
5907 /** @type {boolean} */ | |
5908 chrome.system.display.DisplayInfo.prototype.isInternal; | |
5909 | |
5910 | |
5911 /** @type {boolean} */ | |
5912 chrome.system.display.DisplayInfo.prototype.isEnabled; | |
5913 | |
5914 | |
5915 /** @type {number} */ | |
5916 chrome.system.display.DisplayInfo.prototype.dpiX; | |
5917 | |
5918 | |
5919 /** @type {number} */ | |
5920 chrome.system.display.DisplayInfo.prototype.dpiY; | |
5921 | |
5922 | |
5923 /** @type {number} */ | |
5924 chrome.system.display.DisplayInfo.prototype.rotation; | |
5925 | |
5926 | |
5927 /** @type {!chrome.system.display.Bounds} */ | |
5928 chrome.system.display.DisplayInfo.prototype.bounds; | |
5929 | |
5930 | |
5931 /** @type {!chrome.system.display.Insets} */ | |
5932 chrome.system.display.DisplayInfo.prototype.overscan; | |
5933 | |
5934 | |
5935 /** @type {!chrome.system.display.Bounds} */ | |
5936 chrome.system.display.DisplayInfo.prototype.workArea; | |
5937 | |
5938 | |
5939 /** | |
5940 * @typedef {{ | |
5941 * mirroringSourceId: (string|undefined), | |
5942 * isPrimary: (boolean|undefined), | |
5943 * overscan: (!chrome.system.display.Insets|undefined), | |
5944 * rotation: (number|undefined), | |
5945 * boundsOriginX: (number|undefined), | |
5946 * boundsOriginY: (number|undefined) | |
5947 * }} | |
5948 */ | |
5949 chrome.system.display.SettableDisplayInfo; | |
5950 | |
5951 | |
5952 chrome.types = {}; | 6272 chrome.types = {}; |
5953 | 6273 |
5954 | 6274 |
5955 /** | 6275 /** |
5956 * @typedef {?{ | 6276 * @typedef {?{ |
5957 * format: (string|undefined), | 6277 * format: (string|undefined), |
5958 * quality: (number|undefined) | 6278 * quality: (number|undefined) |
5959 * }} | 6279 * }} |
5960 */ | 6280 */ |
5961 chrome.types.ImageDetails; | 6281 chrome.types.ImageDetails; |
5962 | 6282 |
5963 | 6283 |
5964 /** | 6284 |
5965 * @param {function(!Array<!chrome.system.display.DisplayInfo>)} | 6285 /** |
5966 * callback Called with an array of objects representing display info. | |
5967 * @return {undefined} | |
5968 */ | |
5969 chrome.system.display.getInfo = function(callback) {}; | |
5970 | |
5971 | |
5972 /** | |
5973 * @param {string} id The display's unique identifier. | |
5974 * @param {!chrome.system.display.SettableDisplayInfo} info The information | |
5975 * about display properties that should be changed. | |
5976 * @param {function()=} opt_callback The callback to execute when the display | |
5977 * info has been changed. | |
5978 * @return {undefined} | |
5979 */ | |
5980 chrome.system.display.setDisplayProperties = | |
5981 function(id, info, opt_callback) {}; | |
5982 | |
5983 | |
5984 /** | |
5985 * @const | 6286 * @const |
5986 * @see https://developer.chrome.com/extensions/types.html | 6287 * @see https://developer.chrome.com/extensions/types.html |
5987 */ | 6288 */ |
5988 chrome.chromeSetting = {}; | 6289 chrome.chromeSetting = {}; |
5989 | 6290 |
5990 | 6291 |
5991 /** @type {!ChromeEvent} */ | 6292 /** @type {!ChromeEvent} */ |
5992 chrome.chromeSetting.onChange; | 6293 chrome.chromeSetting.onChange; |
5993 | 6294 |
5994 | 6295 |
(...skipping 4729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10724 /** @return {boolean} */ | 11025 /** @return {boolean} */ |
10725 chrome.downloads.DeterminingFilenameEvent.prototype.hasListeners = | 11026 chrome.downloads.DeterminingFilenameEvent.prototype.hasListeners = |
10726 function() {}; | 11027 function() {}; |
10727 | 11028 |
10728 | 11029 |
10729 /** | 11030 /** |
10730 * @type {!chrome.downloads.DeterminingFilenameEvent} | 11031 * @type {!chrome.downloads.DeterminingFilenameEvent} |
10731 * https://developer.chrome.com/extensions/downloads#event-onDeterminingFilename | 11032 * https://developer.chrome.com/extensions/downloads#event-onDeterminingFilename |
10732 */ | 11033 */ |
10733 chrome.downloads.onDeterminingFilename; | 11034 chrome.downloads.onDeterminingFilename; |
OLD | NEW |