Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 // https://github.com/WICG/indexed-db-observers/blob/gh-pages/EXPLAINER.md#chang es-argument | |
| 6 | |
| 7 [ | |
| 8 RuntimeEnabled=IDBObserver | |
| 9 ] interface IDBObserverChanges { | |
|
Marijn Kruisselbrink
2016/06/15 13:02:44
this should probably have Exposed=(Window, Worker)
dmurph
2016/06/15 13:10:48
Does that make the object 'constructable' there? W
Marijn Kruisselbrink
2016/06/15 13:22:37
Exposed just means that it is visible and you can
palakj1
2016/06/15 19:16:30
IDBObserverChanges just needs to be passed back wi
dmurph
2016/06/15 19:35:15
I don't know what's normal here, I'll defer to Mar
| |
| 10 readonly attribute IDBDatabase database; | |
| 11 // Transaction contains the same object stores as the transaction on which I DBTransaction.observe was called. | |
| 12 readonly attribute IDBTransaction transaction; | |
| 13 // This is the javascript Map<String, sequence<IDBObserverChangesRecord>>, | |
| 14 // where the key is the object store name. | |
| 15 // TODO(palakj) : Replace 'any' with maplike<DOMString, sequence<IDBObserver ChangesRecord>>. | |
| 16 [CallWith=ScriptState] readonly attribute any records; | |
| 17 }; | |
| 18 | |
| 19 | |
| OLD | NEW |