| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 [ | |
| 6 { | |
| 7 "namespace": "experimental.infobars", | |
| 8 "dependencies": [ "windows" ], | |
| 9 "types": [], | |
| 10 "functions": [ | |
| 11 { | |
| 12 "name": "show", | |
| 13 "type": "function", | |
| 14 "description": "Shows an infobar in the specified tab. The infobar will
be closed automatically when the tab navigates. Use window.close() to close the
infobar before then.", | |
| 15 "parameters": [ | |
| 16 { | |
| 17 "name": "details", | |
| 18 "type": "object", | |
| 19 "properties": { | |
| 20 "tabId": { | |
| 21 "type": "integer", | |
| 22 "description": "The tab id for the tab to display the infobar in
." | |
| 23 }, | |
| 24 "path": { | |
| 25 "type": "string", | |
| 26 "description": "The html file that contains the infobar." | |
| 27 }, | |
| 28 "height": { | |
| 29 "type": "integer", | |
| 30 "description": "The height (in pixels) of the infobar to show. I
f omitted, the default infobar height will be used.", | |
| 31 "optional": true, | |
| 32 "minimum": 0, | |
| 33 "maximum": 72 | |
| 34 } | |
| 35 } | |
| 36 }, | |
| 37 { | |
| 38 "type": "function", | |
| 39 "name": "callback", | |
| 40 "optional": true, | |
| 41 "parameters": [ | |
| 42 { | |
| 43 "name": "window", "$ref": "windows.Window", "description": "Cont
ains details about the window in which the infobar was created." | |
| 44 } | |
| 45 ] | |
| 46 } | |
| 47 ] | |
| 48 } | |
| 49 ] | |
| 50 } | |
| 51 ] | |
| OLD | NEW |