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

Issue 449056: Mac: change tab change notifications to pass full TabChangeType. (Closed)

Created:
11 years ago by viettrungluu
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Mac: change tab change notifications to pass full TabChangeType. This makes the Mac code better parallel that on other platforms. It will also be needed to make the "glow" animation for (unselected, title-changing) pinned tabs work. (I have a mostly-working patch which does the glow, but it's horribly hacky and to get it to completely work would either involve much more hackiness or significant refactoring. That's why the glow is not part of this CL.) Also: prevent changes in background tabs (e.g., loading finished) from killing any current bookmark bar animation. Still to do on this front (part of issue 27693): be smarter about bookmark bar updates in the selected tab. BUG=28154, 27693 TEST=Load lots of (slow-loading) pages in background tabs while pressing Shift-Cmd-B repeatedly; make sure changes in background (unselected) tabs don't cancel the animation. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33455

Patch Set 1 #

Total comments: 6

Patch Set 2 : Changes per review. #

Total comments: 4

Patch Set 3 : Added comment. #

Patch Set 4 : Rebased ToT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -27 lines) Patch
M chrome/browser/cocoa/browser_window_controller.mm View 1 2 1 chunk +13 lines, -17 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.mm View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_model_observer_bridge.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/tab_strip_model_observer_bridge.mm View 1 chunk +2 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
pink (ping after 24hrs)
i still have no idea what TITLE_NOT_LOADING implies. The header comment doesn't really help. http://codereview.chromium.org/449056/diff/1/2 ...
11 years ago (2009-12-01 16:35:39 UTC) #1
viettrungluu
Thanks. TITLE_NOT_LOADING means (AFAICT) that only the tab's title changed (presumably through Javascript), without any ...
11 years ago (2009-12-01 16:54:04 UTC) #2
pink (ping after 24hrs)
LGTM with comments. http://codereview.chromium.org/449056/diff/11/2001 File chrome/browser/cocoa/browser_window_controller.mm (left): http://codereview.chromium.org/449056/diff/11/2001#oldcode1116 chrome/browser/cocoa/browser_window_controller.mm:1116: toolbar_->SetProfile(newContents->profile()); this worries me, as if ...
11 years ago (2009-12-01 17:09:18 UTC) #3
viettrungluu
http://codereview.chromium.org/449056/diff/11/2001 File chrome/browser/cocoa/browser_window_controller.mm (left): http://codereview.chromium.org/449056/diff/11/2001#oldcode1116 chrome/browser/cocoa/browser_window_controller.mm:1116: toolbar_->SetProfile(newContents->profile()); On 2009/12/01 17:09:18, pink wrote: > this worries ...
11 years ago (2009-12-01 17:24:47 UTC) #4
viettrungluu
11 years ago (2009-12-01 17:36:05 UTC) #5
On 2009/12/01 17:24:47, viettrungluu wrote:
> http://codereview.chromium.org/449056/diff/11/2001#oldcode1116
> chrome/browser/cocoa/browser_window_controller.mm:1116:
> toolbar_->SetProfile(newContents->profile());
> On 2009/12/01 17:09:18, pink wrote:
> > this worries me, as if there is something that might care about a new
> > TabContents having a *different* profile and that we'd somehow have to react
> to
> > that. Can you ask ben or brettw about this before removing it entirely?
> 
> Sure, I'll ask.
> 
> From quickly looking through the code, it looks like the location bar cares
> about the profile. But can we really have different profiles in different tabs
> (in the same browser window)? Is this a legacy capability?

So Brett's quick response (to what's in the Windows code) is "that's kind of
dumb" (or something like that), for the reasons I suggested (namely that
profiles are per-browser).

Powered by Google App Engine
This is Rietveld 408576698