Permalink
Browse files

Migrate from experimental.serial to serial.

A beneficial side effect of this change was that sed added
newlines to the end of every file that needed it.
  • Loading branch information...
1 parent c7a1356 commit 3304ccbb483c937fe57069387111269796bee927 Mike Tsao committed Aug 6, 2012
Showing with 141 additions and 139 deletions.
  1. +1 −1 README.md
  2. +1 −1 diff/lib/jquery-1.7.2.min.js
  3. +1 −1 gdocs/bootstrap/js/bootstrap.js
  4. +1 −1 gdocs/bootstrap/js/bootstrap.min.js
  5. +1 −1 gdocs/js/angular-1.0.0rc7.min.js
  6. +1 −1 gdocs/js/app.js
  7. +5 −5 io2012-presentation/js/servo.js
  8. +4 −4 io2012-presentation/servo/servo.js
  9. +1 −1 mini-code-edit/cm/lib/util/dialog.js
  10. +1 −1 mini-code-edit/cm/mode/smalltalk/smalltalk.js
  11. +1 −1 mini-code-edit/cm/mode/smarty/smarty.js
  12. +1 −1 mini-code-edit/cm/mode/xquery/test/testMultiAttr.js
  13. +1 −1 mini-code-edit/snippets.js
  14. +5 −5 serial-control-signals/logic.js
  15. +2 −1 serial-control-signals/manifest.json
  16. +5 −5 serial/adkjs/app/js/serial.js
  17. +1 −1 serial/ledtoggle/main.js
  18. +1 −0 servo/manifest.json
  19. +6 −6 servo/servo.js
  20. +1 −1 text-editor/editor.js
  21. +1 −1 text-editor/lib/ace/ace.js
  22. +1 −1 text-editor/lib/ace/anchor_test.js
  23. +1 −1 text-editor/lib/ace/commands/command_manager_test.js
  24. +1 −1 text-editor/lib/ace/commands/multi_select_commands.js
  25. +1 −1 text-editor/lib/ace/config.js
  26. +1 −1 text-editor/lib/ace/document_test.js
  27. +1 −1 text-editor/lib/ace/edit_session/fold.js
  28. +1 −1 text-editor/lib/ace/edit_session/fold_line.js
  29. +1 −1 text-editor/lib/ace/edit_session_test.js
  30. +1 −1 text-editor/lib/ace/editor_change_document_test.js
  31. +1 −1 text-editor/lib/ace/editor_highlight_selected_word_test.js
  32. +1 −1 text-editor/lib/ace/editor_navigation_test.js
  33. +1 −1 text-editor/lib/ace/editor_text_edit_test.js
  34. +1 −1 text-editor/lib/ace/ext/static_highlight.js
  35. +1 −1 text-editor/lib/ace/ext/static_highlight_test.js
  36. +1 −1 text-editor/lib/ace/layer/text_test.js
  37. +1 −1 text-editor/lib/ace/lib/dom.js
  38. +1 −1 text-editor/lib/ace/lib/es5-shim.js
  39. +1 −1 text-editor/lib/ace/lib/event_emitter.js
  40. +1 −1 text-editor/lib/ace/lib/event_emitter_test.js
  41. +1 −1 text-editor/lib/ace/lib/fixoldbrowsers.js
  42. +1 −1 text-editor/lib/ace/lib/keys.js
  43. +1 −1 text-editor/lib/ace/lib/net.js
  44. +1 −1 text-editor/lib/ace/mode/behaviour.js
  45. +1 −1 text-editor/lib/ace/mode/behaviour/cstyle.js
  46. +1 −1 text-editor/lib/ace/mode/behaviour/xml.js
  47. +1 −1 text-editor/lib/ace/mode/coffee.js
  48. +1 −1 text-editor/lib/ace/mode/coffee/coffee-script.js
  49. +1 −1 text-editor/lib/ace/mode/coffee/helpers.js
  50. +1 −1 text-editor/lib/ace/mode/coffee/lexer.js
  51. +1 −1 text-editor/lib/ace/mode/coffee/nodes.js
  52. +1 −1 text-editor/lib/ace/mode/coffee/parser.js
  53. +1 −1 text-editor/lib/ace/mode/coffee/parser_test.js
  54. +1 −1 text-editor/lib/ace/mode/coffee/rewriter.js
  55. +1 −1 text-editor/lib/ace/mode/coffee/scope.js
  56. +1 −1 text-editor/lib/ace/mode/coffee_highlight_rules_test.js
  57. +1 −1 text-editor/lib/ace/mode/coffee_worker.js
  58. +1 −1 text-editor/lib/ace/mode/css/csslint.js
  59. +1 −1 text-editor/lib/ace/mode/css_highlight_rules_test.js
  60. +1 −1 text-editor/lib/ace/mode/css_test.js
  61. +1 −1 text-editor/lib/ace/mode/css_worker.js
  62. +1 −1 text-editor/lib/ace/mode/css_worker_test.js
  63. +1 −1 text-editor/lib/ace/mode/folding/cstyle.js
  64. +1 −1 text-editor/lib/ace/mode/folding/cstyle_test.js
  65. +1 −1 text-editor/lib/ace/mode/folding/html.js
  66. +1 −1 text-editor/lib/ace/mode/folding/html_test.js
  67. +1 −1 text-editor/lib/ace/mode/folding/mixed.js
  68. +1 −1 text-editor/lib/ace/mode/folding/pythonic.js
  69. +1 −1 text-editor/lib/ace/mode/folding/pythonic_test.js
  70. +1 −1 text-editor/lib/ace/mode/folding/xml.js
  71. +1 −1 text-editor/lib/ace/mode/folding/xml_test.js
  72. +1 −1 text-editor/lib/ace/mode/html_highlight_rules_test.js
  73. +1 −1 text-editor/lib/ace/mode/html_test.js
  74. +1 −1 text-editor/lib/ace/mode/javascript_highlight_rules_test.js
  75. +1 −1 text-editor/lib/ace/mode/javascript_test.js
  76. +1 −1 text-editor/lib/ace/mode/javascript_worker.js
  77. +1 −1 text-editor/lib/ace/mode/javascript_worker_test.js
  78. +1 −1 text-editor/lib/ace/mode/json.js
  79. +1 −1 text-editor/lib/ace/mode/json/json_parse.js
  80. +1 −1 text-editor/lib/ace/mode/json_worker.js
  81. +1 −1 text-editor/lib/ace/mode/json_worker_test.js
  82. +1 −1 text-editor/lib/ace/mode/markdown.js
  83. +1 −1 text-editor/lib/ace/mode/markdown_highlight_rules.js
  84. +1 −1 text-editor/lib/ace/mode/python_test.js
  85. +1 −1 text-editor/lib/ace/mode/text_test.js
  86. +1 −1 text-editor/lib/ace/mode/xml_highlight_rules_test.js
  87. +1 −1 text-editor/lib/ace/mode/xml_test.js
  88. +1 −1 text-editor/lib/ace/model/editor.js
  89. +1 −1 text-editor/lib/ace/mouse/default_gutter_handler.js
  90. +1 −1 text-editor/lib/ace/mouse/fold_handler.js
  91. +1 −1 text-editor/lib/ace/mouse/multi_select_handler.js
  92. +1 −1 text-editor/lib/ace/multi_select.js
  93. +1 −1 text-editor/lib/ace/multi_select_test.js
  94. +1 −1 text-editor/lib/ace/narcissus/definitions.js
  95. +1 −1 text-editor/lib/ace/narcissus/lexer.js
  96. +1 −1 text-editor/lib/ace/narcissus/options.js
  97. +1 −1 text-editor/lib/ace/narcissus/parser.js
  98. +1 −1 text-editor/lib/ace/placeholder_test.js
  99. +1 −1 text-editor/lib/ace/range_list_test.js
  100. +1 −1 text-editor/lib/ace/range_test.js
  101. +1 −1 text-editor/lib/ace/requirejs/text.js
  102. +1 −1 text-editor/lib/ace/search_test.js
  103. +1 −1 text-editor/lib/ace/test/all.js
  104. +1 −1 text-editor/lib/ace/test/assertions.js
  105. +1 −1 text-editor/lib/ace/test/asyncjs/assert.js
  106. +1 −1 text-editor/lib/ace/test/asyncjs/async.js
  107. +1 −1 text-editor/lib/ace/test/asyncjs/index.js
  108. +1 −1 text-editor/lib/ace/test/asyncjs/test.js
  109. +1 −1 text-editor/lib/ace/test/asyncjs/utils.js
  110. +1 −1 text-editor/lib/ace/test/benchmark.js
  111. +1 −1 text-editor/lib/ace/test/mockdom.js
  112. +1 −1 text-editor/lib/ace/token_iterator_test.js
  113. +1 −1 text-editor/lib/ace/unicode.js
  114. +1 −1 text-editor/lib/ace/virtual_renderer_test.js
  115. +1 −1 text-editor/lib/ace/worker/jshint.js
  116. +1 −1 text-editor/lib/ace/worker/jslint.js
  117. +1 −1 text-editor/lib/ace/worker/mirror.js
  118. +1 −1 text-editor/modes.js
  119. +1 −1 text-editor/require.js
  120. +1 −1 webintents/js/main.js
View
@@ -1 +1 @@
-Please join the [Chromium Apps](https://groups.google.com/a/chromium.org/forum/?fromgroups#!forum/chromium-apps) group for general discussion. We're also available on IRC at #chromium-apps ([Freenode](http://freenode.net/)).
+Please join the [Chromium Apps](https://groups.google.com/a/chromium.org/forum/?fromgroups#!forum/chromium-apps) group for general discussion. We're also available on IRC at #chromium-apps ([Freenode](http://freenode.net/)).

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1734,4 +1734,4 @@
})
})
-}( window.jQuery );
+}( window.jQuery );

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -83,4 +83,4 @@ document.querySelector('input[type="file"]').addEventListener('change', function
var file = this.files[0]; // TODO: handle more than one file.
upload(file);
});
-*/
+*/
@@ -12,7 +12,7 @@ var servo = {
var buffer = new ArrayBuffer(1);
var uint8View = new Uint8Array(buffer);
uint8View[0] = 48 + position;
- chrome.experimental.serial.write(servo.connectionId, buffer, servo.onWrite);
+ chrome.serial.write(servo.connectionId, buffer, servo.onWrite);
},
onOpen: function(openInfo) {
@@ -47,7 +47,7 @@ var servo = {
servo.fail(eligiblePorts.length + ' eligible ports found, trying ' + port);
}
- chrome.experimental.serial.open(port, servo.onOpen);
+ chrome.serial.open(port, servo.onOpen);
},
onSliderChange: function() {
@@ -64,7 +64,7 @@ var servo = {
init: function() {
if (servo.connectionId != -1) {
- chrome.experimental.serial.close(servo.connectionId, function() {
+ chrome.serial.close(servo.connectionId, function() {
servo.connectionId = -1;
servo.init();
});
@@ -73,15 +73,15 @@ var servo = {
document.getElementById('spinner-error').classList.remove('visible');
document.getElementById('spinner-input').onchange = servo.onSliderChange;
- chrome.experimental.serial.getPorts(servo.onGetPorts);
+ chrome.serial.getPorts(servo.onGetPorts);
},
shutDown: function() {
if (servo.connectionId == -1) {
return;
}
- chrome.experimental.serial.close(servo.connectionId, function() {
+ chrome.serial.close(servo.connectionId, function() {
servo.connectionId = -1;
});
},
@@ -4,7 +4,7 @@ function setPosition(position) {
var buffer = new ArrayBuffer(1);
var uint8View = new Uint8Array(buffer);
uint8View[0] = '0'.charCodeAt(0) + position;
- chrome.experimental.serial.write(connectionId, buffer, function() {});
+ chrome.serial.write(connectionId, buffer, function() {});
};
function onOpen(openInfo) {
@@ -36,7 +36,7 @@ function buildPortPicker(ports) {
portPicker.onchange = function() {
if (connectionId != -1) {
- chrome.experimental.serial.close(connectionId, openSelectedPort);
+ chrome.serial.close(connectionId, openSelectedPort);
return;
}
openSelectedPort();
@@ -46,7 +46,7 @@ function buildPortPicker(ports) {
function openSelectedPort() {
var portPicker = document.getElementById('port-picker');
var selectedPort = portPicker.options[portPicker.selectedIndex].value;
- chrome.experimental.serial.open(selectedPort, onOpen);
+ chrome.serial.open(selectedPort, onOpen);
}
onload = function() {
@@ -66,7 +66,7 @@ onload = function() {
setPosition(parseInt(this.value, 10));
};
- chrome.experimental.serial.getPorts(function(ports) {
+ chrome.serial.getPorts(function(ports) {
buildPortPicker(ports)
openSelectedPort();
});
@@ -60,4 +60,4 @@
CodeMirror.connect(b, "focus", function() { ++blurring; });
}
});
-})();
+})();
@@ -136,4 +136,4 @@ CodeMirror.defineMode('smalltalk', function(config, modeConfig) {
});
-CodeMirror.defineMIME('text/x-stsrc', {name: 'smalltalk'});
+CodeMirror.defineMIME('text/x-stsrc', {name: 'smalltalk'});
@@ -145,4 +145,4 @@ CodeMirror.defineMode("smarty", function(config, parserConfig) {
}
});
-CodeMirror.defineMIME("text/x-smarty", "smarty");
+CodeMirror.defineMIME("text/x-smarty", "smarty");
@@ -13,4 +13,4 @@
equal(result, expected);
$("#editor").html("");
});
- });
+ });

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -7,7 +7,7 @@ function onSetControlSignals(result) {
};
function changeSignals() {
- chrome.experimental.serial.setControlSignals(connectionId,
+ chrome.serial.setControlSignals(connectionId,
{ dtr: dtr, rts: rts },
onSetControlSignals);
}
@@ -18,7 +18,7 @@ function onGetControlSignals(options) {
}
function readSignals() {
- chrome.experimental.serial.getControlSignals(connectionId,
+ chrome.serial.getControlSignals(connectionId,
onGetControlSignals);
}
@@ -55,7 +55,7 @@ function buildPortPicker(ports) {
portPicker.onchange = function() {
if (connectionId != -1) {
- chrome.experimental.serial.close(connectionId, openSelectedPort);
+ chrome.serial.close(connectionId, openSelectedPort);
return;
}
openSelectedPort();
@@ -65,7 +65,7 @@ function buildPortPicker(ports) {
function openSelectedPort() {
var portPicker = document.getElementById('port-picker');
var selectedPort = portPicker.options[portPicker.selectedIndex].value;
- chrome.experimental.serial.open(selectedPort, onOpen);
+ chrome.serial.open(selectedPort, onOpen);
}
onload = function() {
@@ -83,7 +83,7 @@ onload = function() {
e_dcd = document.getElementById('dcd_status');
e_cts = document.getElementById('cts_status');
- chrome.experimental.serial.getPorts(function(ports) {
+ chrome.serial.getPorts(function(ports) {
buildPortPicker(ports)
openSelectedPort();
});
@@ -11,6 +11,7 @@
},
"permissions": [
- "experimental"
+ "experimental",
+ "serial"
]
}
@@ -54,15 +54,15 @@ var serial_lib=(function() {
dataRead+=str;
}
}
- chrome.experimental.serial.read(connectionInfo.connectionId, 1, onCharRead);
+ chrome.serial.read(connectionInfo.connectionId, 1, onCharRead);
}
var getPorts=function(callback) {
- chrome.experimental.serial.getPorts(callback);
+ chrome.serial.getPorts(callback);
};
var openSerial=function(serialPort, callback) {
- chrome.experimental.serial.open(serialPort, function(cInfo) {
+ chrome.serial.open(serialPort, function(cInfo) {
onOpen(cInfo, callback)
});
};
@@ -79,7 +79,7 @@ var serial_lib=(function() {
};
var writeSerial=function(str) {
- chrome.experimental.serial.write(connectionInfo.connectionId, str2ab(str), onWrite);
+ chrome.serial.write(connectionInfo.connectionId, str2ab(str), onWrite);
}
var onWrite=function(obj) {
@@ -112,7 +112,7 @@ var serial_lib=(function() {
var closeSerial=function(callback) {
if (connectionInfo) {
- chrome.experimental.serial.close(connectionInfo.connectionId,
+ chrome.serial.close(connectionInfo.connectionId,
function(result) {
onClose(result, callback);
});
View
@@ -1,6 +1,6 @@
//const device = '/dev/tty.usbserial-A100DUTY';
const device = '/dev/tty.usbmodem621';
-const serial = chrome.experimental.serial;
+const serial = chrome.serial;
const timeout = 100;
function SerialConnection() {
View
@@ -17,6 +17,7 @@
"permissions": [
"experimental",
+ "serial",
"videoCapture"
]
}
View
@@ -4,7 +4,7 @@ function setPosition(position) {
var buffer = new ArrayBuffer(1);
var uint8View = new Uint8Array(buffer);
uint8View[0] = '0'.charCodeAt(0) + position;
- chrome.experimental.serial.write(connectionId, buffer, function() {});
+ chrome.serial.write(connectionId, buffer, function() {});
};
function onRead(readInfo) {
@@ -16,7 +16,7 @@ function onRead(readInfo) {
'rotateZ(' + rotation + 'deg)';
// Keep on reading.
- chrome.experimental.serial.read(connectionId, 1, onRead);
+ chrome.serial.read(connectionId, 1, onRead);
};
function onOpen(openInfo) {
@@ -28,7 +28,7 @@ function onOpen(openInfo) {
setStatus('Connected');
setPosition(0);
- chrome.experimental.serial.read(connectionId, 1, onRead);
+ chrome.serial.read(connectionId, 1, onRead);
};
function setStatus(status) {
@@ -49,7 +49,7 @@ function buildPortPicker(ports) {
portPicker.onchange = function() {
if (connectionId != -1) {
- chrome.experimental.serial.close(connectionId, openSelectedPort);
+ chrome.serial.close(connectionId, openSelectedPort);
return;
}
openSelectedPort();
@@ -59,7 +59,7 @@ function buildPortPicker(ports) {
function openSelectedPort() {
var portPicker = document.getElementById('port-picker');
var selectedPort = portPicker.options[portPicker.selectedIndex].value;
- chrome.experimental.serial.open(selectedPort, onOpen);
+ chrome.serial.open(selectedPort, onOpen);
}
onload = function() {
@@ -79,7 +79,7 @@ onload = function() {
setPosition(parseInt(this.value, 10));
};
- chrome.experimental.serial.getPorts(function(ports) {
+ chrome.serial.getPorts(function(ports) {
buildPortPicker(ports)
openSelectedPort();
});
View
@@ -268,4 +268,4 @@ if (launchData) {
replaceDocContentsFromFileEntry();
}
-});
+});
@@ -83,4 +83,4 @@ exports.edit = function(el) {
return editor;
};
-});
+});
@@ -181,4 +181,4 @@ module.exports = {
if (typeof module !== "undefined" && module === require.main) {
require("asyncjs").test.testcase(module.exports).exec()
-}
+}
@@ -190,4 +190,4 @@ module.exports = {
if (typeof module !== "undefined" && module === require.main) {
require("asyncjs").test.testcase(module.exports).exec();
-}
+}
@@ -97,4 +97,4 @@ exports.multiEditCommands = [{
var HashHandler = require("../keyboard/hash_handler").HashHandler;
exports.keyboardHandler = new HashHandler(exports.multiEditCommands);
-});
+});
@@ -125,4 +125,4 @@ function deHyphenate(str) {
return str.replace(/-(.)/g, function(m, m1) { return m1.toUpperCase(); });
}
-});
+});
@@ -311,4 +311,4 @@ module.exports = {
if (typeof module !== "undefined" && module === require.main) {
require("asyncjs").test.testcase(module.exports).exec()
-}
+}
@@ -113,4 +113,4 @@ var Fold = exports.Fold = function(range, placeholder) {
}).call(Fold.prototype);
-});
+});
@@ -271,4 +271,4 @@ function FoldLine(foldData, folds) {
}).call(FoldLine.prototype);
exports.FoldLine = FoldLine;
-});
+});
@@ -982,4 +982,4 @@ module.exports = {
if (typeof module !== "undefined" && module === require.main) {
require("asyncjs").test.testcase(module.exports).exec()
-}
+}
@@ -192,4 +192,4 @@ module.exports = {
if (typeof module !== "undefined" && module === require.main) {
require("asyncjs").test.testcase(module.exports).exec()
-}
+}
@@ -212,4 +212,4 @@ module.exports = {
if (typeof module !== "undefined" && module === require.main) {
require("asyncjs").test.testcase(module.exports).exec();
-}
+}
@@ -168,4 +168,4 @@ module.exports = {
if (typeof module !== "undefined" && module === require.main) {
require("asyncjs").test.testcase(module.exports).exec()
-}
+}
@@ -559,4 +559,4 @@ module.exports = {
if (typeof module !== "undefined" && module === require.main) {
require("asyncjs").test.testcase(module.exports).exec()
-}
+}
Oops, something went wrong.

0 comments on commit 3304ccb

Please sign in to comment.