Implement support for monitor suspend.

This speeds up idle resume by around 2.5 seconds.

Previously, we would turn the panel off before idle suspend. Then we would
suspend and resume. On resume, the kernel would restore the "off" state, and
the Chrome monitor code would kick in to turn the panel on. This is a huge
waste of time when each panel configuration step takes more than one second.

Instead, just before suspending, we turn the backlight off and the panel on.
On resume the kernel sets the panel state to on right away, and power_manager
turns the backlight on. The Chrome monitor code still runs, but is a noop.

This change needs this power_manager change to handle the backlight part:
https://gerrit.chromium.org/gerrit/#/c/40971/

BUG=chrome-os-partner:13364
TEST=By hand: reduce the idle suspend timeout, let the machine idle and
TEST=suspend, press a key to resume and see how long it takes. The time
TEST=it takes shrinks from ~4 seconds to ~1.5 second.

Change-Id: I610995c12ed08624eb0bc91057d7c9bfa8002fbf

Review URL: https://chromiumcodereview.appspot.com/11783020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178195 0039d316-1c4b-4281-b951-d872f2087c98
Increased notification close button click area & added state images.

Expanded the clickable area for notifications from 8 x 8 pixels to
29 x 29 pixels and added hover and pressed state images.

Implementing this required moving the close button from a grid layout
column to a separate layer of the notification view, which caused a
number of changes in NotificationView's drawing.

In passing, references to one of the notification types the notification
view supports were changed from "multiple-item notifications" to the new
(and improved :-) "list notifications".

BUG=168822


Review URL: https://chromiumcodereview.appspot.com/11946035

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178196 0039d316-1c4b-4281-b951-d872f2087c98
Fix "Learn more..." link targets for Metro mode plug-in infobars.

BUG=169884


Review URL: https://chromiumcodereview.appspot.com/12017016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178197 0039d316-1c4b-4281-b951-d872f2087c98
Replace card shadow by more precise one.

Old: a 4-pixel gradient below
New: same as box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3)

BUG=161052


Review URL: https://chromiumcodereview.appspot.com/12026024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178198 0039d316-1c4b-4281-b951-d872f2087c98
This is regression of r172230. It removed enabling undo-command
from 'command' event handler for document object.

BUG=170842
NOTRY=1
TEST=Delete an item, then hit Ctrl+Z

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178199 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 178196
Fix bluetooth crashing issue, which happens due the pairing_delegate goes away, and BluetoothDeviceCallback not aware of this and keep calling it in the BT event callbacks. Cancel BT pairing event if user close the pairing dialog, so that BT device will cancel pairing, instead of waiting for timeout.

BUG=170540

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178200 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 178200
Prevent negative sizes in gesture code.

TBR=sky
BUG=160158
Relanding https://codereview.chromium.org/11365160/ in pieces.


Review URL: https://chromiumcodereview.appspot.com/12033023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178201 0039d316-1c4b-4281-b951-d872f2087c98
ui: Prevent negative sizes in unit tests.

TBR=sky
BUG=160158
Relanding https://codereview.chromium.org/11365160/ in pieces.


Review URL: https://chromiumcodereview.appspot.com/12035023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178202 0039d316-1c4b-4281-b951-d872f2087c98
Prevent negative sizes in shell_window.

TBR=sky
BUG=160158
Relanding https://codereview.chromium.org/11365160/ in pieces.


Review URL: https://chromiumcodereview.appspot.com/12036032

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178203 0039d316-1c4b-4281-b951-d872f2087c98
<webview> Report developer-friendly console error if contentWindow is undefined

BUG=171507
Test=manually


Review URL: https://chromiumcodereview.appspot.com/12036039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178204 0039d316-1c4b-4281-b951-d872f2087c98
Fix out-of-bounds memory access caused by crrev.com/178171

BUG=142915

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178205 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 178204
Fix gles2_cmd_format overflow

BUG=171200

Review URL: https://chromiumcodereview.appspot.com/12040004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178206 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 178205
[Android] Refactor MonthPickerDialog.

Remove the wrapper month_picker_dialog layout resource and instead
instantiate a MonthPicker View programmatically. This allows for
greater reuse of the layout XML with Android WebView work, where
we cannot reference custom classes in XML.


Review URL: https://chromiumcodereview.appspot.com/12040013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178207 0039d316-1c4b-4281-b951-d872f2087c98
ash: Use the Pass() idiom of scoped_ptr to pass the ownership of delegates.

This was requested in this code review:
https://chromiumcodereview.appspot.com/11150020, but at that time I just updated
the single case. Now this fixes all the other cases.

R=sky@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12042026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178208 0039d316-1c4b-4281-b951-d872f2087c98
ipc: Kill the base::Passed(foo.Pass()) meme.

This can be simply spelled as base::Passed(&foo).

BUG=155593
R=dmichael@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12042027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178209 0039d316-1c4b-4281-b951-d872f2087c98
fix BrowserNavigatorTest.NavigateFromDefaultToBookmarksInSameTab

it flakes because chrome://bookmarks/ redirects to chrome://bookmarks/#1

BUG=none


Review URL: https://chromiumcodereview.appspot.com/12042035

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178210 0039d316-1c4b-4281-b951-d872f2087c98