OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 class _NavigatorWrappingImplementation extends DOMWrapperBase implements Navigat
or { | 7 class _NavigatorWrappingImplementation extends DOMWrapperBase implements Navigat
or { |
8 _NavigatorWrappingImplementation() : super() {} | 8 _NavigatorWrappingImplementation() : super() {} |
9 | 9 |
10 static create__NavigatorWrappingImplementation() native { | 10 static create__NavigatorWrappingImplementation() native { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 static bool _javaEnabled(receiver) native; | 68 static bool _javaEnabled(receiver) native; |
69 | 69 |
70 void registerProtocolHandler(String scheme, String url, String title) { | 70 void registerProtocolHandler(String scheme, String url, String title) { |
71 _registerProtocolHandler(this, scheme, url, title); | 71 _registerProtocolHandler(this, scheme, url, title); |
72 return; | 72 return; |
73 } | 73 } |
74 static void _registerProtocolHandler(receiver, scheme, url, title) native; | 74 static void _registerProtocolHandler(receiver, scheme, url, title) native; |
75 | 75 |
76 void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback succ
essCallback, [NavigatorUserMediaErrorCallback errorCallback = null]) { | 76 void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback succ
essCallback, [NavigatorUserMediaErrorCallback errorCallback = null]) { |
77 if (errorCallback === null) { | 77 _webkitGetUserMedia(this, options, successCallback, errorCallback); |
78 _webkitGetUserMedia(this, options, successCallback); | 78 return; |
79 return; | |
80 } else { | |
81 _webkitGetUserMedia_2(this, options, successCallback, errorCallback); | |
82 return; | |
83 } | |
84 } | 79 } |
85 static void _webkitGetUserMedia(receiver, options, successCallback) native; | 80 static void _webkitGetUserMedia(receiver, options, successCallback, errorCallb
ack) native; |
86 static void _webkitGetUserMedia_2(receiver, options, successCallback, errorCal
lback) native; | |
87 | 81 |
88 String get typeName() { return "Navigator"; } | 82 String get typeName() { return "Navigator"; } |
89 } | 83 } |
OLD | NEW |