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

Unified Diff: tools/dom/templates/html/impl/impl_Navigator.darttemplate

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: tools/dom/templates/html/impl/impl_Navigator.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Navigator.darttemplate b/tools/dom/templates/html/impl/impl_Navigator.darttemplate
index e9d2d449c97dbeab1f3ef7bc403994281a3675f0..079fa93ed0df33de04fe97bdf59beb535a6b3bc8 100644
--- a/tools/dom/templates/html/impl/impl_Navigator.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Navigator.darttemplate
@@ -6,11 +6,9 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
-$if DART2JS
@DomName('Navigator.language')
String get language => JS('String', '#.language || #.userLanguage', this,
this);
-$endif
/**
* Gets a stream (video and or audio) from the local computer.
@@ -56,7 +54,6 @@ $endif
'audio': audio,
'video': video
};
-$if DART2JS
_ensureGetUserMedia();
this._getUserMedia(convertDartToNative_SerializedScriptValue(options),
(stream) {
@@ -65,19 +62,9 @@ $if DART2JS
(error) {
completer.completeError(error);
});
-$else
- this._getUserMedia(options,
- (stream) {
- completer.complete(stream);
- },
- (error) {
- completer.completeError(error);
- });
-$endif
return completer.future;
}
-$if DART2JS
_ensureGetUserMedia() {
if (JS('bool', '!(#.getUserMedia)', this)) {
JS('void', '#.getUserMedia = '
@@ -89,7 +76,6 @@ $if DART2JS
@JSName('getUserMedia')
void _getUserMedia(options, _NavigatorUserMediaSuccessCallback success,
_NavigatorUserMediaErrorCallback error) native;
-$endif
$!MEMBERS
}
« no previous file with comments | « tools/dom/templates/html/impl/impl_MutationObserver.darttemplate ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698