mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Update dart:html based on new IDL files
R=antonm@google.com, blois@google.com BUG= Review URL: https://codereview.chromium.org//14153002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21256 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
7f11fa7ebd
commit
8bb2a43d5c
2 changed files with 264 additions and 0 deletions
|
@ -6133,6 +6133,10 @@ class Document extends Node native "*Document"
|
|||
@DocsEditable
|
||||
final String $dom_referrer;
|
||||
|
||||
@DomName('Document.securityPolicy')
|
||||
@DocsEditable
|
||||
final DomSecurityPolicy securityPolicy;
|
||||
|
||||
@JSName('selectedStylesheetSet')
|
||||
@DomName('Document.selectedStylesheetSet')
|
||||
@DocsEditable
|
||||
|
@ -7314,6 +7318,77 @@ class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
|
||||
@DocsEditable
|
||||
@DomName('SecurityPolicy')
|
||||
class DomSecurityPolicy native "*SecurityPolicy" {
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsEval')
|
||||
@DocsEditable
|
||||
final bool allowsEval;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsInlineScript')
|
||||
@DocsEditable
|
||||
final bool allowsInlineScript;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsInlineStyle')
|
||||
@DocsEditable
|
||||
final bool allowsInlineStyle;
|
||||
|
||||
@DomName('DOMSecurityPolicy.isActive')
|
||||
@DocsEditable
|
||||
final bool isActive;
|
||||
|
||||
@DomName('DOMSecurityPolicy.reportURIs')
|
||||
@DocsEditable
|
||||
@Returns('DomStringList')
|
||||
@Creates('DomStringList')
|
||||
final List<String> reportURIs;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsConnectionTo')
|
||||
@DocsEditable
|
||||
bool allowsConnectionTo(String url) native;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsFontFrom')
|
||||
@DocsEditable
|
||||
bool allowsFontFrom(String url) native;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsFormAction')
|
||||
@DocsEditable
|
||||
bool allowsFormAction(String url) native;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsFrameFrom')
|
||||
@DocsEditable
|
||||
bool allowsFrameFrom(String url) native;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsImageFrom')
|
||||
@DocsEditable
|
||||
bool allowsImageFrom(String url) native;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsMediaFrom')
|
||||
@DocsEditable
|
||||
bool allowsMediaFrom(String url) native;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsObjectFrom')
|
||||
@DocsEditable
|
||||
bool allowsObjectFrom(String url) native;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsPluginType')
|
||||
@DocsEditable
|
||||
bool allowsPluginType(String type) native;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsScriptFrom')
|
||||
@DocsEditable
|
||||
bool allowsScriptFrom(String url) native;
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsStyleFrom')
|
||||
@DocsEditable
|
||||
bool allowsStyleFrom(String url) native;
|
||||
}
|
||||
// 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.
|
||||
|
||||
|
||||
@DocsEditable
|
||||
@DomName('Selection')
|
||||
class DomSelection native "*Selection" {
|
||||
|
@ -12879,6 +12954,10 @@ class IFrameElement extends Element native "*HTMLIFrameElement" {
|
|||
@DocsEditable
|
||||
String sandbox;
|
||||
|
||||
@DomName('HTMLIFrameElement.seamless')
|
||||
@DocsEditable
|
||||
bool seamless;
|
||||
|
||||
@DomName('HTMLIFrameElement.src')
|
||||
@DocsEditable
|
||||
String src;
|
||||
|
@ -19393,6 +19472,10 @@ class ScriptElement extends Element native "*HTMLScriptElement" {
|
|||
@DocsEditable
|
||||
String htmlFor;
|
||||
|
||||
@DomName('HTMLScriptElement.nonce')
|
||||
@DocsEditable
|
||||
String nonce;
|
||||
|
||||
@DomName('HTMLScriptElement.src')
|
||||
@DocsEditable
|
||||
String src;
|
||||
|
@ -19477,6 +19560,49 @@ class ScriptProfileNode native "*ScriptProfileNode" {
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
|
||||
@DocsEditable
|
||||
@DomName('SecurityPolicyViolationEvent')
|
||||
class SecurityPolicyViolationEvent extends Event native "*SecurityPolicyViolationEvent" {
|
||||
|
||||
@JSName('blockedURI')
|
||||
@DomName('SecurityPolicyViolationEvent.blockedURI')
|
||||
@DocsEditable
|
||||
final String blockedUri;
|
||||
|
||||
@JSName('documentURI')
|
||||
@DomName('SecurityPolicyViolationEvent.documentURI')
|
||||
@DocsEditable
|
||||
final String documentUri;
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.effectiveDirective')
|
||||
@DocsEditable
|
||||
final String effectiveDirective;
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.lineNumber')
|
||||
@DocsEditable
|
||||
final int lineNumber;
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.originalPolicy')
|
||||
@DocsEditable
|
||||
final String originalPolicy;
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.referrer')
|
||||
@DocsEditable
|
||||
final String referrer;
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.sourceFile')
|
||||
@DocsEditable
|
||||
final String sourceFile;
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.violatedDirective')
|
||||
@DocsEditable
|
||||
final String violatedDirective;
|
||||
}
|
||||
// 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.
|
||||
|
||||
|
||||
@DomName('HTMLSelectElement')
|
||||
class SelectElement extends Element native "*HTMLSelectElement" {
|
||||
|
||||
|
|
|
@ -6730,6 +6730,10 @@ class Document extends Node
|
|||
@DocsEditable
|
||||
String get $dom_referrer native "Document_referrer_Getter";
|
||||
|
||||
@DomName('Document.securityPolicy')
|
||||
@DocsEditable
|
||||
DomSecurityPolicy get securityPolicy native "Document_securityPolicy_Getter";
|
||||
|
||||
@DomName('Document.selectedStylesheetSet')
|
||||
@DocsEditable
|
||||
String get $dom_selectedStylesheetSet native "Document_selectedStylesheetSet_Getter";
|
||||
|
@ -7902,6 +7906,79 @@ class DomPluginArray extends NativeFieldWrapperClass1 implements List<DomPlugin>
|
|||
// WARNING: Do not edit - generated code.
|
||||
|
||||
|
||||
@DocsEditable
|
||||
@DomName('SecurityPolicy')
|
||||
class DomSecurityPolicy extends NativeFieldWrapperClass1 {
|
||||
DomSecurityPolicy.internal();
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsEval')
|
||||
@DocsEditable
|
||||
bool get allowsEval native "DOMSecurityPolicy_allowsEval_Getter";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsInlineScript')
|
||||
@DocsEditable
|
||||
bool get allowsInlineScript native "DOMSecurityPolicy_allowsInlineScript_Getter";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsInlineStyle')
|
||||
@DocsEditable
|
||||
bool get allowsInlineStyle native "DOMSecurityPolicy_allowsInlineStyle_Getter";
|
||||
|
||||
@DomName('DOMSecurityPolicy.isActive')
|
||||
@DocsEditable
|
||||
bool get isActive native "DOMSecurityPolicy_isActive_Getter";
|
||||
|
||||
@DomName('DOMSecurityPolicy.reportURIs')
|
||||
@DocsEditable
|
||||
List<String> get reportURIs native "DOMSecurityPolicy_reportURIs_Getter";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsConnectionTo')
|
||||
@DocsEditable
|
||||
bool allowsConnectionTo(String url) native "DOMSecurityPolicy_allowsConnectionTo_Callback";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsFontFrom')
|
||||
@DocsEditable
|
||||
bool allowsFontFrom(String url) native "DOMSecurityPolicy_allowsFontFrom_Callback";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsFormAction')
|
||||
@DocsEditable
|
||||
bool allowsFormAction(String url) native "DOMSecurityPolicy_allowsFormAction_Callback";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsFrameFrom')
|
||||
@DocsEditable
|
||||
bool allowsFrameFrom(String url) native "DOMSecurityPolicy_allowsFrameFrom_Callback";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsImageFrom')
|
||||
@DocsEditable
|
||||
bool allowsImageFrom(String url) native "DOMSecurityPolicy_allowsImageFrom_Callback";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsMediaFrom')
|
||||
@DocsEditable
|
||||
bool allowsMediaFrom(String url) native "DOMSecurityPolicy_allowsMediaFrom_Callback";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsObjectFrom')
|
||||
@DocsEditable
|
||||
bool allowsObjectFrom(String url) native "DOMSecurityPolicy_allowsObjectFrom_Callback";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsPluginType')
|
||||
@DocsEditable
|
||||
bool allowsPluginType(String type) native "DOMSecurityPolicy_allowsPluginType_Callback";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsScriptFrom')
|
||||
@DocsEditable
|
||||
bool allowsScriptFrom(String url) native "DOMSecurityPolicy_allowsScriptFrom_Callback";
|
||||
|
||||
@DomName('DOMSecurityPolicy.allowsStyleFrom')
|
||||
@DocsEditable
|
||||
bool allowsStyleFrom(String url) native "DOMSecurityPolicy_allowsStyleFrom_Callback";
|
||||
|
||||
}
|
||||
// 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.
|
||||
|
||||
|
||||
@DocsEditable
|
||||
@DomName('Selection')
|
||||
class DomSelection extends NativeFieldWrapperClass1 {
|
||||
|
@ -13585,6 +13662,14 @@ class IFrameElement extends _Element_Merged {
|
|||
@DocsEditable
|
||||
void set sandbox(String value) native "HTMLIFrameElement_sandbox_Setter";
|
||||
|
||||
@DomName('HTMLIFrameElement.seamless')
|
||||
@DocsEditable
|
||||
bool get seamless native "HTMLIFrameElement_seamless_Getter";
|
||||
|
||||
@DomName('HTMLIFrameElement.seamless')
|
||||
@DocsEditable
|
||||
void set seamless(bool value) native "HTMLIFrameElement_seamless_Setter";
|
||||
|
||||
@DomName('HTMLIFrameElement.src')
|
||||
@DocsEditable
|
||||
String get src native "HTMLIFrameElement_src_Getter";
|
||||
|
@ -20894,6 +20979,14 @@ class ScriptElement extends _Element_Merged {
|
|||
@DocsEditable
|
||||
void set htmlFor(String value) native "HTMLScriptElement_htmlFor_Setter";
|
||||
|
||||
@DomName('HTMLScriptElement.nonce')
|
||||
@DocsEditable
|
||||
String get nonce native "HTMLScriptElement_nonce_Getter";
|
||||
|
||||
@DomName('HTMLScriptElement.nonce')
|
||||
@DocsEditable
|
||||
void set nonce(String value) native "HTMLScriptElement_nonce_Setter";
|
||||
|
||||
@DomName('HTMLScriptElement.src')
|
||||
@DocsEditable
|
||||
String get src native "HTMLScriptElement_src_Getter";
|
||||
|
@ -20993,6 +21086,51 @@ class ScriptProfileNode extends NativeFieldWrapperClass1 {
|
|||
// 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.
|
||||
|
||||
|
||||
@DocsEditable
|
||||
@DomName('SecurityPolicyViolationEvent')
|
||||
class SecurityPolicyViolationEvent extends Event {
|
||||
SecurityPolicyViolationEvent.internal() : super.internal();
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.blockedURI')
|
||||
@DocsEditable
|
||||
String get blockedUri native "SecurityPolicyViolationEvent_blockedURI_Getter";
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.documentURI')
|
||||
@DocsEditable
|
||||
String get documentUri native "SecurityPolicyViolationEvent_documentURI_Getter";
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.effectiveDirective')
|
||||
@DocsEditable
|
||||
String get effectiveDirective native "SecurityPolicyViolationEvent_effectiveDirective_Getter";
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.lineNumber')
|
||||
@DocsEditable
|
||||
int get lineNumber native "SecurityPolicyViolationEvent_lineNumber_Getter";
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.originalPolicy')
|
||||
@DocsEditable
|
||||
String get originalPolicy native "SecurityPolicyViolationEvent_originalPolicy_Getter";
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.referrer')
|
||||
@DocsEditable
|
||||
String get referrer native "SecurityPolicyViolationEvent_referrer_Getter";
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.sourceFile')
|
||||
@DocsEditable
|
||||
String get sourceFile native "SecurityPolicyViolationEvent_sourceFile_Getter";
|
||||
|
||||
@DomName('SecurityPolicyViolationEvent.violatedDirective')
|
||||
@DocsEditable
|
||||
String get violatedDirective native "SecurityPolicyViolationEvent_violatedDirective_Getter";
|
||||
|
||||
}
|
||||
// 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.
|
||||
|
||||
|
||||
@DomName('HTMLSelectElement')
|
||||
class SelectElement extends _Element_Merged {
|
||||
|
|
Loading…
Reference in a new issue