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

Side by Side Diff: ports/emacs-x/Xsdl.js

Issue 1415743013: Run jshint over all JavaScript files (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@repo_conf
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « ports/devenv/tests/jseval_test.js ('k') | ports/gdb/background.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* globals NaClTerm, NaClProcessManager */
8
9 'use strict';
10
7 NaClTerm.nmf = 'Xsdl.nmf'; 11 NaClTerm.nmf = 'Xsdl.nmf';
8 NaClTerm.argv = [ 12 NaClTerm.argv = [
9 '-screen', '1024x768x32', '-ac', '-br', '-noreset', ':42' 13 '-screen', '1024x768x32', '-ac', '-br', '-noreset', ':42'
10 ]; 14 ];
11 NaClTerm.env = [ 15 NaClTerm.env = [
12 'NACL_SPAWN_MODE=embed', 16 'NACL_SPAWN_MODE=embed',
13 'NACL_EMBED_WIDTH=100%', 17 'NACL_EMBED_WIDTH=100%',
14 'NACL_EMBED_HEIGHT=100%', 18 'NACL_EMBED_HEIGHT=100%',
15 ]; 19 ];
16 20
17 // TODO(bradnelson): Do something more robust than racing emacs + xserver. 21 // TODO(bradnelson): Do something more robust than racing emacs + xserver.
18 function startEmacs() { 22 function startEmacs() {
19 var mgr = new NaClProcessManager(); 23 var mgr = new NaClProcessManager();
20 // Assume a default terminal size for headless processes. 24 // Assume a default terminal size for headless processes.
21 mgr.onTerminalResize(80, 24); 25 mgr.onTerminalResize(80, 24);
22 var env = [ 26 var env = [
23 'DISPLAY=:42', 27 'DISPLAY=:42',
24 ]; 28 ];
25 mgr.spawn( 29 mgr.spawn(
26 'emacs.nmf', ['-g', '140x53'], env, 30 'emacs.nmf', ['-g', '140x53'], env,
27 '/home/user', 'nacl', null, function(pid) { 31 '/home/user', 'nacl', null, function(pid) {
28 mgr.waitpid(pid, 0, function() { 32 mgr.waitpid(pid, 0, function() {
29 window.close(); 33 window.close();
30 }); 34 });
31 }); 35 });
32 } 36 }
33 startEmacs(); 37 startEmacs();
34 38
35 document.title = 'GNU Emacs'; 39 document.title = 'GNU Emacs';
OLDNEW
« no previous file with comments | « ports/devenv/tests/jseval_test.js ('k') | ports/gdb/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698