| Index: tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate
|
| diff --git a/tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate b/tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..27275bf5afa5af54c3201fc7521a6be186ba7ce7
|
| --- /dev/null
|
| +++ b/tools/dom/templates/html/dart2js/impl_WorkerContext.darttemplate
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +part of $LIBRARYNAME;
|
| +
|
| +$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| +$!MEMBERS
|
| +
|
| + /**
|
| + * Gets an instance of the Indexed DB factory to being using Indexed DB.
|
| + *
|
| + * Use [IdbFactory.supported] to check if Indexed DB is supported on the
|
| + * current platform.
|
| + */
|
| + @SupportedBrowser(SupportedBrowser.CHROME, '23.0')
|
| + @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0')
|
| + @SupportedBrowser(SupportedBrowser.IE, '10.0')
|
| + @Experimental
|
| + IdbFactory get indexedDB =>
|
| + JS('IdbFactory',
|
| + '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB',
|
| + this, this, this);
|
| +}
|
|
|