Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: sdk/lib/svg/dartium/svg_dartium.dart

Issue 23055008: Making almost all dom_ methods private. Exceptions will be addressed in a later CL. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library dart.dom.svg; 1 library dart.dom.svg;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:_collection-dev' hide deprecated; 5 import 'dart:_collection-dev' hide deprecated;
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:nativewrappers'; 8 import 'dart:nativewrappers';
9 // DO NOT EDIT 9 // DO NOT EDIT
10 // Auto-generated dart:svg library. 10 // Auto-generated dart:svg library.
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 @DocsEditable() 934 @DocsEditable()
935 ElementInstance get parentNode native "SVGElementInstance_parentNode_Getter"; 935 ElementInstance get parentNode native "SVGElementInstance_parentNode_Getter";
936 936
937 @DomName('SVGElementInstance.previousSibling') 937 @DomName('SVGElementInstance.previousSibling')
938 @DocsEditable() 938 @DocsEditable()
939 ElementInstance get previousSibling native "SVGElementInstance_previousSibling _Getter"; 939 ElementInstance get previousSibling native "SVGElementInstance_previousSibling _Getter";
940 940
941 @DomName('SVGElementInstance.addEventListener') 941 @DomName('SVGElementInstance.addEventListener')
942 @DocsEditable() 942 @DocsEditable()
943 @Experimental() // untriaged 943 @Experimental() // untriaged
944 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "SVGElementInstance_addEventListener_Callback"; 944 void _addEventListener(String type, EventListener listener, [bool useCapture]) native "SVGElementInstance_addEventListener_Callback";
945 945
946 @DomName('SVGElementInstance.dispatchEvent') 946 @DomName('SVGElementInstance.dispatchEvent')
947 @DocsEditable() 947 @DocsEditable()
948 @Experimental() // untriaged 948 @Experimental() // untriaged
949 bool dispatchEvent(Event event) native "SVGElementInstance_dispatchEvent_Callb ack"; 949 bool dispatchEvent(Event event) native "SVGElementInstance_dispatchEvent_Callb ack";
950 950
951 @DomName('SVGElementInstance.removeEventListener') 951 @DomName('SVGElementInstance.removeEventListener')
952 @DocsEditable() 952 @DocsEditable()
953 @Experimental() // untriaged 953 @Experimental() // untriaged
954 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "SVGElementInstance_removeEventListener_Callback"; 954 void _removeEventListener(String type, EventListener listener, [bool useCaptur e]) native "SVGElementInstance_removeEventListener_Callback";
955 955
956 @DomName('SVGElementInstance.onabort') 956 @DomName('SVGElementInstance.onabort')
957 @DocsEditable() 957 @DocsEditable()
958 Stream<Event> get onAbort => abortEvent.forTarget(this); 958 Stream<Event> get onAbort => abortEvent.forTarget(this);
959 959
960 @DomName('SVGElementInstance.onbeforecopy') 960 @DomName('SVGElementInstance.onbeforecopy')
961 @DocsEditable() 961 @DocsEditable()
962 Stream<Event> get onBeforeCopy => beforeCopyEvent.forTarget(this); 962 Stream<Event> get onBeforeCopy => beforeCopyEvent.forTarget(this);
963 963
964 @DomName('SVGElementInstance.onbeforecut') 964 @DomName('SVGElementInstance.onbeforecut')
(...skipping 4334 matching lines...) Expand 10 before | Expand all | Expand 10 after
5299 class SvgDocument extends Document { 5299 class SvgDocument extends Document {
5300 // To suppress missing implicit constructor warnings. 5300 // To suppress missing implicit constructor warnings.
5301 factory SvgDocument._() { throw new UnsupportedError("Not supported"); } 5301 factory SvgDocument._() { throw new UnsupportedError("Not supported"); }
5302 5302
5303 @DomName('SVGDocument.rootElement') 5303 @DomName('SVGDocument.rootElement')
5304 @DocsEditable() 5304 @DocsEditable()
5305 SvgSvgElement get rootElement native "SVGDocument_rootElement_Getter"; 5305 SvgSvgElement get rootElement native "SVGDocument_rootElement_Getter";
5306 5306
5307 @DomName('SVGDocument.createEvent') 5307 @DomName('SVGDocument.createEvent')
5308 @DocsEditable() 5308 @DocsEditable()
5309 Event $dom_createEvent(String eventType) native "SVGDocument_createEvent_Callb ack"; 5309 Event _createEvent(String eventType) native "SVGDocument_createEvent_Callback" ;
5310 5310
5311 } 5311 }
5312 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 5312 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
5313 // for details. All rights reserved. Use of this source code is governed by a 5313 // for details. All rights reserved. Use of this source code is governed by a
5314 // BSD-style license that can be found in the LICENSE file. 5314 // BSD-style license that can be found in the LICENSE file.
5315 5315
5316 5316
5317 class _AttributeClassSet extends CssClassSetImpl { 5317 class _AttributeClassSet extends CssClassSetImpl {
5318 final Element _element; 5318 final Element _element;
5319 5319
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
5396 @DomName('Element.insertAdjacentHTML') 5396 @DomName('Element.insertAdjacentHTML')
5397 void insertAdjacentHtml(String where, String text) { 5397 void insertAdjacentHtml(String where, String text) {
5398 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); 5398 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG.");
5399 } 5399 }
5400 5400
5401 @DomName('Element.insertAdjacentHTML') 5401 @DomName('Element.insertAdjacentHTML')
5402 Element insertAdjacentElement(String where, Element element) { 5402 Element insertAdjacentElement(String where, Element element) {
5403 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); 5403 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG.");
5404 } 5404 }
5405 5405
5406 HtmlCollection get $dom_children { 5406 HtmlCollection get _children {
5407 throw new UnsupportedError("Cannot get dom_children on SVG."); 5407 throw new UnsupportedError("Cannot get _children on SVG.");
5408 } 5408 }
5409 5409
5410 bool get isContentEditable => false; 5410 bool get isContentEditable => false;
5411 void click() { 5411 void click() {
5412 throw new UnsupportedError("Cannot invoke click SVG."); 5412 throw new UnsupportedError("Cannot invoke click SVG.");
5413 } 5413 }
5414 5414
5415 /** 5415 /**
5416 * Checks to see if the SVG element type is supported by the current platform. 5416 * Checks to see if the SVG element type is supported by the current platform.
5417 * 5417 *
5418 * The tag should be a valid SVG element tag name. 5418 * The tag should be a valid SVG element tag name.
5419 */ 5419 */
5420 static bool isTagSupported(String tag) { 5420 static bool isTagSupported(String tag) {
5421 var e = new SvgElement.tag(tag); 5421 var e = new SvgElement.tag(tag);
5422 return e is SvgElement && !(e is UnknownElement); 5422 return e is SvgElement && !(e is UnknownElement);
5423 } 5423 }
5424 // To suppress missing implicit constructor warnings. 5424 // To suppress missing implicit constructor warnings.
5425 factory SvgElement._() { throw new UnsupportedError("Not supported"); } 5425 factory SvgElement._() { throw new UnsupportedError("Not supported"); }
5426 5426
5427 @DomName('SVGElement.className') 5427 @DomName('SVGElement.className')
5428 @DocsEditable() 5428 @DocsEditable()
5429 @Experimental() // untriaged 5429 @Experimental() // untriaged
5430 AnimatedString get $dom_svgClassName native "SVGElement_className_Getter"; 5430 AnimatedString get _svgClassName native "SVGElement_className_Getter";
5431 5431
5432 @DomName('SVGElement.ownerSVGElement') 5432 @DomName('SVGElement.ownerSVGElement')
5433 @DocsEditable() 5433 @DocsEditable()
5434 SvgSvgElement get ownerSvgElement native "SVGElement_ownerSVGElement_Getter"; 5434 SvgSvgElement get ownerSvgElement native "SVGElement_ownerSVGElement_Getter";
5435 5435
5436 @DomName('SVGElement.style') 5436 @DomName('SVGElement.style')
5437 @DocsEditable() 5437 @DocsEditable()
5438 @Experimental() // untriaged 5438 @Experimental() // untriaged
5439 CssStyleDeclaration get style native "SVGElement_style_Getter"; 5439 CssStyleDeclaration get style native "SVGElement_style_Getter";
5440 5440
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after
6876 @Unstable() 6876 @Unstable()
6877 abstract class _SVGVKernElement extends SvgElement { 6877 abstract class _SVGVKernElement extends SvgElement {
6878 // To suppress missing implicit constructor warnings. 6878 // To suppress missing implicit constructor warnings.
6879 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); } 6879 factory _SVGVKernElement._() { throw new UnsupportedError("Not supported"); }
6880 6880
6881 @DomName('SVGVKernElement.SVGVKernElement') 6881 @DomName('SVGVKernElement.SVGVKernElement')
6882 @DocsEditable() 6882 @DocsEditable()
6883 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 6883 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
6884 6884
6885 } 6885 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698