chromiumos/platform/assets.git
2 weeks agoUpdate ChromeVox 27 with stability fixes from upstream. 99/50499/3 factory-4128.B factory-spring-4131.B master
David Tseng [Wed, 8 May 2013 20:53:06 +0000 (13:53 -0700)]
Update ChromeVox 27 with stability fixes from upstream.

BUG=chromium:239184
TEST=Sanity check ChromeVox (ctrl+alt+z).
Change-Id: Icb8dcfc7caa43cf30e07c7b0ef06e2e107b96944
Reviewed-on: https://gerrit.chromium.org/gerrit/50499
Commit-Queue: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
2 weeks agonassh 0.8.18.2: Update to hterm 1.4. 53/48253/2 release-R28-4100.B
Robert Ginda [Tue, 16 Apr 2013 20:30:38 +0000 (13:30 -0700)]
nassh 0.8.18.2: Update to hterm 1.4.

* Update to hterm 1.4.
* Modify ./bin/mkzip.sh to warn if nassh_deps.concat.js is not current.

BUG=None
TEST=Manual: edit hterm changelog and ensure that warning appears

Change-Id: Icafc6f4e194a0e6ac54529337cb677f1f43443db
Reviewed-on: https://gerrit.chromium.org/gerrit/48253
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>

3 weeks agoUpdate ChromeVox 27 from upstream 62/49662/2
David Tseng [Tue, 30 Apr 2013 21:50:42 +0000 (14:50 -0700)]
Update ChromeVox 27 from upstream

BUG=chromium:236968
TEST=Sanity check ChromeVox (ctrl+alt+z).

Change-Id: I2aec36fe30573741371253b9c86b7c8c99c6e2da
Reviewed-on: https://gerrit.chromium.org/gerrit/49662
Commit-Queue: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
5 weeks agoPass shift-ctrl-L to browser so screen-lock combo works on CrOS. 53/48553/3 stabilize-4035.0.B stabilize-4068.0.B
Marius Schilder [Thu, 18 Apr 2013 00:31:05 +0000 (17:31 -0700)]
Pass shift-ctrl-L to browser so screen-lock combo works on CrOS.

BUG=chromium:233008
TEST=hterm_test.html, 66/66 tests passed
TEST=manual

Change-Id: I3fefe3a383cf48bf26becf7bdaafe8784f64063b
Reviewed-on: https://gerrit.chromium.org/gerrit/48553
Reviewed-by: Robert Ginda <rginda@chromium.org>
Commit-Queue: Marius Schilder <mschilder@chromium.org>
Tested-by: Marius Schilder <mschilder@chromium.org>
5 weeks agofix wrong directory in manual doc, hack.txt. 87/47987/2 stabilize-4008.0.B
Sungguk Lim [Fri, 12 Apr 2013 12:16:53 +0000 (05:16 -0700)]
fix wrong directory in manual doc, hack.txt.

BUG=None
TEST=No source code changes, only doc change

Change-Id: I51cf401e34ef7f9f5f8b5546393cd7b4bf560b83
Reviewed-on: https://gerrit.chromium.org/gerrit/47987
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
6 weeks agoMerge in a ChromeVox fix for the root cause of freezing in Gmail. 77/47677/2
David Tseng [Tue, 9 Apr 2013 19:43:54 +0000 (12:43 -0700)]
Merge in a ChromeVox fix for the root cause of freezing in Gmail.

This merges a fix upstream that corrects ChromeVox's character traversal logic which would in specific DOM trees, cause an infinite loop.
BUG=chromium:126942,chromium:224454
TEST=Sanity check ChromeVox; try it with Gmail chat.

Change-Id: I7418d741a27b0829f01141d6591293c420e59369
Reviewed-on: https://gerrit.chromium.org/gerrit/47677
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>

6 weeks agohterm 0.8.18, 0.8.18.1 78/47678/2
Robert Ginda [Tue, 9 Apr 2013 20:58:26 +0000 (13:58 -0700)]
hterm 0.8.18, 0.8.18.1

0.8.18.1, 2013-04-08, Update to hterm 1.3.

* Update to hterm 1.3 to get clear screen, media key, and alt-backspace changes.

0.8.18, 2014-04-08, Stable release of 0.8.17.3

BUG=None
TEST=Manual testing

Change-Id: I17150ed47a18352574446bd88a93edcf278171a7
Reviewed-on: https://gerrit.chromium.org/gerrit/47678
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
6 weeks agohterm: Handle clearing screen when not scrolled to bottom 73/47373/5
Andrew de los Reyes [Thu, 4 Apr 2013 22:38:55 +0000 (15:38 -0700)]
hterm: Handle clearing screen when not scrolled to bottom

BUG=chromium:226819
TEST=did the following:
- ls -l a bunch of times to make a long scroll buffer (> 2x term height)
- scroll to top
- Ctrl-Shift-K to clear screen

Change-Id: I74345b7c6cc9deef82766ee2d6c7dbc6f306e86d
Reviewed-on: https://gerrit.chromium.org/gerrit/47373
Reviewed-by: Robert Ginda <rginda@chromium.org>
Commit-Queue: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
7 weeks agohterm: Don't trap media keys by default. 58/47358/3
Andrew de los Reyes [Thu, 4 Apr 2013 21:17:50 +0000 (14:17 -0700)]
hterm: Don't trap media keys by default.

Intrudces a new preference to trap media keys and convert them to the
Chrome OS keyboard equivalent (e.g. Back is F1). By default this is
turned off, so that media keys perform their media function on Chrome
OS.

BUG=chromium:226752
TEST=Manually tested that w/ the pref on, media keys have the same
behavior, and w/ the pref off (default), media keys have media
behavior. Saw the same hex output for the media keys:
F1: 0x1b 4f 50
F2: 0x1b 4f 51
F3: 0x1b 4f 52
F4: 0x1b 4f 53
F5: 0x1b 5b 31 35 7e
F6: 0x1b 5b 31 37 7e
F7: 0x1b 5b 31 38 7e
F8: 0x1b 5b 31 39 7e
F9: 0x1b 5b 32 30 7e
F10: 0x1b 5b 32 31 7e

Change-Id: I72b49fe7a66547750243fd0e31adf953b1293125
Reviewed-on: https://gerrit.chromium.org/gerrit/47358
Reviewed-by: Robert Ginda <rginda@chromium.org>
Commit-Queue: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
7 weeks agohterm: Support to detect alt-backspace when it's remapped to DEL. 23/47323/4
Andrew de los Reyes [Thu, 4 Apr 2013 16:31:57 +0000 (09:31 -0700)]
hterm: Support to detect alt-backspace when it's remapped to DEL.

BUG=chromium:174410

TEST=Manually tested the following cases before and after to see the
same behavior w/ the pref disabled:
DEL: 0x1b 5b 33 7e == '\x1b[3~'
Backspace: 0x7f
Esc: 0x1b
Alt-Del: 0x1b 5b 33 3b 33 7e == '\x1b[3;3~'

And w/ the pref enabled, saw that Alt-backspace did:
Alt-Backspace: 0x1b 7f (this is the only chage from this CL)

Change-Id: Ie480d7087495704c7e3417d08c4e99702d5f85a0
Reviewed-on: https://gerrit.chromium.org/gerrit/47323
Reviewed-by: Robert Ginda <rginda@chromium.org>
Commit-Queue: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
7 weeks agonassh 0.8.17.3: Add pref export/import plumbing 97/47197/2
Robert Ginda [Tue, 2 Apr 2013 23:17:13 +0000 (16:17 -0700)]
nassh 0.8.17.3: Add pref export/import plumbing

* Added some basic plumbing for preference import/export.  Must be driven from
  the command line console at the moment.

Both of the new methods are asynchronous becase the hterm profile
preferences pre-date the automatic child list management of
lib.PreferenceManager, and therefore don't benefit from the single
readStorage() call of a parent preference manager.

To export nassh preferences, open the console and type the
following...

  nassh_.exportPreferences(function(o) { console.log(JSON.stringify(o)) }

This will return "undefined" right away, but very soon after will dump
your preferences as a stringified json object.  Save that string somewhere
safe if you want to back up your preferences, or copy it to the clipboard
if you just want to transfer prefs to another profile.

To restore preferences, run...

  nassh_.importPreferences(JSON.parse("..."))

Where "..." is the stringified JSON object returned from the export
function.

BUG=None
TEST=Manual testing in nassh.
TEST=nassh_test.html, 66/66 tests passed.

Change-Id: Ic957a91026e790d5e2945c0bdf4de6bd324ff957
Reviewed-on: https://gerrit.chromium.org/gerrit/47197
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
7 weeks agolibdot 1.2: Add export/import methods to lib.PreferenceManager. 96/47196/2
Robert Ginda [Tue, 2 Apr 2013 23:16:19 +0000 (16:16 -0700)]
libdot 1.2: Add export/import methods to lib.PreferenceManager.

* Add lib.PreferenceManager..exportAsJson/importFromJson methods to facilitate
  backup or migration of preferences.

BUG=None
TEST=Manual testing in nassh.

Change-Id: Iba4108054636de32a935edec8941138c31ac9989
Reviewed-on: https://gerrit.chromium.org/gerrit/47196
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
7 weeks agohterm: 0.8.17.2 - Rebuild nacl plugin with ixany fix. 47/47047/2
Robert Ginda [Mon, 1 Apr 2013 20:40:45 +0000 (13:40 -0700)]
hterm: 0.8.17.2 - Rebuild nacl plugin with ixany fix.

BUG=chromium:218361, ...ixany/tostop being set in termios
TEST=hterm_test.html, 66/66 tests passed
TEST=Start Secure Shell, run `stty`, ensure that 'ixany' and
  'tostop' do not appear in the output.

Change-Id: I1baf658240eaf3bd526463e28a8ba7eb90d6d073
Reviewed-on: https://gerrit.chromium.org/gerrit/47047
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
7 weeks agoBump naclport revision to catch IXANY fix 68/46868/2
Dmitry Polukhin [Fri, 29 Mar 2013 10:17:59 +0000 (14:17 +0400)]
Bump naclport revision to catch IXANY fix

BUG=chromium:218361
TEST=manually

Change-Id: I963770e25c70181e5362a9286a668b2164016cff
Reviewed-on: https://gerrit.chromium.org/gerrit/46868
Commit-Queue: Dmitry Polukhin <dpolukhin@chromium.org>
Reviewed-by: Dmitry Polukhin <dpolukhin@chromium.org>
Tested-by: Dmitry Polukhin <dpolukhin@chromium.org>
8 weeks agohterm 0.8.17.1: fix syntax errors 80/46780/3
Robert Ginda [Thu, 28 Mar 2013 18:29:58 +0000 (11:29 -0700)]
hterm 0.8.17.1: fix syntax errors

* Fix syntax errors from the relay port changes.
* Update manifest and changelog for 0.8.17.1 release.

BUG=None
TEST=hterm_test.html, 66/66 tests passed.

Change-Id: Iae895065249330015bc9affb70be66cc74c54d09
Reviewed-on: https://gerrit.chromium.org/gerrit/46780
Commit-Queue: Tyler Pirtle <rtp@google.com>
Reviewed-by: Tyler Pirtle <rtp@google.com>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
8 weeks agohterm: Add url to faq.txt and hack.txt 79/46779/2
Robert Ginda [Thu, 28 Mar 2013 17:52:12 +0000 (10:52 -0700)]
hterm: Add url to faq.txt and hack.txt

Documentation change only.

BUG=none
TEST=none

Change-Id: I7a925669579cf5c471b6abf17ee2ba7c6dbfdf4e
Reviewed-on: https://gerrit.chromium.org/gerrit/46779
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
8 weeks agoFix relayPort grouping so port is not included in relayHost group, and update 57/46457/2
Tyler Pirtle [Mon, 25 Mar 2013 23:37:22 +0000 (16:37 -0700)]
Fix relayPort grouping so port is not included in relayHost group, and update
log message.

TEST=66/66 passed.
BUG=None.

Change-Id: I2c1698d8b43d71d35d0bea067f5423bdb24b7cdf
Reviewed-on: https://gerrit.chromium.org/gerrit/46457
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
Commit-Queue: Tyler Pirtle <rtp@google.com>

8 weeks agoAdd 'relay port' to allow specifying port on relay host. 90/46290/5
Tyler Pirtle [Fri, 22 Mar 2013 18:01:10 +0000 (11:01 -0700)]
Add 'relay port' to allow specifying port on relay host.

BUG=chromium:223037
TEST=hterm_test.html, 66 passed, 0 failed, 2.23s.

Change-Id: I3e5e4de001cc4b548e478cf69490605cdefef9ce
Reviewed-on: https://gerrit.chromium.org/gerrit/46290
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agoiter_viewer: update makedist helper 15/46315/2
Mike Frysinger [Fri, 22 Mar 2013 21:48:16 +0000 (17:48 -0400)]
iter_viewer: update makedist helper

Get it working in the new unified repo.

BUG=None
TEST=`./makedist.sh 1` produced a good cros-iter-viewer-3.1.1.zip

Change-Id: Idefae32829026606981be001c2eff6da923173f8
Reviewed-on: https://gerrit.chromium.org/gerrit/46315
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 months agoiter_viewer: update host filtering 12/46312/2
Mike Frysinger [Fri, 22 Mar 2013 21:39:27 +0000 (17:39 -0400)]
iter_viewer: update host filtering

Fix the existing match so /p/ only applies when browsing Google Code and
not all websites with /p/ in their address.

Also add new bugsof website.

BUG=None
TEST=modified extension and browsed to various related URLs

Change-Id: I9e67d67e4d2d9022c4232a403d79a1d8ed25f5ac
Reviewed-on: https://gerrit.chromium.org/gerrit/46312
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 months agoFix ssh_client build.sh script 50/45550/7
Dmitry Polukhin [Fri, 15 Mar 2013 11:28:47 +0000 (15:28 +0400)]
Fix ssh_client build.sh script

+ Switch SDK version to latest M26
+ Update build scripts to work with current naclports
+ Pin naclports to fixed revision
+ Caught files move from hterm to nassh (following changes will move ssh_client to sub-directory under nassh)
+ Fixed issue with pnacl toolchain crash in naclports
+ Fixed issue with TOSTOP in naclports

BUG=none
TEST=manual

Change-Id: I2e5af88a79cc7721dabd135582ef381d09ed73bc
Reviewed-on: https://gerrit.chromium.org/gerrit/45550
Commit-Queue: Dmitry Polukhin <dpolukhin@chromium.org>
Reviewed-by: Dmitry Polukhin <dpolukhin@chromium.org>
Tested-by: Dmitry Polukhin <dpolukhin@chromium.org>
2 months agohterm 1.2, nassh 0.8.16.3, Terminal bell 63/45863/3 stabilize-3881.0.B
Robert Ginda [Tue, 19 Mar 2013 17:35:39 +0000 (10:35 -0700)]
hterm 1.2, nassh 0.8.16.3, Terminal bell

* Fix bug that made terminal bell only ring once.

BUG=None
TEST=Manual testing of terminal bell
TEST=hterm_test.html, 66/66 tests passed.

Change-Id: I7cd2d952e0da096d03a53b7a3bbb3cd7c13d3d6b
Reviewed-on: https://gerrit.chromium.org/gerrit/45863
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agohterm 0.8.16.2: Fix crosh/prefs pages 88/45788/2
Robert Ginda [Mon, 18 Mar 2013 20:02:40 +0000 (13:02 -0700)]
hterm 0.8.16.2: Fix crosh/prefs pages

* Fix script includes in nassh_preferences_editor.html and crosh.html pages.

BUG=None
TEST=hterm_test.html, 66/66 tests passed

Change-Id: Icf856db8a8f4e0ce73c5d6c6834fd6f0837932c3
Reviewed-on: https://gerrit.chromium.org/gerrit/45788
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agoMerging in two fixes from ChromeVox 26. 57/45757/2
David Tseng [Mon, 18 Mar 2013 17:10:54 +0000 (10:10 -0700)]
Merging in two fixes from ChromeVox 26.

• Correctly consider SCRIPT and NOSCRIPT nodes in TraverseUtil/TraverseContent.

This is a bug where a user will cross into the text content of a SCRIPT or NOSCRIPT when navigating by character, word, or line.

• Correct a bug in the collapsing of a CursorSelection:

We collapse a selection to the start of the selection for certain commands. With the ability to move by line, we were not computing the right start offset for a line (which could occur in the middle of a node's text content).

TEST=Full test pass using TOT imaged Samsung Chromebooks with this change patched.

BUG=chromium:217658

Change-Id: Ifaa8f5012c95d4f9c5197f9927831b3fdfcf7598
Reviewed-on: https://gerrit.chromium.org/gerrit/45757
Commit-Queue: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
2 months agonassh 0.8.16.1, Grab bag of fixes 86/45486/6
Robert Ginda [Thu, 14 Mar 2013 20:58:20 +0000 (13:58 -0700)]
nassh 0.8.16.1, Grab bag of fixes

* Update to libdot 1.1, hterm 1.1.
* Add notice about the age of the hterm library on startup in TOT builds.

BUG=chromium-os:34460, can't delete connections with on-screen "[DEL] Delete"
  button.
BUG=chromium-os:39287, col walking in connection manager doesn't work quite
  right.
BUG=chromium-os:39594, When focused, Enter button does not respond to pressing
  the Enter key.

TEST=manual testing of unpacked Secure Shell

Change-Id: If10de329eb07573e8582fbc169f32953c0f75e16
Reviewed-on: https://gerrit.chromium.org/gerrit/45486
Reviewed-by: Dmitry Polukhin <dpolukhin@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agohterm 1.1, Grab bag of fixes. 85/45485/5
Robert Ginda [Thu, 14 Mar 2013 20:56:37 +0000 (13:56 -0700)]
hterm 1.1, Grab bag of fixes.

* Fix base64 encoding of the bell audio.
* Reset the vt object when terminal is reset.
* Break out of a parseUntilStringTerminator_ if an embedded ESC is
  found (other than the one that may appear as part of a 7-bit ST),
  or if the sequence has been going on for too long (measured by the
  wall clock).

BUG=chromium:191050, Map Chrome OS top-row keys to function keys.
BUG=chromum-os:30792, beeps accumulate - leads to non stop beeping
BUG=chromum-os:35288, scroll-on-output doesn't appear to work
BUG=chromum-os:39645, Application keypad doesn't work properly

TEST=hterm_test.html 66/66 tests passed.

Change-Id: I65bf070e596d4fd5134d3c6d9e43b63f7b2def0e
Reviewed-on: https://gerrit.chromium.org/gerrit/45485
Reviewed-by: Dmitry Polukhin <dpolukhin@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agolibdot 1.1: Grab bag of changes. 84/45484/4
Robert Ginda [Thu, 14 Mar 2013 20:54:19 +0000 (13:54 -0700)]
libdot 1.1: Grab bag of changes.

* Initial add of libdot changelog.
* Fix file selection in libdot/bin/mkzip.sh.  rsync selection wasn't working
  properly and I couldn't figure out how to fix it.  Instead, we build a file
  list using patterns passed to the `find` utility, and feed the resulting
  list to rsync.
* Move echo_changelog function from hterm/bin into libdot/bin/common.sh so that
  any concat script has access to it.
* Remove base64 magic from bin/concat.sh, since bash can't handle the binary
  data properly anyway.  Concat files need to manually encode to base64 when
  appropriate.
* Switch concat.sh line wrapping to awk, since the bash implementation was
  super slow.
* Allow line continuations with trailing "\" character in concat files.
* Echo a bell character after rerunning "concat --forever" to indicate that
  the concat is done.
* lib.PreferenceManager..set() - Re-add the notifyChange_() call.
* lib.PreferenceManager..onStorageChange_() - Fixed.

BUG=None
TEST=hterm_test.html, 66/66 tests passed
TEST=Manual testing in Secure Shell

Change-Id: I6a998bffb5d2cab476fa50c1a60e0574851113ce
Reviewed-on: https://gerrit.chromium.org/gerrit/45484
Reviewed-by: Dmitry Polukhin <dpolukhin@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agohterm-vs-nassh: you can go your own way 44/44444/12 factory-spring-3842.B firmware-spring-3833.B
Robert Ginda [Fri, 1 Mar 2013 00:52:10 +0000 (16:52 -0800)]
hterm-vs-nassh: you can go your own way

This change splits hterm and nassh into separate directories,
and deals with the fallout.

The new nassh/ subdirectory contains Secure Shell specific code.
The hterm/ subdirectory is now dedicated to the hterm source.

libdot/bin/concat.sh has almost doubled in size to 380 lines.  It
now recognizes some additional "directives" that allow you to do
more than just include static files.  See the documentation at the
top of the file for details.

hterm/bin/mkdist.sh is a new script to create the version of the
hterm library intended for public consumption.  See the comment at
the top of this script for details.

hterm now has its own changelog, separate from Secure Shell.  This
first version of the public hterm library is marked as "1.0" and
starts with a fresh changelog.  The previous changelog is now in
the nassh/doc subdirectory.

The preferences editor lives in Secure Shell now.  Other hterm clients
will need to provide their own front end for hterm prefs for now.

The faq.txt and hack.txt files were moved over to nassh/doc/
directory, and hack.txt has been updated to match the new directory
layout.  I've left stub documents in hterm/doc to redirect people who
get there from existing links.

BUG=none
TEST=hterm_test.html, 66/66 tests passed, Secure Shell seems to work.

Change-Id: Idb969b53268baf741715ba4c972d7798d163184c
Reviewed-on: https://gerrit.chromium.org/gerrit/44444
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agoassets: Add new GRIT style locale source. 16/44816/3
Hung-Te Lin [Thu, 7 Mar 2013 07:51:53 +0000 (15:51 +0800)]
assets: Add new GRIT style locale source.

To help boot messages translation being integrated into standard release cycle,
we should move to GRIT database to work with translation console.

BUG=chromium-os:39614
TEST=none, simply adding text files.

Change-Id: Ia20266a0e3e253d4aa2964f39b939bd2fbf89085
Reviewed-on: https://gerrit.chromium.org/gerrit/44816
Reviewed-by: Tony Chang <tony@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>

2 months ago Update ChromeVox 26 from upstream. 92/44992/2 firmware-spring-3824.4.B firmware-spring-3824.55.B firmware-spring-3824.B
David Tseng [Sat, 9 Mar 2013 00:12:04 +0000 (16:12 -0800)]
Update ChromeVox 26 from upstream.

BUG=chromium-os:39324
TEST=Sanity check ChromeVox starts.

Change-Id: I4751ce397f5c5ec396e97f1c78edf3382a51fd9f
Reviewed-on: https://gerrit.chromium.org/gerrit/44992
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>

2 months agoboot_messages: Update all translations. 10/44610/3
Hung-Te Lin [Tue, 5 Mar 2013 03:58:11 +0000 (11:58 +0800)]
boot_messages: Update all translations.

Directly dump from translation bundle provided in https://crosbug.com/38884#13 .

BUG=chromium-os:38884
TEST=chromeos-bootalert enter_dev /dev/tty1

Change-Id: I5f5b9320225dd7ad1666062727b836d7d024a652
Reviewed-on: https://gerrit.chromium.org/gerrit/44610
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>

2 months agotree_status: fix up loadingAnimation 02/44502/2
Mike Frysinger [Sun, 3 Mar 2013 04:50:37 +0000 (23:50 -0500)]
tree_status: fix up loadingAnimation

This doesn't actually do anything.  The main code will instantiate the
object, then call start/stop on it, but the object itself doesn't update
any external state such that it is visibly doing anything.

First, add calls to chrome.browserAction.setBadgeText so it actually
works as intended.  Then, disable it globally by default since it hasn't
been doing anything useful for a long time.

We could rip it out completely, but it seems like it'd be useful as an
internal debugging tool.

BUG=None
TEST=loaded extension and had it update its state -- it still worked

Change-Id: Ib06e7d3fe046e9edff21a8d3ab511eca0b5e8bdb
Reviewed-on: https://gerrit.chromium.org/gerrit/44502
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 months agobuild_status: crush pngs 01/44501/2
Mike Frysinger [Sun, 3 Mar 2013 04:30:57 +0000 (23:30 -0500)]
build_status: crush pngs

Ran `pngcrush` on all the pngs.  Looks the same, just with slightly
smaller files.

BUG=None
TEST=images look the same

Change-Id: Ica36ed206bb727d7499c32cf40613f1565017171
Reviewed-on: https://gerrit.chromium.org/gerrit/44501
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 months agotree_status: bump version 96/44496/2
Paul Stewart [Sat, 2 Mar 2013 23:11:07 +0000 (18:11 -0500)]
tree_status: bump version

BUG=None
TEST=None

Change-Id: I8100d75f3295c373831287229c0e0d8678b5b61c
Reviewed-on: https://gerrit.chromium.org/gerrit/44496
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 months agotree_status: add option for icon clicking behavior 95/44495/3
Mike Frysinger [Sat, 2 Mar 2013 23:08:37 +0000 (18:08 -0500)]
tree_status: add option for icon clicking behavior

The code is designed to set the focus of an existing tab if one is
opened to the waterfall.  Personally, I prefer it if the button just
always opened a new tab.  Add a config option to control that.

We also tweak the options style sheet slightly to make it adding
additional sections look cleaner.  No need for all that whitespace.

BUG=None
TEST=clicking the button always creates a new tab

Change-Id: Ie74631279b7a5238fc6fabf788c9a78053f8c40f
Reviewed-on: https://gerrit.chromium.org/gerrit/44495
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 months agotree_status: update waterfall url 94/44494/2
Mike Frysinger [Sat, 2 Mar 2013 23:07:37 +0000 (18:07 -0500)]
tree_status: update waterfall url

When we shuffled things around on the public waterfall, the extension
was still using the old location.

BUG=None
TEST=clicking the button now takes me directly to the waterfall (no redirect)

Change-Id: Ib5622b123f3871dc31f1757baecb90dc7e88a616
Reviewed-on: https://gerrit.chromium.org/gerrit/44494
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 months agotree_status: convert to manifest v2 93/44493/2
Mike Frysinger [Sat, 2 Mar 2013 23:04:02 +0000 (18:04 -0500)]
tree_status: convert to manifest v2

New to move the inline scripts to a dedicated .js file and source it
that way.

BUG=None
TEST=loaded it & ran it
TEST=Chrome store now takes the extension

Change-Id: Icdbe91b3b6aee9a213f9df37aa9f7ce896e9a1bf
Reviewed-on: https://gerrit.chromium.org/gerrit/44493
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 months agotree_status: import version 3.4 92/44492/2
Paul Stewart [Sat, 2 Mar 2013 23:02:03 +0000 (18:02 -0500)]
tree_status: import version 3.4

BUG=None
TEST=None

Change-Id: I1b65c3b8e1d0649979b77a9bce62e62e9d1a1c0c
Reviewed-on: https://gerrit.chromium.org/gerrit/44492
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 months agoUpdate ChromeVox 26 from upstream. 36/44236/2
David Tseng [Wed, 27 Feb 2013 23:01:04 +0000 (15:01 -0800)]
Update ChromeVox 26 from upstream.

BUG=chromium-os:39324
TEST=Sanity check ChromeVox starts.

Change-Id: I8eeaea64b2a10546ba976abe2b0d28b4daf289e8
Reviewed-on: https://gerrit.chromium.org/gerrit/44236
Commit-Queue: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
2 months agohterm 0.8.15.1: Improve character size precision 21/44121/3
Robert Ginda [Wed, 27 Feb 2013 00:36:32 +0000 (16:36 -0800)]
hterm 0.8.15.1: Improve character size precision

* Change hterm.ScrollPort..measureCharacterSize to average out 100 characters
  rather than measuring just one.  The improved precision is necessary on
  high-dpi devices.
* Fix a bug in measureCharacterSize that got the zoomFactor wrong (we never
  re-measured after disabling zoom adjustments.)

BUG=none
TEST=install on pixel, make text really small, move cursor to column 500
  and observe that is in the correct position.

Change-Id: I63b87764fd5ca581d9dd124d848629aef1a2c9cc
Reviewed-on: https://gerrit.chromium.org/gerrit/44121
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
2 months agohterm 0.8.15: Stable release of 0.8.14.1. 67/43967/3
Robert Ginda [Mon, 25 Feb 2013 21:44:51 +0000 (13:44 -0800)]
hterm 0.8.15: Stable release of 0.8.14.1.

BUG=none
TEST=hterm 0.8.14.1

Change-Id: I4ac0ecff3aa2bc826a5ef79f18375f3a0aa22b62
Reviewed-on: https://gerrit.chromium.org/gerrit/43967
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months ago0.8.14.1, 2013-02-25, Fix column-list scrolling. 13/43913/3
Robert Ginda [Mon, 25 Feb 2013 18:45:07 +0000 (10:45 -0800)]
0.8.14.1, 2013-02-25, Fix column-list scrolling.

* Swap out the flexbox based listbox for an old skool table.  The flexbox
  version didn't scroll properly and didn't handle text-overflow: ellipsis.

TEST=create lots of connection profiles, make sure the
  scrollbars and keyboard navigation work.
BUG=none

Change-Id: I2a198369782fdc3b0c01ef66562d69d7365ae8d4
Reviewed-on: https://gerrit.chromium.org/gerrit/43913
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Toni Barzic <tbarzic@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agohterm 0.8.12.1, 0.8.13.1 23/43823/4
Robert Ginda [Fri, 22 Feb 2013 21:32:00 +0000 (13:32 -0800)]
hterm 0.8.12.1, 0.8.13.1

hterm 0.8.13.1: Fix version detection regression

* Fix version detection regression.

hterm 0.8.12.1: version bump, changelog refactor

* Combine doc/changelog-dev.txt and doc/changelog-stable.txt into
  doc/changelog.txt.
* Unreleased No-op dev version bump so we can re-package 0.8.12 as 0.8.13, but
  with the correct icon.

TEST=none
BUG=none

Change-Id: I021637629c7c44732f13b8b3a049946ded7d28bb
Reviewed-on: https://gerrit.chromium.org/gerrit/43823
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agolibdot: Fix image path rewriting in mkzip.sh 22/43822/3
Robert Ginda [Fri, 22 Feb 2013 21:28:48 +0000 (13:28 -0800)]
libdot: Fix image path rewriting in mkzip.sh

TEST=Re-package secure shell stable and verify image paths.
BUG=none

Change-Id: Ic891ab9a47d1beda0e9a89875e7d7b781428ab16
Reviewed-on: https://gerrit.chromium.org/gerrit/43822
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agolibdot: fix for empty suffix 01/43801/3
Robert Ginda [Fri, 22 Feb 2013 19:18:23 +0000 (11:18 -0800)]
libdot: fix for empty suffix

* Fix echo_suffix to return "" when no suffix is found.

TEST=Use the script to promote "Secure Shell (dev) 0.8.11.5" to
    "Secure Shell 0.8.12"
BUG=none

Change-Id: I5abc6584a70e8cb0c77ad094ac50f855b105e99a
Reviewed-on: https://gerrit.chromium.org/gerrit/43801
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
2 months agohterm 0.8.11.6: Restrict to Chrome 23 and higher 47/43647/4
Robert Ginda [Wed, 20 Feb 2013 22:55:10 +0000 (14:55 -0800)]
hterm 0.8.11.6: Restrict to Chrome 23 and higher

* Remove the nacl (not pnacl) plugin and the code to load it in Chrome 22 and
  lower.
* Restrict to Chrome 23 and higher in manifest.json.
* Fix missing escape in libdot/mkzip.sh

BUG=none
TEST=nassh.test(), 66/66 tests passed.

Change-Id: Id14dc4aa79421e17cd41b60f10ea817a3ff27f23
Reviewed-on: https://gerrit.chromium.org/gerrit/43647
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
3 months agoboot_messages: Add dummy enter_dev1_virtual messages for all locales. 88/43488/3
Hung-Te Lin [Mon, 18 Feb 2013 04:28:12 +0000 (12:28 +0800)]
boot_messages: Add dummy enter_dev1_virtual messages for all locales.

The chromeos-boot-alert needs dev1_virtual entry to always exist, so let's dup
from enter_dev1 before the translations are ready.

BUG=chromium-os:38884
TEST=(set VPD to ja) chromeos-boot-alert enter_dev /dev/tty

Change-Id: I33165b4962e196b57fa6b92aaae0e8d2c13426be
Reviewed-on: https://gerrit.chromium.org/gerrit/43488
Tested-by: Hung-Te Lin <hungte@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
3 months agoboot_messages: Fix the wording on the developer transition screen 87/43487/3
Hung-Te Lin [Mon, 18 Feb 2013 04:16:34 +0000 (12:16 +0800)]
boot_messages: Fix the wording on the developer transition screen

To support devices keyboard-controlled recovery (also known as "virtual dev
switch"), the "enter dev" message should be revised. A new entry
"enter_dev1_virtual" is created to hold correct message.

Note we also need to change init/chromeos-boot-alert to support using
dev1_virtual when virtual dev switch is found. That will be fixed in
https://gerrit.chromium.org/gerrit/#/c/43489 .

BUG=chromium-os:38884
TEST=chromeos-boot-alert enter_dev /dev/tty

Change-Id: If7f9f1403480cf13d87e81750ce9d4206d521ec6
Reviewed-on: https://gerrit.chromium.org/gerrit/43487
Tested-by: Hung-Te Lin <hungte@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
3 months agohterm 0.8.11.4: getBoundingClientRect() and cleanup 11/42611/11
Robert Ginda [Fri, 1 Feb 2013 23:30:30 +0000 (15:30 -0800)]
hterm 0.8.11.4: getBoundingClientRect() and cleanup

* Fix bug where we'd focus the wrong connection profile after creating
  a new one.
* Populate the username and hostname fields as soon as the description
  loses focus.
* Removed "pattern" attribute on hostname input box.
  BUG=chromium-os:36832 host field doesn't accept IPv6 addresses.
* Use getBoundingClientRect() so we can handle sub-pixel positioning.
  BUG=chromium-os:31840, Sub-pixel text positioning breaks cursor position
  calculations
* Make connection dialog size a function of window size.
* Explicitly specify the size of new windows open with Ctrl-Shift-N.
  BUG=chromium-os:38272 The second Secure Shell window is always very small

BUG=chromium-os:31840
TEST=nassh.test(), 66/66 tests passed.

Change-Id: I1f3b40a78b4449178a6706d6f7a1ffbe89c35037
Reviewed-on: https://gerrit.chromium.org/gerrit/42611
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
3 months agohterm: Make connection dialog resize with window. 30/30930/13
Robert Ginda [Wed, 30 Jan 2013 22:06:57 +0000 (14:06 -0800)]
hterm: Make connection dialog resize with window.

This makes the connect dialog size a function of the window size.
Previously it was a hardcoded size, which made it very awkward for
nonstandard window sizes.

This change also makes it possible for the contents of the
"dialog-billboard" (the container for the form elements) to grow
scrollbars if necessary.

It also flips the initialization around, so that the connect dialog
loads without running any code.  Instead, it waits for the 'ipc-init'
message from hterm, and then does its thing.  This avoids a race
condition that caused an unusable connect dialog in some cases.

BUG=none
TEST=nassh.test(), 66/66 tests passed.

Change-Id: I70aad260a7f5ff612cdd3d839d49017c291f7e26
Reviewed-on: https://gerrit.chromium.org/gerrit/30930
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
3 months agolibdot: Initial add of libdot shared libraries 56/41956/15
Robert Ginda [Thu, 24 Jan 2013 19:45:54 +0000 (11:45 -0800)]
libdot: Initial add of libdot shared libraries

This is the initial add of "libdot", a collection of library files
and utility scripts shared between hterm and champ.

lib.js introduces very few public properties.  lib.rtdep() declares
a runtime dependency, lib.registerInit() adds a function to the list
to be called during initialization, and lib.init() calls the list
of initialzation functions.

All other functionality is provided by add-on libraries.

This first commit moves the hterm lib_* files into libdot, turns
package.sh into libdot/bin/mkzip.sh, and adds the libdot/bin/concat.sh
script.

BUG=None
TEST=nassh.test(), 66/66 tests passed.

Change-Id: I46c26bb61f1a3b433adae7ebeae0a77449a58c59
Reviewed-on: https://gerrit.chromium.org/gerrit/41956
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
3 months agohterm: lib enhancements. 11/41911/13
Robert Ginda [Mon, 15 Oct 2012 18:13:52 +0000 (11:13 -0700)]
hterm: lib enhancements.

This is a set of changes to hterm/js/lib_* code that happened during
champ development.  The patch changes the way "lib" is initialized,
so there is some fallout in hterm* and nassh* too.

I'm adding new shared files to ../libdot/ in my next cl, and will relocate
these soon after.

* Add ability to register new init functions via lib.registerInit.  These
  will be called in order during lib.init().
* Make ensureRuntimeDependencies private and call it during lib.init().
* Move lib.getStack to lib.f.getStack.
* Add "escapeHTML" flag to lib.f.replaceVars.
* Add lib.f.alarm to wrap callbacks with a timer that logs a warning
  message if the callback isn't invoked before time expires.

* Update existing preference record when a dupe is passed to
  lib.PreferenceManager..definePreference, rather than throw an exception.
* Change lib.PreferenceManager..defineChildren to take a factory function
  instead of a constructor, so that children can be of different classes.
* Add opt_hint to lib.PreferenceManager..createChild, to allow callers to
  include an opaque string in a generated id.
* Add opt_id to lib.PreferenceManager..createChild, to allow callers to
  specify a child id.
* Add opt_default to getChild.  If passed, getChild will return
  it, rather than throw an exception.
* Pass the preference manager instance, rather than the storage object,
  to the child factory when creating a new child.  This gives the
  child instance much more context to work with.
* Add lib.PreferenceManager.diffChildLists utility function to make it
  easy to find out what's changed in a list of children since you last
  saw it.
* Add nassh.test() to launch the tests from a chrome-extension: url,
  since file: urls don't appear to allow XHR anymore.

* Fix stack trace logging in lib.TestManager.Test..run.
* Make lib.TestManager.Result..completeTest_ throw a TestComplete
  exception even for re-completes, so that the test case is forced
  to stop.

BUG=None
TEST=nassh.test(), 66/66 tests passed.

Change-Id: Ic7972050699d162b13e38c04a69760b1fa47d58d
Reviewed-on: https://gerrit.chromium.org/gerrit/41911
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
3 months agoiter_viewer: declare sz explicitly 33/43433/3
Mike Frysinger [Fri, 15 Feb 2013 22:20:18 +0000 (17:20 -0500)]
iter_viewer: declare sz explicitly

The closure compiler points out that we use the "sz" var but never
declare it.  Add the missing var keyword.

BUG=None
TEST=compiling with closure no longer complains

Change-Id: I149556e6de8c9d1c3be905116fe9eaa393a7d1e4
Reviewed-on: https://gerrit.chromium.org/gerrit/43433
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
3 months agoiter_viewer: use single quotes for strings 32/43432/2
Mike Frysinger [Fri, 15 Feb 2013 05:38:04 +0000 (00:38 -0500)]
iter_viewer: use single quotes for strings

Our style says to use single quotes for strings whenever possible.

BUG=None
TEST=closure compiler doesn't complain

Change-Id: I8863ec6a74a1428e8185996a9f7f29fbcf3343f9
Reviewed-on: https://gerrit.chromium.org/gerrit/43432
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
3 months agoiter_viewer: rewrite to use new alarm/event framework 67/43267/2
Mike Frysinger [Thu, 14 Feb 2013 03:52:01 +0000 (22:52 -0500)]
iter_viewer: rewrite to use new alarm/event framework

BUG=chromium-os:38916
TEST=None

Change-Id: I32a3ce95fdc92d5ca341396302d14dfffb2b004b
Reviewed-on: https://gerrit.chromium.org/gerrit/43267
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
3 months agoiter_viewer: update to manifest v2 66/43266/2
Mike Frysinger [Thu, 14 Feb 2013 03:51:19 +0000 (22:51 -0500)]
iter_viewer: update to manifest v2

BUG=chromium-os:38916
TEST=None

Change-Id: I51aab8322291d87caa34f05e34bcfd4c699a872a
Reviewed-on: https://gerrit.chromium.org/gerrit/43266
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
3 months agoiter_viewer: import version 1.3 65/43265/2
Mike Frysinger [Thu, 14 Feb 2013 03:49:50 +0000 (22:49 -0500)]
iter_viewer: import version 1.3

BUG=chromium-os:38916
TEST=None

Change-Id: I8332067899f839ffc496ea88e587bd0030516f98
Reviewed-on: https://gerrit.chromium.org/gerrit/43265
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
3 months agoiter_viewer: import version 1.2 64/43264/2
Mike Frysinger [Thu, 14 Feb 2013 03:49:30 +0000 (22:49 -0500)]
iter_viewer: import version 1.2

BUG=chromium-os:38916
TEST=None

Change-Id: I8b83394356fdd7443bb97b897f471fcce94d41c8
Reviewed-on: https://gerrit.chromium.org/gerrit/43264
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
3 months agoiter_viewer: import version 1.1 63/43263/2
Mike Frysinger [Thu, 14 Feb 2013 03:49:15 +0000 (22:49 -0500)]
iter_viewer: import version 1.1

BUG=chromium-os:38916
TEST=None

Change-Id: I411b579bddb21e44989e388d2a0b93f126a88cd0
Reviewed-on: https://gerrit.chromium.org/gerrit/43263
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
3 months agoiter_viewer: import version 1.0 62/43262/2
Mike Frysinger [Thu, 14 Feb 2013 03:48:28 +0000 (22:48 -0500)]
iter_viewer: import version 1.0

BUG=chromium-os:38916
TEST=None

Change-Id: I36695d31d8cf3cf9320262adb3dbd1793dd4c427
Reviewed-on: https://gerrit.chromium.org/gerrit/43262
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
3 months agoCherry pick fix to disable ChromeVox's custom media player. 59/43059/3 stabilize-3701.30.0 stabilize-3701.30.0b toolchain-3701.42.B
David Tseng [Mon, 11 Feb 2013 22:18:53 +0000 (14:18 -0800)]
Cherry pick fix to disable ChromeVox's custom media player.

BUG=chromium-os:38649
TEST=Sanity check that ChromeVox plays media files.

Change-Id: Ic6f2de207d3c4868989391ebdd11597de8ead9d9
Reviewed-on: https://gerrit.chromium.org/gerrit/43059
Commit-Queue: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
3 months agoCherry pick ChromeVox fixes for media controls. 62/42662/2 stabilize-bluetooth-smart
David Tseng [Tue, 5 Feb 2013 23:44:24 +0000 (15:44 -0800)]
Cherry pick ChromeVox fixes for media controls.

BUG=chromium:174390
TEST=Basic sanity check on CROS.

Change-Id: Ie70cca26cc098710b8e330055f00e8e2d220d494
Reviewed-on: https://gerrit.chromium.org/gerrit/42662
Commit-Queue: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
3 months agohterm: options: add a slider for control alpha channels of colors 41/41141/2
Mike Frysinger [Fri, 11 Jan 2013 19:36:17 +0000 (14:36 -0500)]
hterm: options: add a slider for control alpha channels of colors

In the future, we should get transparent backgrounds, so in anticipation
of that, allow people to control the alpha channels of colors via range
input elements.

For now, it really only helps with the cursor.

While it doesn't make too much sense to apply this to foreground colors,
it doesn't hurt and keeps us from special casing things.

BUG=None
TEST=loaded option page and played with sliders and watched alpha change

Change-Id: Icfd0f904361ace8d2ad6f1b11c19a0d7940dff20
Reviewed-on: https://gerrit.chromium.org/gerrit/41141
Reviewed-by: Robert Ginda <rginda@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
4 months agoUpdate ChromeVox 25 from upstream 13/41313/2 stabilize-3658.0.0
David Tseng [Tue, 15 Jan 2013 23:13:15 +0000 (15:13 -0800)]
Update ChromeVox 25 from upstream

BUG=chromium-os:37803
TEST=Verify ChromeVox starts via ctrl+alt+z and basic functionality works.

Change-Id: I7c652b9f31cbce744fbb51c8789bab982173ed55
Reviewed-on: https://gerrit.chromium.org/gerrit/41313
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>

4 months agoUpdate ChromeVox 25 from upstream 40/41140/2
David Tseng [Fri, 11 Jan 2013 19:19:17 +0000 (11:19 -0800)]
Update ChromeVox 25 from upstream

BUG=chromium-os:37803
TEST=Verify ChromeVox starts via ctrl+alt+z and basic functionality works.

Change-Id: I46dfc43309c87a002a8d6cd2352e810fec4c80d5
Reviewed-on: https://gerrit.chromium.org/gerrit/41140
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
4 months agohterm: have removeAllKnownHosts return true 18/41018/2 factory-3536.B
Mike Frysinger [Thu, 10 Jan 2013 16:38:09 +0000 (11:38 -0500)]
hterm: have removeAllKnownHosts return true

Users who don't write javascript and use the console aren't accustomed to
seeing "undefined" as a synonym for "success".

BUG=None
TEST=ran term_.command.removeAllKnownHosts() in my console

Change-Id: I0a46918155cc284543cdec40362b21b172126712
Reviewed-on: https://gerrit.chromium.org/gerrit/41018
Reviewed-by: Robert Ginda <rginda@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
4 months agohterm 0.8.9.2: Fix OSC 52 with UTF-8 text 80/40380/2
Robert Ginda [Thu, 3 Jan 2013 18:52:57 +0000 (10:52 -0800)]
hterm 0.8.9.2: Fix OSC 52 with UTF-8 text

* Convert UTF-8 strings to UTF-16 before copying to clipboard for OSC 52.

BUG=None
TEST=test_harness.html, 66/66 tests passed.

Change-Id: I2c85c3e5198b22fba82b09b1af8493792372b5e6
Reviewed-on: https://gerrit.chromium.org/gerrit/40380
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
4 months agohterm 0.8.9.1: Add Ctrl-Shift-K and Alt/Ctrl/Meta-Number handlers 28/39528/5
Robert Ginda [Tue, 11 Dec 2012 01:26:40 +0000 (17:26 -0800)]
hterm 0.8.9.1: Add Ctrl-Shift-K and Alt/Ctrl/Meta-Number handlers

0.8.9.1: Add Alt/Meta-0..9 handlers.

* Add prefs to send Alt/Meta-1..9 to the host.  Preferences default to
  autodetect based on OS platform and window type.

0.8.9.0, 2012-12-12, Add Ctrl-Shift-K and Ctrl-1..9 handlers.

* Add Terminal.prototype.wipe() method to clear primary screen, alternate
  screen, and scrollback buffer.
* Map Ctrl-Shift-K to term_.wipe().
* Detect the window type during hterm.init() so we can branch based on the
  open-as-window state.
* Add prefs to send Ctrl-1..9 to the host.  Preferences default to
  autodetect based on OS platform and window type.
* Add "Pro Tip" about open-as-window for non-OS X users who are not opened
  in a dedicated app window.

BUG=chromium-os:35507, Pass alt/ctrl 0..9
BUG=chromium-os:32111, Add ability to clear scrollback buffer
TEST=test_harness.html, 66/66 tests passed.

Change-Id: I6389bbf3328351500ab860a47ad17b07a74b7818
Reviewed-on: https://gerrit.chromium.org/gerrit/39528
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
4 months agohterm 0.8.8, Stable release of 0.8.8.10. 12/39512/3
Robert Ginda [Mon, 10 Dec 2012 21:47:31 +0000 (13:47 -0800)]
hterm 0.8.8, Stable release of 0.8.8.10.

* Re-read from storage *before* trying to resolve selected the profile in
  connectToProfile().
* Add lib.Storage.Memory for the test harness.
* Build pnacl binaries with Pepper 25.
* Add Chrome >=24 plugin selection.
* Add a missing 'var' keyword in lib_preference_manager.js.
* Fix 'enable-bold' pref.
* Fix non-text inputs in options page.
* Initial add of an options page, thanks to Mike Frysinger.
* Tweak the nacl plugin to set a default baud rate for the tty.
* It turns out webkit stops sending "paste" events if you have a child with
  -webkit-user-select: none.  This patch works around the issue by calling
  preventDefault() from the mousedown event, instead of using
  -webkit-user-select.
* eraseToRight: If the current background color is default, then delete instead
  of inserting spaces.  This trims the trailing whitespace in the most common
  case.
* Replace new-lines with carriage-returns on paste, since it's the right thing
  to do.
* Add osc52.vim and osc52.sh scripts to help users with clipboard integration.
* Add a pnacl version of the plugin which we load only in Chrome >= 23.
* Fix nassh.PreferenceManager to degrade to window.localStorage if
  chrome.storage.sync is not available.
* Fix scroll-on-output preference.
* Add lib.Storage.Local and lib.Storage.Chrome classes to normalize the API
  between window.localStorage and chrome.storage.
* Generalize nassh.PreferenceManager profile management code into
  lib.PreferenceManager so that other code can easily define child preferences.
* Add preference to override the default color palette.

TEST=test_harness.html, 66/66 tests passed.
BUG=chromium-os:35109, Disable bold fonts
BUG=chromium-os:35643, Incorrect tty baud rate

Change-Id: I742424b95337b792b89ad37e7be3092e97a8bbda
Reviewed-on: https://gerrit.chromium.org/gerrit/39512
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
4 months agohterm: Chrome 21 storage fixes. 70/39270/4
Robert Ginda [Sat, 1 Dec 2012 00:10:41 +0000 (16:10 -0800)]
hterm: Chrome 21 storage fixes.

* Fix to properly select lib.Storage.Local on Chrome 21.
* Re-read from storage *before* trying to resolve selected the profile in
  connectToProfile().
* Add lib.Storage.Memory for the test harness.

BUG=None
TEST=test_harness.html, 66/66 tests passed.

Change-Id: Id0403f614ae50417c4508ddc07884577a916c334
Reviewed-on: https://gerrit.chromium.org/gerrit/39270
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Queue: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
5 months agoFix ChromeVox repeating live regions multiple times. 22/39722/2 toolchain-3428.65.B
Dominic Mazzoni [Fri, 14 Dec 2012 23:19:19 +0000 (15:19 -0800)]
Fix ChromeVox repeating live regions multiple times.

Update ChromeVox from upstream to pull in fix that prevents ChromeVox
from speaking live region updates multiple times for the same change.

BUG=chromium:166260
TEST=Manual testing of OOBE

Change-Id: Id828fa766fd00bd47f8b89b9e1a58f430ba8faab
Reviewed-on: https://gerrit.chromium.org/gerrit/39722
Reviewed-by: David Tseng <dtseng@chromium.org>
Commit-Ready: Dominic Mazzoni <dmazzoni@chromium.org>
Tested-by: Dominic Mazzoni <dmazzoni@chromium.org>
5 months agoDon't get confused by speech synthesis commands during initialization. 25/39725/2
Dominic Mazzoni [Fri, 14 Dec 2012 23:52:10 +0000 (15:52 -0800)]
Don't get confused by speech synthesis commands during initialization.

If Chrome called the TTS "Stop" function while the speech synthesis
component extension was still in the middle of initialization, it was
sending this stop message to NaCl, killing the plug-in. Fix it so that
it doesn't pass along that message until initialization is complete.

BUG=chromium:166253
TEST=Press Ctrl+Alt+Z on startup, immediately press Tab several times.

Change-Id: Ie6996f08ada38f6eb646ca8b0a266894b22b6be1
Reviewed-on: https://gerrit.chromium.org/gerrit/39725
Reviewed-by: Zachary Kuznia <zork@chromium.org>
Commit-Ready: Dominic Mazzoni <dmazzoni@chromium.org>
Tested-by: Dominic Mazzoni <dmazzoni@chromium.org>
5 months agoFix ChromeVox startup flakiness. 93/39693/2
Dominic Mazzoni [Fri, 14 Dec 2012 05:29:05 +0000 (21:29 -0800)]
Fix ChromeVox startup flakiness.

Updating ChromeVox from upstream. Flakiness was because in OOBE in
particular, the content script could load before the background page,
and initial messages sent to the background page were dying.

BUG=chromium:164683
TEST=manual test of starting and stopping spoken feedback a lot

Change-Id: I9e3b6687aa0160012ea916e72b22ab32311a9a36
Reviewed-on: https://gerrit.chromium.org/gerrit/39693
Commit-Ready: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Tested-by: Dominic Mazzoni <dmazzoni@chromium.org>
5 months agoMake -o SendEnv=XXX works in Secure Shell 69/39469/3
Dmitry Polukhin [Mon, 10 Dec 2012 11:46:09 +0000 (15:46 +0400)]
Make -o SendEnv=XXX works in Secure Shell

BUG=none
TEST=manually

Change-Id: Ica2541478677e70f5a037f362c341cbde33db7d2
Reviewed-on: https://gerrit.chromium.org/gerrit/39469
Reviewed-by: Robert Ginda <rginda@chromium.org>
Commit-Ready: Dmitry Polukhin <dpolukhin@chromium.org>
Reviewed-by: Dmitry Polukhin <dpolukhin@chromium.org>
Tested-by: Dmitry Polukhin <dpolukhin@chromium.org>
5 months agodisplay_boot_message: Allow showing arbitrary file. 09/39309/6
Hung-Te Lin [Thu, 6 Dec 2012 11:05:45 +0000 (19:05 +0800)]
display_boot_message: Allow showing arbitrary file.

To allowing updater & other scripts to show a text file on console, for critical
system update alerts, like incompatible firmware that need write protection
removed.

BUG=chromium-os:36415
TEST=display_bootmessage show_file /postinst

Change-Id: I32b7501d7efa76400dc5687f37a7a09d9e14b757
Reviewed-on: https://gerrit.chromium.org/gerrit/39309
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Ready: Hung-Te Lin <hungte@chromium.org>

5 months agoUpdate ChromeVox from upstream. 02/39202/2 stabilize2
Dominic Mazzoni [Tue, 4 Dec 2012 18:37:47 +0000 (10:37 -0800)]
Update ChromeVox from upstream.

Fixes for Chrome OS bugs include:

* Don't display release notes when first enabled.
* Don't load ChromeVox into the same tab twice (symptom was multiple
    orange highlights on the page).
* Fix live region bug that prevented error messages from speaking
    on Create Account page.
* Don't steal focus, preventing you from tabbing through OOBE pages from
    top to bottom.
* More intelligent handling of speaking all-uppercase text
* Fix speech volume on Chrome OS (it was artificially lower for old speech
    engine.)

BUG=chromium:159023,chromium:161926,chromium:159022,chromium:161908,chromium:161915
TEST=manual testing on Chrome OS

Change-Id: I56ae30bdbd104bfcff7759c0f4c670c7869c6ad2
Reviewed-on: https://gerrit.chromium.org/gerrit/39202
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
Commit-Ready: Dominic Mazzoni <dmazzoni@chromium.org>

5 months agossh_client/hterm: Updates for pepper-25, chrome 24+ 01/38801/6
Robert Ginda [Wed, 28 Nov 2012 04:27:21 +0000 (20:27 -0800)]
ssh_client/hterm: Updates for pepper-25, chrome 24+

I've tested this on Chrome 24 x86-64, Chrome 23 ARM and Chrome
25 ARM.  Chrome 25 ARM doesn't work yet.

This CL updates ssh_client to build pnacl by default using the
trunk SDK.  The pnacl build now creates two plugins.  The arm_23
version is used only on Chrome 23 running on ARM, while the
pnacl version can be used on any other platform running Chrome
23 or higher.

The old nacl version of the plugin can be build by passing the
--no-pnacl option to build.sh

To build a full version of Secure Shell, build.sh needs to be run
twice, to build the three plugins needed to support Chrome 21-25.

hterm/ has also been updated to select the proper plugin based on
the user agent.

TEST=manual
BUG=none

Change-Id: Ic9ffc5e33235bfafd50b8bc9920393d88078052e
Reviewed-on: https://gerrit.chromium.org/gerrit/38801
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
5 months agohterm 0.8.8.7 Chrome 21 and prefs fixes 00/38800/2
Robert Ginda [Fri, 26 Oct 2012 23:27:09 +0000 (16:27 -0700)]
hterm 0.8.8.7 Chrome 21 and prefs fixes

0.8.8.7, 2012-10-31, Fix missing 'var' in preference manager.

* Add a missing 'var' keyword in lib_preference_manager.js.

TEST=test_harness.html, 66/66 tests passed.
BUG=None

Change-Id: I10bbb44cd820b1f51bb2867633e540e1b3a4527c
Reviewed-on: https://gerrit.chromium.org/gerrit/38800
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
5 months agoPATTS component extension, engine, and voice data. 50/38450/5
Dominic Mazzoni [Tue, 20 Nov 2012 19:42:17 +0000 (11:42 -0800)]
PATTS component extension, engine, and voice data.

This is the component extension, NaCl engine, and voice data for
PATTS, the new speech synthesis engine to be used on Chrome OS.
Subsequent changes will:

* Install these files as part of the chromeos-assets overlay
* Load this component extension automatically when a TTS request is made
* Remove old speech synthesis code
* Add additional voice data

BUG=chromium:157592
TEST=none

Change-Id: I0ea68b70865a4241b739e7089fc9f55324b8fe7c
Reviewed-on: https://gerrit.chromium.org/gerrit/38450
Commit-Ready: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Tested-by: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
6 months agoUpdate ChromeVox 24 from upstream. 81/38481/2
David Tseng [Wed, 21 Nov 2012 19:00:50 +0000 (11:00 -0800)]
Update ChromeVox 24 from upstream.

* Added a new flat keymap resembling a more text field centric user model.
* Added support for video and audio html5 elements.
* Added command to cycle reading of punctuation (none, some, most).
* Added a repetition count for repeated symbols of 3 or more.
* Many bug fixes.

BUG=chromium-os:35817
TEST=Launch ChromeVox with ctrl+alt+z; make sure basic functionality works.

Change-Id: I563d5976ea8b6c5fd272e348cfbd0f353cf3b27d
Reviewed-on: https://gerrit.chromium.org/gerrit/38481
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Ready: Dominic Mazzoni <dmazzoni@chromium.org>
Tested-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Ready: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
6 months agohterm 0.8.8.6: Fixes for options page and Chrome 21 storage 84/36784/5
Robert Ginda [Fri, 26 Oct 2012 23:27:09 +0000 (16:27 -0700)]
hterm 0.8.8.6: Fixes for options page and Chrome 21 storage

* Fix 'enable-bold' pref.
* Fix non-text inputs in options page.
* Fix copy/paste error in lib.Storage.Local (which is only used in
  Chrome <= 21).

BUG=chromium-os:35109, Disable bold fonts
TEST=test_harness.html, 66/66 tests passed.

Change-Id: I21a302c2d073058891fbf47fd88fe6bf6cedda9b
Reviewed-on: https://gerrit.chromium.org/gerrit/36784
Commit-Ready: Marius Schilder <mschilder@google.com>
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
6 months agoUpdate ChromeVox 24 from upstream.
David Tseng [Mon, 29 Oct 2012 18:57:08 +0000 (11:57 -0700)]
Update ChromeVox 24 from upstream.
R37043434

BUG=chromium-os:35817
TEST=Launch ChromeVox with ctrl+alt+z; make sure basic functionality works.

Change-Id: Id1f08987a32ebb0a4ce1717ea9780a4b343828cd
Reviewed-on: https://gerrit.chromium.org/gerrit/36795
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Ready: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
6 months agohterm: options page: fix bugs in non-text fields 35/36735/3
Mike Frysinger [Fri, 26 Oct 2012 22:37:08 +0000 (18:37 -0400)]
hterm: options page: fix bugs in non-text fields

In some of the last fixups, some changes broke earlier behavior.  In this
case, the textarea and debouncing implementations ended up breaking the
checkboxes and color fields.  Unbreak that.

BUG=None
TEST=changing color now works
TEST=tristate checkbox rotate properly

Change-Id: I32680e71e8a6f08d36a65381da73ade7cb7ad0e0
Reviewed-on: https://gerrit.chromium.org/gerrit/36735
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>

6 months agohterm 0.8.8.5: cut/paste cleanup 33/36633/2
Robert Ginda [Fri, 26 Oct 2012 03:36:21 +0000 (20:36 -0700)]
hterm 0.8.8.5: cut/paste cleanup

* It turns out webkit stops sending "paste" events if you have a
  child with -webkit-user-select: none.  This patch works around
  the issue by calling preventDefault() from the mousedown event,
  instead of using -webkit-user-select.
* eraseToRight: If the current background color is default, then
  delete instead of inserting spaces.  This trims the trailing
  whitespace in the most common case.
* Replace new-lines with carriage-returns on paste, since it's the
  right thing to do.

Also: Updated changelog to include recent commits.

BUG=None
TEST=test_harness.html

Change-Id: I1b4ba5d84002c05a0f824022cc4121f1e809a41f
Reviewed-on: https://gerrit.chromium.org/gerrit/36633
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
6 months agossh_client: Set default terminal baud rates 32/36632/2
Robert Ginda [Fri, 26 Oct 2012 03:14:47 +0000 (20:14 -0700)]
ssh_client: Set default terminal baud rates

* Set a default ispeed and ospeed of B38400 in JsFile::InitTerminal.

BUG=chromium-os:35643
TEST=buid Secure Shell with pnacl enabled, ssh somewhere, verify
  that `stty speed` shows "38400".

Change-Id: I69fe1bdd50b4457d30caaa3145a6931e2248bf38
Reviewed-on: https://gerrit.chromium.org/gerrit/36632
Reviewed-by: Dmitry Polukhin <dpolukhin@chromium.org>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
Reviewed-by: David Sehr <sehr@chromium.org>
Tested-by: David Sehr <sehr@chromium.org>
Commit-Ready: David Sehr <sehr@chromium.org>

6 months agohterm: Add osc52.sh, osc52.vim 83/36283/6
Robert Ginda [Mon, 22 Oct 2012 23:15:17 +0000 (16:15 -0700)]
hterm: Add osc52.sh, osc52.vim

Initial add of scripts to assist with clipboard integration via
OSC 52.  See also: etc/osc52.el.

* osc52.sh - Send STDIN to the terminal's clipboard.
* osc52.vim - Vim script to send an arbitrary string to the
  terminal clipboard.

BUG=None
TEST=manual

Change-Id: I7b5794e86eaa12dc0da8b79b1dccdd7266c10721
Reviewed-on: https://gerrit.chromium.org/gerrit/36283
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
Reviewed-by: Marius Schilder <mschilder@google.com>
7 months agohterm 0.8.8.4: 0.8.8.1 redux
Robert Ginda [Tue, 16 Oct 2012 03:12:22 +0000 (20:12 -0700)]
hterm 0.8.8.4: 0.8.8.1 redux

* Broke 0.8.8.1 changes into smaller CLs for easier review.  This commit marks
  the re-integration of the changes.
* Re-order includes in nassh_connect_dialog.html
* Make hterm.init call back on a timeout.
* Removed lib.f.alarm for now.  This function was released as part of 0.8.8.1
  but I'm holding off on landing it until later.

BUG=None
TEST=test_harness.html, 66/66 tests passed.

Change-Id: Id8de0c821afc95b98a3a8b78a8d484754f2abfe3
Reviewed-on: https://gerrit.chromium.org/gerrit/35648
Commit-Ready: Marius Schilder <mschilder@google.com>
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
7 months agohterm 0.8.8.3: Include pnacl binary.
Robert Ginda [Mon, 15 Oct 2012 17:28:22 +0000 (10:28 -0700)]
hterm 0.8.8.3: Include pnacl binary.

* Actually include the pnacl binary in the package.

0.8.8.2, Use pnacl on Chrome >= 23.

* Add a pnacl version of the plugin which we load only in Chrome >= 23.

BUG=chromium-os:35314
TEST=test_harness.html, 66/66 tests passed.

Change-Id: I488859eac9571bb26a4e7df80713fdf4007a20a3
Reviewed-on: https://gerrit.chromium.org/gerrit/35582
Commit-Ready: Marius Schilder <mschilder@google.com>
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
7 months agohterm: Choose a default nassh storage
Robert Ginda [Mon, 15 Oct 2012 18:30:26 +0000 (11:30 -0700)]
hterm: Choose a default nassh storage

* Chrome 21 doesn't have the storage.sync API, so we need to
  degrade in that case.

BUG=None
TEST=Run on Chrome OS stable (M21) and check for errors at startup.

Change-Id: Ifce5e18a5ad1d7c6e1de2772246684c32afab0ca
Reviewed-on: https://gerrit.chromium.org/gerrit/35647
Commit-Ready: Marius Schilder <mschilder@google.com>
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
7 months agohterm: Fix scroll-on-output
Robert Ginda [Mon, 15 Oct 2012 18:17:47 +0000 (11:17 -0700)]
hterm: Fix scroll-on-output

This never worked right.  It was fine in an interactive session,
but any new row would cause the terminal to scroll.

BUG=chromium-os:35288, scroll-on-output doesn't appear to work
TEST=login, execute `sleep 10; seq 1000`, scroll up in termian
  and verify that you aren't automatically scrolled down in
  10 seconds.
TEST=test_harness.html, 66/66 tests passed.

Change-Id: I980d4bb80c3fd04e3bdc062db8fc4a1db6cda357
Reviewed-on: https://gerrit.chromium.org/gerrit/35646
Commit-Ready: Marius Schilder <mschilder@google.com>
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
7 months agohterm: add an options page
Mike Frysinger [Mon, 15 Oct 2012 10:20:38 +0000 (06:20 -0400)]
hterm: add an options page

In an effort to learn more about how Chrome extensions work, I put
together an options page for the secure shell extension.

The settings are created dynamically based on the preferences that
get populated elsewhere, so it should stay relatively up-to-date.

For most options, there is no hardcoding at all.  For ones that
require a bit more work (things that aren't simple numbers or bools),
we have to add a bit more smarts.

Future work:
 - make color-palette-overrides & environment setting user friendly
 - include descriptions of settings

BUG=None
TEST=Right clicked app & selected options
TEST=changed different values and loaded up secure shell and saw them work
TEST=reset all preferences and saw it work

Change-Id: I935aa6772da7485575de864358406346d885179b
Reviewed-on: https://gerrit.chromium.org/gerrit/35565
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>

7 months agohterm 0.8.8.0: Synchronized preferences.
Robert Ginda [Thu, 13 Sep 2012 18:02:48 +0000 (11:02 -0700)]
hterm 0.8.8.0: Synchronized preferences.

* Add lib.Storage.Local and lib.Storage.Chrome classes to normalize the API
  between window.localStorage and chrome.storage.
* Generalize nassh.PreferenceManager profile management code into
  lib.PreferenceManager so that other code can easily define child preferences.
* Add preference to override the default color palette.
* Remove session-id code.

TEST=test_harness.html, 66/66 tests passed.
BUG=chromium-os:26284, Custom palette.

Change-Id: Ic90343253dcb2235a61fcec73e21833a68022fe8
Reviewed-on: https://gerrit.chromium.org/gerrit/34237
Reviewed-by: Dmitry Polukhin <dpolukhin@chromium.org>
Reviewed-by: Marius Schilder <mschilder@google.com>
Tested-by: Marius Schilder <mschilder@google.com>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
7 months agohterm 0.8.7: Stable release of 0.8.7.4
Robert Ginda [Mon, 1 Oct 2012 18:20:11 +0000 (11:20 -0700)]
hterm 0.8.7: Stable release of 0.8.7.4

* Stable release of 0.8.7.5.
* Fix mouse-based text selection when the selection involves styled text.
* Fix hterm.Terminal.insertLines to move the correct rows.  This fixes the
  Reverse Index (RI) sequence (and probably others) that depended on it.
* Backfill holes created by Erase Characters (ECH) and Delete Characters (DCH)
  with spaces in the current text style.
* Fix minor issue with Character Attributes (SGR) with colors 100-107.  These
  were setting the foreground color instead of the background.
* Fix keyboard regression that prevented multi-accelerator sequences
  (ctrl-alt-foo, etc) from working.
* Stop bolding colors >= 16.
* Changed hterm_keyboard.js to only add modifier munging to strings that
  came from the "default" action.  Other actions are assumed to already
  be appropriate for the in use modifier.
* Make Alt-F1...F12 send F11-F22.  This similar to xterm with the "VT220
  Keyboard" option is enabled, except xterm uses Ctrl as the modifier.  We use
  Alt because Ctrl-F1...F12 are not capturable on Chrome OS devices.
* Added a "textInput" event handler to hterm_keyboard.js.  We're not actually
  supposed to get these, but we do on the Mac in the case where a third party
  app sends synthetic keystrokes to Chrome.

Internal bugs:
6111077 Bluetooth OTP not working with hterm
6838548 Bluetooth OTP is not able to make past SSHinaTab

BUG=chromium-os:30857, Shift+F6 doesn't work
BUG=chromium-os:32608, Add extended function key (F13-24) support.
BUG=chromium-os:30258, Text attributes not rendered for whitespace at the end
    of a line

TEST=test_harness.html, 66/66 tests passed.

Change-Id: I9f26c5d7a2433cdfb315e9f6778946ceeec9f3a0
Reviewed-on: https://gerrit.chromium.org/gerrit/34920
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
Commit-Ready: Robert Ginda <rginda@chromium.org>

7 months agoAdd powerwash message for user-initiated erasure of stateful partition. factory-3004.B
Jay Srinivasan [Fri, 5 Oct 2012 23:49:43 +0000 (16:49 -0700)]
Add powerwash message for user-initiated erasure of stateful partition.

We currently have a message "Erasing stateful partition". This CL adds all
these assets for various languages to make this a more user-understandable
message. The translations for following languages are missing, they'll
have to be added when they come in:

bn
ta
gu
kn
ml
mr
te

BUG=chromium-os:35089.
TEST=Tested en on ZGB.
Change-Id: I63e1877bd1f8f5ef5d49732ac72bb72d3c5cc2ec
Reviewed-on: https://gerrit.chromium.org/gerrit/34574
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Jay Srinivasan <jaysri@chromium.org>
Tested-by: Jay Srinivasan <jaysri@chromium.org>
Commit-Ready: Jay Srinivasan <jaysri@chromium.org>

7 months agoCherry-pick time widget support for ChromeVox 23. factory-2993.B
David Tseng [Thu, 4 Oct 2012 21:15:15 +0000 (14:15 -0700)]
Cherry-pick time widget support for ChromeVox 23.

BUG=chromium-os:34582
TEST=Ctrl+Alt+Z on login screen; verify basic ChromeVox behavior.

Change-Id: I34ef15c37d9e1338078eb7f6f7170c7a4ab89c49
Reviewed-on: https://gerrit.chromium.org/gerrit/34677
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Ready: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
7 months agoUpdate ChromeVox23 from upstream.
David Tseng [Thu, 4 Oct 2012 17:49:03 +0000 (10:49 -0700)]
Update ChromeVox23 from upstream.

ChromeVox CL:  34503222

BUG=chromium-os:34582
TEST=Smoke tests
Chrome OS version: 23.0.1271.11 (dev)
Chrome OS version: TOT.

No blocking issues and requesting merge to r23.

Change-Id: I4d9a1088f66664035c5d6ba2c1eaafd94fa6f96f
Reviewed-on: https://gerrit.chromium.org/gerrit/34641
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Ready: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
7 months agohterm: 0.8.7.5, Text selection fix. factory-2985.B
Robert Ginda [Tue, 2 Oct 2012 17:59:00 +0000 (10:59 -0700)]
hterm: 0.8.7.5, Text selection fix.

* Fix mouse-based text selection when the selection involves styled text.

BUG=None
TEST=Use the mouse to select combinations of styled and unstyled text,
  copy/paste the selected text and check that it is correct.
TEST=test_harness.html, 66/66 tests passed.

Change-Id: Icfad19c0aac12743a0d8a153433e9b1d176f4a3e
Reviewed-on: https://gerrit.chromium.org/gerrit/34429
Commit-Ready: Marius Schilder <mschilder@google.com>
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
7 months agoUpdate ChromeVox 23.0 from upstream.
David Tseng [Fri, 28 Sep 2012 17:50:50 +0000 (10:50 -0700)]
Update ChromeVox 23.0 from upstream.

BUG=chromium-os:34582
TEST=Start ChromeVox on login screen with ctrl+alt+z; perform basic web navigation.

Change-Id: I457242fc19a5dc8bca2098ee2ee1f75aec10efdd
Reviewed-on: https://gerrit.chromium.org/gerrit/34286
Commit-Ready: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Tested-by: David Tseng <dtseng@chromium.org>
7 months agoassets: Update battery alert animation.
Daniel Erat [Tue, 25 Sep 2012 17:51:38 +0000 (10:51 -0700)]
assets: Update battery alert animation.

This checks in updated assets from kenmoore@ for a ten-frame
low-battery animation for display on a black background.

BUG=chromium-os:14297
TEST=manual
CQ-DEPEND=I327ea63b87aa0ab28ef27b38ec4772390baf26bd

Change-Id: I5d14b74dae1e9b8ac6eb4054cce96deb38c30922
Reviewed-on: https://gerrit.chromium.org/gerrit/34039
Tested-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Commit-Ready: Daniel Erat <derat@chromium.org>

7 months agohterm 0.8.7.4: Insert lines fix.
Robert Ginda [Wed, 26 Sep 2012 18:40:04 +0000 (11:40 -0700)]
hterm 0.8.7.4: Insert lines fix.

* Fix hterm.Terminal.insertLines to move the correct rows.  This fixes the
  Reverse Index (RI) sequence (and probably others) that depended on it.

BUG=None
TEST=test_harness.html, 66/66 tests passed.
TEST=Verify that cacademo "white blobs" doesn't leave blank rows.

Change-Id: I7b534365fb424a18c3eb7a1894af15f7ab2b92ca
Reviewed-on: https://gerrit.chromium.org/gerrit/34120
Reviewed-by: Marius Schilder <mschilder@google.com>
Commit-Ready: Robert Ginda <rginda@chromium.org>
Reviewed-by: Robert Ginda <rginda@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>