Chromium Code Reviews| 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": "events", | 7 "namespace": "events", |
| 8 "description": "The <code>chrome.events</code> namespace contains common typ es used by APIs dispatching events to notify you when something interesting happ ens.", | 8 "description": "The <code>chrome.events</code> namespace contains common typ es used by APIs dispatching events to notify you when something interesting happ ens.", |
| 9 "compiler_options": { | 9 "compiler_options": { |
| 10 "implemented_in": "extensions/browser/api/declarative/declarative_api.h" | 10 "implemented_in": "extensions/browser/api/declarative/declarative_api.h" |
| 11 }, | 11 }, |
| 12 "types": [ | 12 "types": [ |
| 13 { | 13 { |
| 14 "id": "Rule", | 14 "id": "Rule", |
| 15 "type": "object", | 15 "type": "object", |
| 16 "description": "Description of a declarative rule for handling events.", | 16 "description": "Description of a declarative rule for handling events.", |
| 17 "properties": { | 17 "properties": { |
| 18 "id": { | 18 "id": { |
| 19 "type": "string", | 19 "type": "string", |
| 20 "optional": true, | 20 "optional": true, |
| 21 "description": "Optional identifier that allows referencing this rul e." | 21 "description": "Optional identifier that allows referencing this rul e." |
| 22 }, | 22 }, |
| 23 "removable": { | |
|
not at google - send to devlin
2015/06/04 17:58:49
This shouldn't be part of the public API, instead,
danduong
2015/06/04 19:10:59
Which internal data-structure. Part of the reason
not at google - send to devlin
2015/06/04 19:23:53
However rules are implemented in C++. you're chang
danduong
2015/06/04 21:39:40
Done.
| |
| 24 "type": "boolean", | |
| 25 "optional": true, | |
| 26 "description": "False if the rule is not programmatically removable ." | |
| 27 }, | |
| 23 "tags": { | 28 "tags": { |
| 24 "type": "array", | 29 "type": "array", |
| 25 "items": {"type": "string"}, | 30 "items": {"type": "string"}, |
| 26 "optional": true, | 31 "optional": true, |
| 27 "description": "Tags can be used to annotate rules and perform oper ations on sets of rules." | 32 "description": "Tags can be used to annotate rules and perform oper ations on sets of rules." |
| 28 }, | 33 }, |
| 29 "conditions": { | 34 "conditions": { |
| 30 "type": "array", | 35 "type": "array", |
| 31 "items": {"type": "any"}, | 36 "items": {"type": "any"}, |
| 32 "description": "List of conditions that can trigger the actions." | 37 "description": "List of conditions that can trigger the actions." |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 326 {"type": "array", "items": {"type": "integer"}, "description": " A pair of integers identiying the start and end (both inclusive) of a port range ."} | 331 {"type": "array", "items": {"type": "integer"}, "description": " A pair of integers identiying the start and end (both inclusive) of a port range ."} |
| 327 ] | 332 ] |
| 328 } | 333 } |
| 329 } | 334 } |
| 330 } | 335 } |
| 331 } | 336 } |
| 332 ] | 337 ] |
| 333 } | 338 } |
| 334 ] | 339 ] |
| 335 | 340 |
| OLD | NEW |