Added method to reset menubutton's originalSize_ for cases where items are remove/added when scrollOnOverflow is on.

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5142


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

Use the DomHelper's window.

R=vbhasin
DELTA=4  (0 added, 0 deleted, 4 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5143


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

When moving popups off screen, avoids setting a negative left property as this can cause scrollbars to appear in RTL locales.
Also increases the negative top coordinate to avoid cases where the popup is taller than 200px.

R=chrishenry
DELTA=28  (25 added, 1 deleted, 2 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5144


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

In Gecko, when the range isn't reversed, use the normal path for
selection (e.g. removeAllRanges() and addRange()).

The ContentEditableField tests fail without fixing this. I'm mystified
why this doesn't work -- well, mystified as much as you can possibly be
when it comes to ranges.  In this particular case, though, I think this
is a net improvement; in the simple cases, both forward and collapsed,
we can use the standard W3C functionality, and only rely on Gecko
specific code when it's reversed.

R=nicksantos
DELTA=40  (32 added, 0 deleted, 8 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5145


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

Fix a typo in a comment.

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5146


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

Add goog.editor.ContentEditableField, which is a lighter replacement
for SeamlessField for clients that only support modern browsers with
good ContentEditable support.

Firefox 12+ finally has good contentEditable support and already
comprises the vast majority of Firefox users.

Note this does not change HAS_CONTENT_EDITABLE yet, since that may
break many other things; further testing is needed.

This also moves goog.editor.Field's tests to a separate JS file.
Although I normally don't like this pattern, given how complicated text
editing is and how many points are dependent on whether there's an
iframe, I think it's fine to run all of Field's tests for both Field
and ContentEditableField.

R=nicksantos
DELTA=2460  (1366 added, 1088 deleted, 6 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5147


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

In Deferred, rethrow the original error instead of
wrapping in a goog.async.Deferred.UnhandledError.

Remove all active references to UnhandledError.

R=felixarends,nicksantos,zachlloyd,mknichel
DELTA=88  (5 added, 57 deleted, 26 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5153


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

Automated g4 rollback

*** Reason for rollback ***

After the CL, goog.Disposable is not a no-op, and cannot be compiled
out. This is unacceptable.

*** Original change description ***

Disposable monitoring mode: Enable starting the monitoring mode on the fly.

Some Disposables might be created before the monitoring mode was started,
don't throw an error when they are disposed.

To catch the "base class constructor not called" error in the monitoring mode,
make disposed_ undefined unless the base class constructor was called, and
check

... description truncated by g4 rollback ...

R=ssaviano


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5154


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

Showing character names in the character picker widget. These names are provided by a webservice which is accessed asynchronously by the closure code.

R=chrishenry,cibu
DELTA=819  (736 added, 22 deleted, 61 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5158


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

Make AbstractDragDrop.isInside protected rather than private.

R=eae
DELTA=30  (0 added, 0 deleted, 30 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5159


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

Fix the issue where calling popup.setVisible twice with the same parameter in the same frame and a transition set will cause a leaked timer.

R=chrishenry
DELTA=108  (78 added, 27 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5160


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

Fix Editor stops responding on Tablet
The cause of this issue:
iOS bug that occurs in following condition
- parent window embeds child window that has the element with contenteditable like as goog.editor.Field
- parent window listens touch events

How to fix:
refocus the editor window on keydown(for text input) and touchend(for copy/paste).

R=nicksantos
DELTA=39  (38 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5161


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

Remove deprecated functions goog.ui.Popup.positionPopup and goog.ui.Popup.positionAtCoordinate.

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5162


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

Make sure the alt key flag is saved during key down and reused at key press for FF on Mac.
Alt key flag was not set for above mentioned setup on key press.

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5163


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

Fixing key lookup for RTL languages in goog.ui.SubMenu.

R=chrishenry
DELTA=26  (15 added, 1 deleted, 10 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5164


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

Fix an IDBDatabase exception in objectstore.
Chrome 21 throws an IDBDatabase exception 21 (TYPE_ERR) when passing an undefined direction to store.openCursor.

R=nweiz
DELTA=6  (3 added, 0 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5165


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

Adding a new isNameAvailable() function to the NameFetcher interface. Also adding a default source URI constant for the RemoteNameFetcher object.

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


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5188


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

Let the caller control how Image instances are created by
goog.labs.net.image.load, so we can support images that are fetched with
CORS, and images created in a particular document.

R=nnaze
DELTA=63  (54 added, 0 deleted, 9 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5189


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

Moving the NameFetcher object for the Closure Character Picker widget from a setter to a required constructor parameter.

R=chrishenry,lpalm,vratnakar,obelomestnykh,pmilovanov,fbrucher,marcosalmeida
DELTA=63  (19 added, 31 deleted, 13 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5205


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

Manual undo

*** Reason for rollback ***

Chrome bug is fixed, Chrome (non-beta) for Android has been released.
There's no need to slow down all Closure apps just to work around a
pre-release beta. http://crbug.com/130651

*** Original change description ***

Avoid getBoundingClientRect in mobile webkit due to
http://crbug.com/130651

In Chrome Android specifically, getBoundingClientRect returns zoomed
values, but only in an iframe.  To avoid adding a dependency to
goog.userAgent.PRODUCT, this is done for ALL mobile WebKit, but only in
iframes (to avoid impacting performance elsewhere).

Many thanks to Jacob Moon for spending hours debugging and tracking
down this as the root cause issue and identifying a suitable fix!

Cleanup: Fixed references to "

... description truncated by g4 rollback ...

R=eae
DELTA=27  (0 added, 25 deleted, 2 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5206


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