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

Issue 1119005: [Mac] Re-enable pinned tabs; add support for mini-tabs and phantom tabs. (Closed)

Created:
10 years, 9 months ago by Robert Sesek
Modified:
9 years, 7 months ago
CC:
chromium-reviews, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

[Mac] Re-enable pinned tabs; add support for mini-tabs and phantom tabs. This CL rewires the old support for pinned tabs to support mini-tabs. This also removes the kEnablePinnedTabs browser default now that all platforms support it. Note that pinning is now only accessible through the context menu; drag-to-pin has been removed. BUG=36798, 32845 TEST=Right-click and pin two tabs. Test dragging on and off and around the tab strip. TEST=Cmd+W a pinned tab and it should go phantom (renderer closes down) and the tab is made alpha. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42548

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 13

Patch Set 3 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -136 lines) Patch
M chrome/browser/cocoa/browser_window_controller.mm View 1 6 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/tab_controller.h View 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/tab_controller.mm View 1 2 9 chunks +23 lines, -10 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.h View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.mm View 1 2 15 chunks +72 lines, -72 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_model_observer_bridge.h View 3 chunks +8 lines, -6 lines 0 comments Download
chrome/browser/cocoa/tab_strip_model_observer_bridge.mm View 3 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/defaults.h View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/defaults.cc View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/sessions/session_service.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/sessions/session_service_unittest.cc View 1 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service_unittest.cc View 3 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/tab_menu_model.cc View 2 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Robert Sesek
10 years, 9 months ago (2010-03-21 13:48:37 UTC) #1
pink (ping after 24hrs)
I'm confused. What's the diff between pinned, mini, and phantom tabs? Are pinned tabs gone? ...
10 years, 9 months ago (2010-03-22 14:55:11 UTC) #2
sky
From TabStripModel: // Each tab may be any one of the following states: // . ...
10 years, 9 months ago (2010-03-22 15:22:20 UTC) #3
pinkerton1
What's the purpose of phantom tabs? What's a use case for them? On Mon, Mar ...
10 years, 9 months ago (2010-03-22 15:29:25 UTC) #4
pinkerton1
Also, I'm not clear how the user marks a tab as phantom. Is it in ...
10 years, 9 months ago (2010-03-22 15:32:49 UTC) #5
viettrungluu
/me goes to check out Chrome on Windows before asking any more stupid questions.... http://codereview.chromium.org/1119005/diff/3001/4001 ...
10 years, 9 months ago (2010-03-22 16:27:23 UTC) #6
pink (ping after 24hrs)
LGTM code-wise. Would like to see the answer to trung's question as well.
10 years, 9 months ago (2010-03-22 16:33:08 UTC) #7
sky
On Mon, Mar 22, 2010 at 9:27 AM, <viettrungluu@chromium.org> wrote: > /me goes to check ...
10 years, 9 months ago (2010-03-22 16:43:37 UTC) #8
viettrungluu
@rsesek: Could you check that dragging a pinned tab to the right of an unpinned ...
10 years, 9 months ago (2010-03-22 16:47:39 UTC) #9
Avi (use Gerrit)
http://codereview.chromium.org/1119005/diff/3001/4003 File chrome/browser/cocoa/tab_controller.mm (right): http://codereview.chromium.org/1119005/diff/3001/4003#newcode23 chrome/browser/cocoa/tab_controller.mm:23: namespace TabControllerInternal { On 2010/03/22 16:47:40, viettrungluu wrote: > ...
10 years, 9 months ago (2010-03-22 16:57:48 UTC) #10
viettrungluu
http://codereview.chromium.org/1119005/diff/3001/4003 File chrome/browser/cocoa/tab_controller.mm (right): http://codereview.chromium.org/1119005/diff/3001/4003#newcode23 chrome/browser/cocoa/tab_controller.mm:23: namespace TabControllerInternal { On 2010/03/22 16:57:48, Avi wrote: > ...
10 years, 9 months ago (2010-03-22 17:00:48 UTC) #11
Robert Sesek
If a user closes a mini tab (either through "Close Tab" context menu or Cmd+W), ...
10 years, 9 months ago (2010-03-22 17:59:52 UTC) #12
sky
On Mon, Mar 22, 2010 at 10:59 AM, <rsesek@chromium.org> wrote: > If a user closes ...
10 years, 9 months ago (2010-03-22 18:24:30 UTC) #13
Robert Sesek
On Mon, Mar 22, 2010 at 2:24 PM, Scott Violet <sky@chromium.org> wrote: > On Mon, ...
10 years, 9 months ago (2010-03-23 14:43:22 UTC) #14
sky
On Tue, Mar 23, 2010 at 7:42 AM, Robert Sesek <rsesek@chromium.org> wrote: > On Mon, ...
10 years, 9 months ago (2010-03-23 15:19:54 UTC) #15
Robert Sesek
Are there any more comments/questions, or am I free to land?
10 years, 9 months ago (2010-03-24 05:43:18 UTC) #16
viettrungluu
On 2010/03/24 05:43:18, rsesek wrote: > Are there any more comments/questions, or am I free ...
10 years, 9 months ago (2010-03-24 05:51:03 UTC) #17
sky
10 years, 9 months ago (2010-03-24 15:10:43 UTC) #18
LGTM

Powered by Google App Engine
This is Rietveld 408576698