Fixes in the logic for dismissing the GestureNav overlay.
commit18c8f0e62bb61a50bdbaa74b6f3b1a2a560f3656
authormfomitchev@chromium.org <mfomitchev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 11 Mar 2014 00:16:32 +0000 (11 00:16 +0000)
committermfomitchev@chromium.org <mfomitchev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 11 Mar 2014 00:16:32 +0000 (11 00:16 +0000)
tree31f70d8864a4795a2ed6d80935f56fea08469c95
parent49acb2845a958b5b05a3febf6190a8489de6e6cf
Fixes in the logic for dismissing the GestureNav overlay.
- Added the logic to keep track of the 'target' web page and the current web page in OverscrollNavigationOverlay so that the overlay is not dismissed prematurely when navigating through multiple pages.
- For the purposes of the overlay - consider the page 'loaded' once the main frame is loaded, so that we don't have to wait for the entire page to load. This saves us up to 300ms for complex pages with multiple iframes.

BUG=345380, 347235

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256076 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/web_contents/aura/overscroll_navigation_overlay.cc
content/browser/web_contents/aura/overscroll_navigation_overlay.h
content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc