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

Side by Side Diff: mojo/public/js/bindings/codec.js

Issue 652183003: [Mojo] Add HTML bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up paths 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:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 define("mojo/public/js/bindings/codec", [ 5 define("mojo/public/js/bindings/codec", [
6 "mojo/public/js/bindings/unicode", 6 "mojo/public/js/bindings/unicode",
7 "mojo/public/js/bindings/buffer" 7 "mojo/public/js/bindings/buffer",
8 ], function(unicode, buffer) { 8 ], function(unicode, buffer) {
9 9
10 var kErrorUnsigned = "Passing negative value to unsigned"; 10 var kErrorUnsigned = "Passing negative value to unsigned";
11 11
12 // Memory ------------------------------------------------------------------- 12 // Memory -------------------------------------------------------------------
13 13
14 var kAlignment = 8; 14 var kAlignment = 8;
15 15
16 function align(size) { 16 function align(size) {
17 return size + (kAlignment - (size % kAlignment)) % kAlignment; 17 return size + (kAlignment - (size % kAlignment)) % kAlignment;
18 } 18 }
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 exports.NullableString = NullableString; 730 exports.NullableString = NullableString;
731 exports.PointerTo = PointerTo; 731 exports.PointerTo = PointerTo;
732 exports.NullablePointerTo = NullablePointerTo; 732 exports.NullablePointerTo = NullablePointerTo;
733 exports.ArrayOf = ArrayOf; 733 exports.ArrayOf = ArrayOf;
734 exports.NullableArrayOf = NullableArrayOf; 734 exports.NullableArrayOf = NullableArrayOf;
735 exports.PackedBool = PackedBool; 735 exports.PackedBool = PackedBool;
736 exports.Handle = Handle; 736 exports.Handle = Handle;
737 exports.NullableHandle = NullableHandle; 737 exports.NullableHandle = NullableHandle;
738 return exports; 738 return exports;
739 }); 739 });
OLDNEW
« no previous file with comments | « mojo/public/html/convert_amd_modules_to_html.py ('k') | mojo/public/tools/bindings/generators/js_templates/module.html.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698