Tabs being screen-captured will fullscreen within their tab contents area.

Note: This change in behavior only applies when the --embed-flash-fullscreen experimental flag is enabled.

This change adds additional logic to FullscreenController to prevent the browser window from entering fullscreen if a tab is being screen-captured.  This allows the user to retain control of their desktop to work in other browser tabs or applications while the fullscreen view is displayed on a remote screen (e.g., a Chromecast receiver).

Furthermore, if a user switches to a different tab, FullscreenController will set the size of the hidden view to the video resolution of the capture.  This is both a quality and performance improvement as harmful scaling and letterboxing can be skipped.

BUG=256870
TEST=New FullscreenController state tests.  Ran all disabled FullscreenControllerInteractiveTests (in interactive_ui_tests).  Also confirmed all new functionality manually.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250872 0039d316-1c4b-4281-b951-d872f2087c98
Fixing M33 and M34 stable blocker crash with InsertAppLauncherItem

The problem appears to be that the function GetLastActiveWebContents returns a WebContents pointer to some content which got already deleted. (See comment from CL).

Note that this is only used in InsertAppLauncherItem to find the activity state. Note that this indicates that we could even get rid of that map and use app_id_to_web_contents to find if a tab is currently active. But again - keeping the CL small for the backport.

This seems to be the most secure and isolated for for M33 and 34 - I will create an issue to follow up on this the proper way.

BUG=341250
TEST=none (no test case known)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250874 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Wire InstallFinished and add some InstallEvent.waitUntil tests (https://codereview.chromium.org/153553008/)

Reason for revert:
Suspect cause for failing content_browsertests:ServiceWorkerVersionBrowserTests

Original issue's description:
> Wire InstallFinished and add some InstallEvent.waitUntil tests
> 
> BUG=285976
> TEST=content_browsertests:ServiceWorkerVersionBrowserTest.Install*
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250804

TBR=alecflett@chromium.org,kinuko@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=285976

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250886 0039d316-1c4b-4281-b951-d872f2087c98
Use the same handle for checking and duplicating in DuplicateHandleProxy

BUG=338524
R=cpu@chromium.org
NOTRY=true

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250744

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250890 0039d316-1c4b-4281-b951-d872f2087c98
Restore screen work area after login

When user login, a new virtual keyboard is created. If the old virtual keyboard
was showing before user login, we need to notfiy keyboard bounds observers that
old virtual keyboard window occupy no space on screen. Otherwise, Ash still thinks
the work area should exclude virtual keyboard area even the keyboard is not showing.
This CL fixed the bug.

BUG=342524

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250892 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 166948:167046

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=166949:167046&mode=html
TBR=
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250893 0039d316-1c4b-4281-b951-d872f2087c98
Add missing 2x accessibility status icon.

BUG=321625
TEST=trybot
R=oshima@chromium.org

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250896 0039d316-1c4b-4281-b951-d872f2087c98
Disable an IndexedDBBrowserTestSingleProcess test on Android

Does not appear to be IndexedDB related, but something about setting
the kSingleProcess flag in a content_browsertest - although that does
not appear unique to this test.

NOTRY=true
R=aurimas@chromium.org
BUG=342525

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250898 0039d316-1c4b-4281-b951-d872f2087c98
device/bluetooth: Add abstract API definition for BluetoothGattDescriptor.

This CL defines the abstract class BluetoothGattDesciptor, which represents
remote and local GATT characteristic descriptors in the GATT API.

BUG=340525
TEST=Compile Chrome.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250899 0039d316-1c4b-4281-b951-d872f2087c98
Prompt for extension install on startup even when --force-app-mode is passed

This ensures that extensions installed with --install-from-webstore still show
an install prompt.

BUG=342949
TEST=See bug for repro
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250900 0039d316-1c4b-4281-b951-d872f2087c98
Add CachingFileSystem on top of CloudStorageFileSystem
to improve performance of the docserver, avoiding hit Cloud Storage
on every request.

BUG=343315
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250901 0039d316-1c4b-4281-b951-d872f2087c98
Add yoshiki@ to filemanager WATCHLIST

And also remove yoshiki@ from the previous a11y and task_manager.

BUG=none
TBR=satorux@chromium.org
NOTRY=True

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250903 0039d316-1c4b-4281-b951-d872f2087c98
Minor cleanups in UI code that gets host state when webapp is stared

- Previously the UI was getting local host ID before getting state,
but it doesn't make sense when host is not started.
- 2 minor changes in HostList and HostController around host state
initialization.

BUG=149744
R=jamiewalch@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250908 0039d316-1c4b-4281-b951-d872f2087c98
Fix and re-enable NoScriptAccessAfterSwapOut test.

BUG=261313
TEST=RenderFrameHostManagerTest.NoScriptAccessAfterSwapOut passes.
R=nasko@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250909 0039d316-1c4b-4281-b951-d872f2087c98
Docserver: Fixes for expand/collapse issue and fatnav closing on mouseleave.

Formerly known as CL 138213007. See notes over there: https://codereview.chromium.org/138213007/

NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250914 0039d316-1c4b-4281-b951-d872f2087c98
Update a stale comment.

R=eroman@chromium.org
BUG=none
TEST=none
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250915 0039d316-1c4b-4281-b951-d872f2087c98
Packing/unpacking of width and height in gfx::Size is redundant while using CreateJavaBitmap.

We pack width/height in ConvertToJavaBitmap into gfx::Size to be unpacked in CreateJavaBitmap
while calling the BitmapHelper.createBitmap method from Java. This is not needed and should
be called directly using width and height as is.

R=danakj

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

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