Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Issue 10959049: Change visibility semantics for Instant. (Closed)

Created:
8 years, 3 months ago by sreeram
Modified:
8 years, 2 months ago
Reviewers:
sky, Shishir
CC:
chromium-reviews, samarth, gideonwald, dominich, David Black, Jered, Shishir
Visibility:
Public.

Description

Change visibility semantics for Instant. Don't change the visibility of the active tab as the Instant preview shows or hides. Instant previews should be considered transient a la the omnibox drop down, and shouldn't affect the active tab's visibility state. Also, now that we have SetInstantPreviewHeight(), this is a more reasonable approach when the preview doesn't completely obscure the tab. Also: + Remove the Hide() call when deleting the loader. This was only used in the past when there was a fade, and is not needed anymore. Instead, reset the state variables correctly. + Remove WasShown/WasHidden calls from BrowserInstantController. These are instead handled by the view code. + The "GetBackingStore called while hidden" DCHECK doesn't fire anymore, so enable a test on Windows. BUG=101593, 101922 R=sky@chromium.org,shishir@chromium.org TEST=Instant works as usual. The preview gets visibility change events as usual, but the underlying tab never gets a hidden event. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158613

Patch Set 1 #

Patch Set 2 : Reset state correctly #

Patch Set 3 : Enable a test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -105 lines) Patch
M chrome/browser/instant/instant_browsertest.cc View 1 2 3 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 chunk +2 lines, -14 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.mm View 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/tab_contents_container_gtk.h View 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/ui/gtk/tab_contents_container_gtk.cc View 3 chunks +36 lines, -64 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sreeram
Please review.
8 years, 3 months ago (2012-09-21 22:40:33 UTC) #1
sreeram
On 2012/09/21 22:40:33, sreeram wrote: > Please review. @sky, ping?
8 years, 2 months ago (2012-09-25 16:00:37 UTC) #2
sky
LGTM
8 years, 2 months ago (2012-09-25 16:21:09 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sreeram@chromium.org/10959049/10001
8 years, 2 months ago (2012-09-25 16:22:25 UTC) #4
commit-bot: I haz the power
8 years, 2 months ago (2012-09-25 18:21:22 UTC) #5
Change committed as 158613

Powered by Google App Engine
This is Rietveld 408576698