Fix spurious visibility events when committing Instant.
This CL fixes things so that we consistently handle the Instant preview when
committing, on all platforms. On a commit, whether on the current tab or a new
tab, we'll never hide the preview.
R=sky@chromium.org
BUG=none
TEST=none; no functionality change.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164350
http://codereview.chromium.org/11233076/diff/1/chrome/browser/ui/views/frame/...
File chrome/browser/ui/views/frame/browser_view.cc (right):
http://codereview.chromium.org/11233076/diff/1/chrome/browser/ui/views/frame/...
chrome/browser/ui/views/frame/browser_view.cc:1383: void
BrowserView::TabInsertedAt(TabContents* contents, int index, bool active) {
On 2012/10/24 16:46:45, sreeram wrote:
> On 2012/10/24 03:51:16, sky wrote:
> > Why can't we wait until ActiveTabChanged?
>
> I suppose we could. However, I plan to add support for the NEW_BACKGROUND_TAB
> disposition as well very soon, at which time, we'll definitely need this
method.
I don't like adding another method that overlaps with the existing one. Use the
existing one until we really need this.
sreeram
http://codereview.chromium.org/11233076/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/11233076/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode1383 chrome/browser/ui/views/frame/browser_view.cc:1383: void BrowserView::TabInsertedAt(TabContents* contents, int index, bool active) { On ...
http://codereview.chromium.org/11233076/diff/1/chrome/browser/ui/views/frame/...
File chrome/browser/ui/views/frame/browser_view.cc (right):
http://codereview.chromium.org/11233076/diff/1/chrome/browser/ui/views/frame/...
chrome/browser/ui/views/frame/browser_view.cc:1383: void
BrowserView::TabInsertedAt(TabContents* contents, int index, bool active) {
On 2012/10/24 20:49:26, sky wrote:
> On 2012/10/24 16:46:45, sreeram wrote:
> > On 2012/10/24 03:51:16, sky wrote:
> > > Why can't we wait until ActiveTabChanged?
> >
> > I suppose we could. However, I plan to add support for the
NEW_BACKGROUND_TAB
> > disposition as well very soon, at which time, we'll definitely need this
> method.
>
> I don't like adding another method that overlaps with the existing one. Use
the
> existing one until we really need this.
Done. In fact, I realized that pretty much everything can be consolidated into
ActiveTabChanged. So I've removed the insert/replace tab events from both views
& cocoa (gtk always just used active tab event). I've also updated the test to
be check the visibility transitions more thoroughly.
Commit queue had an internal error. Something went really wrong, probably a crash, a hickup ...
8 years, 1 month ago
(2012-10-26 17:12:00 UTC)
#12
Commit queue had an internal error.
Something went really wrong, probably a crash, a hickup or
simply the monkeys went out for dinner.
The relevant dude was pinged already.
commit-bot: I haz the power
Change committed as 164350
8 years, 1 month ago
(2012-10-26 17:54:59 UTC)
#13
Issue 11233076: Fix spurious visibility events when committing Instant.
(Closed)
Created 8 years, 1 month ago by sreeram
Modified 8 years, 1 month ago
Reviewers: sky, dhollowa, rohitrao (ping after 24h)
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 6