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

Issue 17774002: OmniboxPopupViewMac refactoring Part 3 (truncation) (Closed)

Created:
7 years, 6 months ago by sail
Modified:
7 years, 4 months ago
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

OmniboxPopupViewMac refactoring Part 3 (truncation) This CL changes how omnibox popup results are truncated. Previously content text would be truncated at 70% which might leave empty space if the description was short. I've made the following changes to the truncation code: - move the truncation logic to the button cell - have the content text fill up unused space when truncating - use a fade effect to truncate instead of ellipses BUG=9977, 252988 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217109

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : ] #

Patch Set 6 : rebase #

Patch Set 7 : #

Total comments: 19

Patch Set 8 : #

Total comments: 10

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -370 lines) Patch
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm View 1 2 3 4 5 6 7 8 9 5 chunks +79 lines, -18 lines 1 comment Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -19 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm View 1 2 3 4 5 6 7 8 9 5 chunks +14 lines, -104 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac_unittest.mm View 1 2 3 4 5 6 7 1 chunk +0 lines, -226 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
sail
7 years, 6 months ago (2013-06-25 23:01:29 UTC) #1
Scott Hess - ex-Googler
I support refactoring, but please break it into "Refactor to move stuff around" CL, and ...
7 years, 6 months ago (2013-06-25 23:46:09 UTC) #2
Scott Hess - ex-Googler
On 2013/06/25 23:46:09, shess wrote: > I support refactoring, but please break it into "Refactor ...
7 years, 6 months ago (2013-06-25 23:47:38 UTC) #3
sail
Ok, moved the simple refactoring into two separate CLs (crrev.com/17786002 and crrev.com/17787002). This CL only ...
7 years, 6 months ago (2013-06-26 03:23:02 UTC) #4
Scott Hess - ex-Googler
Sorry, totally missed this earlier. I need to go to supper, so you get the ...
7 years, 5 months ago (2013-06-28 01:02:48 UTC) #5
sail
Code is much simpler now. Please take a look. https://codereview.chromium.org/17774002/diff/17001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm File chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm (right): https://codereview.chromium.org/17774002/diff/17001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm#newcode33 chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm:33: ...
7 years, 5 months ago (2013-06-28 18:41:15 UTC) #6
Scott Hess - ex-Googler
https://codereview.chromium.org/17774002/diff/23001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm File chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm (right): https://codereview.chromium.org/17774002/diff/23001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm#newcode78 chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm:78: - (NSAttributedString*)contentText { Nobody even ever calls the getters. ...
7 years, 5 months ago (2013-06-28 20:11:34 UTC) #7
Scott Hess - ex-Googler
sailesh, I apologize, I'm going OOT tomorrow and now I'm worried we won't be done ...
7 years, 5 months ago (2013-06-28 22:53:05 UTC) #8
sail
On 2013/06/28 22:53:05, shess wrote: > sailesh, I apologize, I'm going OOT tomorrow and now ...
7 years, 5 months ago (2013-06-28 22:58:16 UTC) #9
sail
https://codereview.chromium.org/17774002/diff/23001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm File chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm (right): https://codereview.chromium.org/17774002/diff/23001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm#newcode78 chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm:78: - (NSAttributedString*)contentText { On 2013/06/28 20:11:34, shess wrote: > ...
7 years, 5 months ago (2013-06-30 18:49:11 UTC) #10
Scott Hess - ex-Googler
LGTM. Just a couple nits. https://codereview.chromium.org/17774002/diff/30001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm File chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm (right): https://codereview.chromium.org/17774002/diff/30001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm#newcode44 chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm:44: if (!clipping) You don't ...
7 years, 5 months ago (2013-07-08 20:53:11 UTC) #11
sail
https://codereview.chromium.org/17774002/diff/30001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm File chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm (right): https://codereview.chromium.org/17774002/diff/30001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm#newcode44 chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm:44: if (!clipping) On 2013/07/08 20:53:11, shess wrote: > You ...
7 years, 4 months ago (2013-08-12 17:39:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/17774002/35001
7 years, 4 months ago (2013-08-12 17:39:58 UTC) #13
commit-bot: I haz the power
7 years, 4 months ago (2013-08-12 23:05:32 UTC) #14
Message was sent while issue was closed.
Change committed as 217109

Powered by Google App Engine
This is Rietveld 408576698