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

Side by Side Diff: chrome/common/extensions/api/tabs.json

Issue 1051013002: Add default zoom functionality to chrome.tabs Zoom API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address suggestions. Created 5 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 { 6 {
7 "namespace": "tabs", 7 "namespace": "tabs",
8 "description": "Use the <code>chrome.tabs</code> API to interact with the br owser's tab system. You can use this API to create, modify, and rearrange tabs i n the browser.", 8 "description": "Use the <code>chrome.tabs</code> API to interact with the br owser's tab system. You can use this API to create, modify, and rearrange tabs i n the browser.",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 "enum": [ 61 "enum": [
62 { 62 {
63 "name": "per-origin", 63 "name": "per-origin",
64 "description": "Zoom changes will persist in the zoomed page's o rigin, i.e. all other tabs navigated to that same origin will be zoomed as well. Moreover, <code>per-origin</code> zoom changes are saved with the origin, meani ng that when navigating to other pages in the same origin, they will all be zoom ed to the same zoom factor. The <code>per-origin</code> scope is only available in the <code>automatic</code> mode." 64 "description": "Zoom changes will persist in the zoomed page's o rigin, i.e. all other tabs navigated to that same origin will be zoomed as well. Moreover, <code>per-origin</code> zoom changes are saved with the origin, meani ng that when navigating to other pages in the same origin, they will all be zoom ed to the same zoom factor. The <code>per-origin</code> scope is only available in the <code>automatic</code> mode."
65 }, 65 },
66 { 66 {
67 "name": "per-tab", 67 "name": "per-tab",
68 "description": "Zoom changes only take effect in this tab, and z oom changes in other tabs will not affect the zooming of this tab. Also, <code>p er-tab</code> zoom changes are reset on navigation; navigating a tab will always load pages with their <code>per-origin</code> zoom factors." 68 "description": "Zoom changes only take effect in this tab, and z oom changes in other tabs will not affect the zooming of this tab. Also, <code>p er-tab</code> zoom changes are reset on navigation; navigating a tab will always load pages with their <code>per-origin</code> zoom factors."
69 } 69 }
70 ] 70 ]
71 },
72 "default_zoom_factor": {
73 "type": "number",
74 "name": "defaultZoomFactor",
75 "optional": true,
76 "description": "Used to return the default zoom level for the curren t tab in calls to tabs.getZoomSettings."
71 } 77 }
72 } 78 }
73 } 79 }
74 ], 80 ],
75 "functions": [ 81 "functions": [
76 { 82 {
77 "name": "get", 83 "name": "get",
78 "type": "function", 84 "type": "function",
79 "description": "Retrieves details about the specified tab.", 85 "description": "Retrieves details about the specified tab.",
80 "parameters": [ 86 "parameters": [
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 "tabId": {"type": "integer", "minimum": 0}, 1088 "tabId": {"type": "integer", "minimum": 0},
1083 "oldZoomFactor": {"type": "number"}, 1089 "oldZoomFactor": {"type": "number"},
1084 "newZoomFactor": {"type": "number"}, 1090 "newZoomFactor": {"type": "number"},
1085 "zoomSettings": {"$ref": "ZoomSettings"} 1091 "zoomSettings": {"$ref": "ZoomSettings"}
1086 } 1092 }
1087 }] 1093 }]
1088 } 1094 }
1089 ] 1095 ]
1090 } 1096 }
1091 ] 1097 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698