Cleanup of JavaScript casts.

The JSCompiler is going to start validate where @type annotations are
allowed and this requires being stricter about casts.  Casts
should be in the form of "/** @type {TypeName} */ (expr)".

R=brenneman
DELTA=35  (0 added, 0 deleted, 35 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5766


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2268 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Add SHA-2 families of hash functions into the closure.

Note:
1. Currently I only write SHA-256 and SHA-224. Sub-classing SHA-512/384 seems non trivial since they are different from SHA-256/224 in various ways. And since they are much less frequently used. I choose to leave it as future work.
2. I'm aware that the closure team is working on some optimization of SHA-1 which could be applied similar here. I will use a separate CL to optimize SHA-2 when SHA-1 change is submitted.

R=nnaze,gcasto
DELTA=615  (614 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5767


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2269 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Prevent breakage in goog.events.

R=nicksantos
DELTA=2  (0 added, 0 deleted, 2 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5768


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2270 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Prevent a Deferred from firing twice when an IndexedDB version change is blocked.

R=nweiz
DELTA=10  (8 added, 0 deleted, 2 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5769


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2271 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Fix a bug where goog.dom.classlist was using goog.global.DOMTokenList
instead of just DOMTokenList. This means that it was accessing the 'DOMTokenList'
property of the window object, instead of just accessing the namespace
directly as defined in the externs, which was causing it not to be treated as
an extern. 

R=arv
DELTA=2  (0 added, 1 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5770


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2272 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Change goog.dom.classlist to check for the 'DOMTokenList' property
on goog.global rather than the type of the 'DOMTokenList' namespace
to fix broken binaries which did not include 'DOMTokenList' in their
externs.

R=arv
DELTA=1  (0 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5771


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2273 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Loosen the BrowserEvent target from Node to EventTarget. This helps isolates the "lie" to
BrowserEvent class until we can fix the places that rely on the target being a Node.

R=chrishenry
DELTA=8  (3 added, 0 deleted, 5 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5772


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2274 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Make sure that the callback chains for the XHR fire exactly once.

R=vbhasin,chrishenry
DELTA=22  (22 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5773


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2275 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Factor out method for getting UTF-8 hex for chars from
goog.i18n.mime.encode.

R=nicksantos,adeboor
DELTA=72  (41 added, 29 deleted, 2 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5774


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2276 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Adds isDragging and DragEventType.START/END events to closure slider.

R=nnaze
DELTA=142  (139 added, 0 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5775


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2277 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Reduces the submenu open onmouseover delay to 218ms 

R=chrishenry
DELTA=4  (0 added, 2 deleted, 2 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5776


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2278 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

When <Enter> is pressed on Dialog, ignore if tag is 'A' (anchor tag), as the user is trying to follow a link.

R=ssaviano,nicksantos
DELTA=29  (17 added, 0 deleted, 12 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5777


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2279 0b95b8e8-c90f-11de-9d4f-f947ee5921c8