Refactor FramePainter so that a child view of NonClientFrameView can paint the header instead of NonClientFrameView. This functionality is necessary so that CustomFrameViewAsh can be put into immersive fullscreen.

BUG=307622
TEST=ResizeShadowAndCursorTest.*
R=jamescook
TBR=sky (For trivial refactor as a result of merging CustomFrameViewAsh::Init() and the CustomFrameViewAsh constructor)

Review URL: https://codereview.chromium.org/27267003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229342 0039d316-1c4b-4281-b951-d872f2087c98
Do not clobber Views dialog positions during drag.

Bail from UpdateModalDialogPosition if the Widget HasCapture.

BUG=305480
TEST=Modal dialogs do not flicker while dragging during tab load.
R=wittman@chromium.org,ben@chromium.org

Review URL: https://codereview.chromium.org/27277002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229343 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 229343
Valgrind Mac: Suppress errors in P2PSocketHost.

BUG=308683
NOTRY=true
TBR=groby

Review URL: https://codereview.chromium.org/27278003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229344 0039d316-1c4b-4281-b951-d872f2087c98
Identity API: Add chrome.identity.onSignInChanged routing and IDL

This is the first part of adding the chrome.identity.onSignInChanged
event. This change creates the event in dev channel, and an event
router that can dispatch sign-in events to listening extensions.

A new permission, "identity.email" determines whether or not the app
may be given the email address of the account associated with the
user's profile. Apps without the permission still receive events, but
without the email address.

The code to actually generate the events will come in a future CL.

BUG=305830

Review URL: https://codereview.chromium.org/27283002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229345 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 229344
SVN changes up to revision 229345