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

Unified Diff: dart/sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 644913002: Version 1.7.1 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.7/
Patch Set: Created 6 years, 2 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:
Download patch
« no previous file with comments | « dart/sdk/lib/html/dart2js/html_dart2js.dart ('k') | dart/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/html/dartium/html_dartium.dart
===================================================================
--- dart/sdk/lib/html/dartium/html_dartium.dart (revision 40988)
+++ dart/sdk/lib/html/dartium/html_dartium.dart (working copy)
@@ -3366,6 +3366,11 @@
@DocsEditable()
String get data => _blink.BlinkCompositionEvent.data_Getter(this);
+ @DomName('CompositionEvent.getSegments')
+ @DocsEditable()
+ @Experimental() // untriaged
+ List<int> getSegments() => _blink.BlinkCompositionEvent.getSegments_Callback(this);
+
@DomName('CompositionEvent.initCompositionEvent')
@DocsEditable()
void _initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) => _blink.BlinkCompositionEvent.initCompositionEvent_Callback_DOMString_boolean_boolean_Window_DOMString(this, typeArg, canBubbleArg, cancelableArg, viewArg, dataArg);
@@ -21644,13 +21649,24 @@
// To suppress missing implicit constructor warnings.
factory MidiOutput._() { throw new UnsupportedError("Not supported"); }
- void send(Uint8List data, [num timestamp]) {
- if (timestamp != null) {
+ void send(data, [num timestamp]) {
+ if ((data is Uint8List || data == null) && timestamp == null) {
+ _blink.BlinkMIDIOutput.send_Callback_Uint8Array(this, data);
+ return;
+ }
+ if ((timestamp is num || timestamp == null) && (data is Uint8List || data == null)) {
_blink.BlinkMIDIOutput.send_Callback_Uint8Array_double(this, data, timestamp);
return;
}
- _blink.BlinkMIDIOutput.send_Callback_Uint8Array(this, data);
- return;
+ if ((data is List<int> || data == null) && timestamp == null) {
+ _blink.BlinkMIDIOutput.send_Callback_SEQ_ul_SEQ(this, data);
+ return;
+ }
+ if ((timestamp is num || timestamp == null) && (data is List<int> || data == null)) {
+ _blink.BlinkMIDIOutput.send_Callback_SEQ_ul_SEQ_double(this, data, timestamp);
+ return;
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
}
}
« no previous file with comments | « dart/sdk/lib/html/dart2js/html_dart2js.dart ('k') | dart/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698