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

Issue 11316127: Alternate NTP: Limit width of tab titles in recent tabs menu (Closed)

Created:
8 years, 1 month ago by sail
Modified:
8 years ago
Reviewers:
Robert Sesek, sky, kuan
CC:
chromium-reviews, sail+watch_chromium.org
Visibility:
Public.

Description

Alternate NTP: Limit width of tab titles in recent tabs menu This is the Mac version of this CL: https://chromiumcodereview.appspot.com/11410067 It limits the width of tab titles and window names in the recent tabs menu. BUG=160844 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170914

Patch Set 1 #

Total comments: 6

Patch Set 2 : address review comments #

Patch Set 3 : address review comments #

Patch Set 4 : address review comments #

Total comments: 9

Patch Set 5 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -54 lines) Patch
M chrome/app/chrome_command_ids.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.mm View 3 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/menu_controller.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/menu_controller.mm View 1 2 4 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller_unittest.mm View 3 chunks +66 lines, -1 line 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.h View 3 chunks +10 lines, -19 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc View 1 2 3 4 5 chunks +42 lines, -15 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc View 4 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc View 1 3 chunks +42 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
sail
Hi kuan, I'd like to refactor the views code to use the new helper function ...
8 years, 1 month ago (2012-11-21 05:46:47 UTC) #1
sail
On 2012/11/21 05:46:47, sail wrote: > Hi kuan, I'd like to refactor the views code ...
8 years, 1 month ago (2012-11-21 06:31:03 UTC) #2
sail
> I think the new RecentTabsSubMenuModel::GetMaxWidthForItemAtIndex() but I'm not > sure how that function can ...
8 years, 1 month ago (2012-11-21 06:32:12 UTC) #3
kuan
u r right, good catch! my implementation for max menu width also elide restore-tab and ...
8 years, 1 month ago (2012-11-21 15:52:43 UTC) #4
sail
https://codereview.chromium.org/11316127/diff/1/chrome/browser/ui/cocoa/menu_controller.h File chrome/browser/ui/cocoa/menu_controller.h (right): https://codereview.chromium.org/11316127/diff/1/chrome/browser/ui/cocoa/menu_controller.h#newcode78 chrome/browser/ui/cocoa/menu_controller.h:78: // Returns the maximum width for the menu menu ...
8 years, 1 month ago (2012-11-21 19:28:30 UTC) #5
Robert Sesek
LGTM https://codereview.chromium.org/11316127/diff/1/chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm File chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm (right): https://codereview.chromium.org/11316127/diff/1/chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm#newcode340 chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm:340: if (recentTabsMenuModel == model) nit: braces needed since ...
8 years ago (2012-11-27 17:09:20 UTC) #6
sail
https://codereview.chromium.org/11316127/diff/1/chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm File chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm (right): https://codereview.chromium.org/11316127/diff/1/chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm#newcode340 chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm:340: if (recentTabsMenuModel == model) On 2012/11/27 17:09:20, rsesek wrote: ...
8 years ago (2012-11-28 07:38:25 UTC) #7
sail
8 years ago (2012-11-28 07:38:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11316127/12001
8 years ago (2012-11-28 07:39:37 UTC) #9
commit-bot: I haz the power
Presubmit check for 11316127-12001 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-11-28 07:39:45 UTC) #10
sail
+sky for chrome/browser/ui/* OWNERS review
8 years ago (2012-11-28 07:48:03 UTC) #11
sky
https://chromiumcodereview.appspot.com/11316127/diff/12001/chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc File chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc (right): https://chromiumcodereview.appspot.com/11316127/diff/12001/chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc#newcode60 chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc:60: SessionID::id_type id; Add constructor to initialize id. https://chromiumcodereview.appspot.com/11316127/diff/12001/chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc#newcode65 chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc:65: ...
8 years ago (2012-11-28 15:41:28 UTC) #12
sail
Comments addressed. Please take another look. https://chromiumcodereview.appspot.com/11316127/diff/12001/chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc File chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc (right): https://chromiumcodereview.appspot.com/11316127/diff/12001/chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc#newcode60 chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc:60: SessionID::id_type id; On ...
8 years ago (2012-11-30 23:24:53 UTC) #13
kuan
https://chromiumcodereview.appspot.com/11316127/diff/12001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc File chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc (right): https://chromiumcodereview.appspot.com/11316127/diff/12001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc#newcode240 chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc:240: int RecentTabsSubMenuModel::GetMaxWidthForItemAtIndex(int item_index) const { On 2012/11/30 23:24:53, sail ...
8 years ago (2012-11-30 23:40:59 UTC) #14
sail
On 2012/11/30 23:40:59, kuan wrote: > https://chromiumcodereview.appspot.com/11316127/diff/12001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc > File chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc (right): > > https://chromiumcodereview.appspot.com/11316127/diff/12001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc#newcode240 > ...
8 years ago (2012-11-30 23:57:15 UTC) #15
kuan
On 2012/11/30 23:57:15, sail wrote: > On 2012/11/30 23:40:59, kuan wrote: > > > https://chromiumcodereview.appspot.com/11316127/diff/12001/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc ...
8 years ago (2012-12-01 00:06:07 UTC) #16
sail
On 2012/12/01 00:06:07, kuan wrote: > On 2012/11/30 23:57:15, sail wrote: > > On 2012/11/30 ...
8 years ago (2012-12-01 00:11:01 UTC) #17
sail
On 2012/12/01 00:06:07, kuan wrote: > On 2012/11/30 23:57:15, sail wrote: > > On 2012/11/30 ...
8 years ago (2012-12-01 00:11:01 UTC) #18
sail
sky: Ping!
8 years ago (2012-12-03 22:43:49 UTC) #19
sky
LGTM
8 years ago (2012-12-03 23:56:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11316127/7002
8 years ago (2012-12-04 00:28:11 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-04 04:21:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11316127/7002
8 years ago (2012-12-04 04:22:34 UTC) #23
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests
8 years ago (2012-12-04 07:20:17 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11316127/7002
8 years ago (2012-12-04 07:40:47 UTC) #25
commit-bot: I haz the power
8 years ago (2012-12-04 09:40:46 UTC) #26
Message was sent while issue was closed.
Change committed as 170914

Powered by Google App Engine
This is Rietveld 408576698