Allow for exceptions thrown in goog.storage to be processed by an external error handler.

This allows for a centralized exception logging when setting/getting values, without having to wrap each call site with a try/catch block.

R=azzie,chrishenry
DELTA=227 (227 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6081


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2415 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Adds a pixel density monitor to the closure labs that can be queried for the current pixel density of a window and dispatches events when it changes.

The pixel densities are mapped to two different modes:
- NORMAL for older screens with a ratio of less than 1.5.
- HIGH for modern screens with a bigger ratio.

Tested on Chrome and FF > 18.

R=chrishenry
DELTA=531 (513 added, 18 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6082


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2416 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
[XhrIo] Expose the responseBody property of the XHR object, which is defined in IE. IE 9 can only access binary data from an XHR via this property.

R=brenneman
DELTA=53 (44 added, 3 deleted, 6 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6083


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2417 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Change goog.Timer to look for timer methods on goog.global instead of goog.global['window'].

Using goog.global['window'] throws an exception if the domain is escalated after the window reference is saved. 

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6084


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2418 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Adding support for showSeverityLevel to the HtmlFormatter.

Severity Level is already handled in the TextFormatter. Seems like it was just an oversight in the original code.

showSeverityLevel is false by default and I don't see any code in CodeSearch this will affect. But I need it for a console I'm working on.

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6085


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2419 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
This particular CL contains the changes to KeyRange and the corresponding changes to callers to prevent new compiler errors.

This has the potential to introduce compiler type-check errors

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6090


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2421 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Don't attempt to focus a disabled button. This causes the modal dialog
to lose focus -- and the button isn't focused either.

Tested:
Manually on Chrome + unit test

R=nicksantos
DELTA=14 (13 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6091


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2422 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Make the demo for the PixelDensityMonitor listen to the correct event type.

R=chrishenry
DELTA=6 (2 added, 1 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6096


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

*** Reason for rollback ***

Rolling the original change forward

*** Original change description ***

Automated g4 rollback

*** Reason for rollback ***

I can consistently make IE8 segfault after this change

*** Original change description ***

Generalize the the special handling of HR tags in
goog.editor.range.placeCursorNextTo() to better handle IMG tags and
other no-child-allowed Element nodes. This logic now takes effect
for all browsers, rather than just IE/IE9.
The the original behavior caused scrolling issues
when inserting images or emoji in gmail, on IE.
Also c

... description truncated by g4 rollback ...

R=nicksantos
DELTA=208 (167 added, 18 deleted, 23 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6098


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2424 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
I'm renaming the files to end in _tests.js instead of _test.js so they are not mistaken to be tests. 

R=chrishenry
DELTA=727 (364 added, 330 deleted, 33 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6099


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2425 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Change a number of indexedDB functions to take primitive and array types instead of !Object type for keys and * for values, in accordance with the documentation at https://developer.mozilla.org/en-US/docs/IndexedDB and http://www.w3.org/TR/IndexedDB/#key-construct

This includes the final changes to the Index and Cursor classes, and corresponding extern changes

This has the potential to introduce compiler type-check errors

R=nicksantos
DELTA=36 (0 added, 6 deleted, 30 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6110


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2426 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Add goog.result.successfulResult/failedResult/canceledResult to the resultutils library.

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6111


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2427 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Rename more Closure _test.js files to end in tester.js to make room for genjsdeps being update to include _test.js files in closure_test_suites.

R=chrishenry
DELTA=1007 (491 added, 491 deleted, 25 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6112


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2428 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Tweak the sourceUrl decision tree a bit, and update
the comments on when this should be used.

R=ssaviano
DELTA=32 (15 added, 5 deleted, 12 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6113


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2429 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Set type="text" for the <input> element in goog.ui.ComboBox.
My use case is to be able to easily customize the style of all text inputs without modifying other input controls such as radio buttons. If the text attribute is not set, the CSS styles set in input[type=text] selectors are not applied.

R=chrishenry,nnaze
DELTA=12 (11 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6114


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2430 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Add an optional parameter to the constructor of MouseWheelHandler to allow
handling the event in capture phase.

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6125


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

*** Reason for rollback ***

breaks ff3.6 tests for unclear reasons

*** Original change description ***

Tweak the sourceUrl decision tree a bit, and update
the comments on when this should be used.

DELTA=35 (8 added, 18 deleted, 9 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6126


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2432 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Exposes the .key() method on HTML5WebStorage instances.

R=chrishenry
DELTA=28 (28 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6128


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2433 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
Added in events that fire when moving the highlight through the
palette. This allows us to handle chaining palettes toghether
where up/down/left/right will move between the palettes.


Chris,

Hoping you can take a look ath this or pass it on to someone who might make sense. THanks.

R=chrishenry
DELTA=69 (65 added, 1 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6129


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2434 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
fix a minor type warning

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6130


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