| OLD | NEW |
| 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": "windows", | 7 "namespace": "windows", |
| 8 "description": "Use the <code>chrome.windows</code> API to interact with bro
wser windows. You can use this API to create, modify, and rearrange windows in t
he browser.", | 8 "description": "Use the <code>chrome.windows</code> API to interact with bro
wser windows. You can use this API to create, modify, and rearrange windows in t
he browser.", |
| 9 "compiler_options": { | 9 "compiler_options": { |
| 10 "implemented_in": "chrome/browser/extensions/api/tabs/tabs_api.h" | 10 "implemented_in": "chrome/browser/extensions/api/tabs/tabs_api.h" |
| 11 }, | 11 }, |
| 12 "types": [ | 12 "types": [ |
| 13 { | 13 { |
| 14 "id": "WindowType", | 14 "id": "WindowType", |
| 15 "type": "string", | 15 "type": "string", |
| 16 "description": "The type of browser window this is. Under some circumsta
nces a Window may not be assigned type property, for example when querying close
d windows from the $(ref:sessions) API.", | 16 "description": "The type of browser window this is. Under some circumsta
nces a Window may not be assigned type property, for example when querying close
d windows from the $(ref:sessions) API.", |
| 17 "enum": ["normal", "popup", "panel", "app", "devtools"] | 17 "enum": ["normal", "popup", "panel", "app", "devtools"] |
| 18 }, | 18 }, |
| 19 { | 19 { |
| 20 "id": "WindowState", | 20 "id": "WindowState", |
| 21 "type": "string", | 21 "type": "string", |
| 22 "description": "The state of this browser window. Under some circumstanc
es a Window may not be assigned state property, for example when querying closed
windows from the $(ref:sessions) API.", | 22 "description": "The state of this browser window. Under some circumstanc
es a Window may not be assigned state property, for example when querying closed
windows from the $(ref:sessions) API.", |
| 23 // WARNING: These values are written to logs. New enum values can be |
| 24 // added, but existing enums must never be renumbered or deleted and |
| 25 // reused. If something needs to be removed, make sure to remove the |
| 26 // "TabsApi.RequestedWindowState" histogram as it will be no longer |
| 27 // valid, and make sure to mark it as obsolete in histograms.xml. |
| 23 "enum": [{ | 28 "enum": [{ |
| 24 "name": "normal", | 29 "name": "normal", |
| 25 "description": "Normal window state (i.e. not minimized, maximized, or
fullscreen)." | 30 "description": "Normal window state (i.e. not minimized, maximized, or
fullscreen)." |
| 26 }, { | 31 }, { |
| 27 "name": "minimized", | 32 "name": "minimized", |
| 28 "description": "Minimized window state." | 33 "description": "Minimized window state." |
| 29 }, { | 34 }, { |
| 30 "name": "maximized", | 35 "name": "maximized", |
| 31 "description": "Maximized window state." | 36 "description": "Maximized window state." |
| 32 }, { | 37 }, { |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 "description": "Conditions that the window's type being removed must
satisfy. By default it will satisfy <code>['app', 'normal', 'panel', 'popup']</
code>, with <code>'app'</code> and <code>'panel'</code> window types limited to
the extension's own windows." | 335 "description": "Conditions that the window's type being removed must
satisfy. By default it will satisfy <code>['app', 'normal', 'panel', 'popup']</
code>, with <code>'app'</code> and <code>'panel'</code> window types limited to
the extension's own windows." |
| 331 } | 336 } |
| 332 ], | 337 ], |
| 333 "parameters": [ | 338 "parameters": [ |
| 334 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} | 339 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} |
| 335 ] | 340 ] |
| 336 } | 341 } |
| 337 ] | 342 ] |
| 338 } | 343 } |
| 339 ] | 344 ] |
| OLD | NEW |