blob: 559ba25dabc04670e1c5db3149dc3fee9471bccc [file] [log] [blame]
// 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.
// WARNING: Do not edit - generated code.
part of $LIBRARYNAME;
$(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
$!MEMBERS
$if DART2JS
static bool get supported =>
JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)');
$else
static final bool supported = true;
$endif
static bool _shadowRootDeprecationReported = false;
static void _shadowRootDeprecationReport() {
if (!_shadowRootDeprecationReported) {
window.console.warn('''
ShadowRoot.resetStyleInheritance and ShadowRoot.applyAuthorStyles now deprecated in dart:html.
Please remove them from your code.
''');
_shadowRootDeprecationReported = true;
}
}
@deprecated
bool get resetStyleInheritance {
_shadowRootDeprecationReport();
// Default value from when it was specified.
return false;
}
@deprecated
void set resetStyleInheritance(bool value) {
_shadowRootDeprecationReport();
}
@deprecated
bool get applyAuthorStyles {
_shadowRootDeprecationReport();
// Default value from when it was specified.
return false;
}
@deprecated
void set applyAuthorStyles(bool value) {
_shadowRootDeprecationReport();
}
}