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

Issue 600133: Mac: Content blocked icons. (Closed)

Created:
10 years, 10 months ago by Nico
Modified:
9 years, 7 months ago
Reviewers:
Miranda Callahan, Bons
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Mac: Content blocked icons. Also rewrite how omnibox icons are handled, to make it less repetitive to add the content blocked icons. Remove a O(n^2) while I'm at it. BUG=35594, 34894 TEST=Go to a page with popups. "popups blocked" icon should appear in omnibox. It should have a tooltip, and a normal arrow cursor on mouse over. Switching tabs should make it go away, coming back to the tab with the blocked popup should make it go back. Page actions should still work (tooltips, clicking, context menu, display). Security icon should still work. Install rss extension; the preview bubble should point to the right icon. http://imgur.com/Yo0Ss Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39158

Patch Set 1 #

Patch Set 2 : works (modulo spacing and breaking nearly all clients of pageActionFrameForIndex) #

Patch Set 3 : spacing #

Patch Set 4 : most stuff actually works #

Total comments: 1

Patch Set 5 : tests #

Patch Set 6 : make one method more solid. also fix extension_bubble_controller which relied on a bug that i fixed #

Patch Set 7 : rebase #

Total comments: 50

Patch Set 8 : comments mirandac #

Patch Set 9 : comments andybons #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -186 lines) Patch
M base/scoped_vector.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -1 line 0 comments Download
M chrome/app/nibs/Preferences.xib View 8 chunks +118 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field.mm View 4 5 6 7 8 4 chunks +12 lines, -28 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_cell.h View 1 2 3 4 5 6 7 8 5 chunks +37 lines, -22 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_cell.mm View 1 2 3 4 5 6 7 8 6 chunks +84 lines, -80 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_cell_unittest.mm View 4 5 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_editor.mm View 2 chunks +6 lines, -19 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_editor_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_unittest.mm View 4 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/cocoa/extension_installed_bubble_controller.mm View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.h View 1 2 3 4 5 6 7 8 chunks +57 lines, -5 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.mm View 1 2 3 4 5 6 7 8 12 chunks +98 lines, -7 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.mm View 2 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Nico
Ignore the changes to Preferences.xib and preferences_window_controller.mm, I will revert those before submitting (git artifact). ...
10 years, 10 months ago (2010-02-16 20:42:26 UTC) #1
Nico
http://codereview.chromium.org/600133/diff/16/1021 File chrome/browser/cocoa/autocomplete_text_field_cell.mm (right): http://codereview.chromium.org/600133/diff/16/1021#newcode254 chrome/browser/cocoa/autocomplete_text_field_cell.mm:254: // Account for the lock icon, if any, and ...
10 years, 10 months ago (2010-02-16 22:03:11 UTC) #2
Miranda Callahan
http://codereview.chromium.org/600133/diff/5001/5004 File chrome/browser/cocoa/autocomplete_text_field.mm (right): http://codereview.chromium.org/600133/diff/5001/5004#newcode118 chrome/browser/cocoa/autocomplete_text_field.mm:118: // If the user clicked on of the icons ...
10 years, 10 months ago (2010-02-16 22:14:02 UTC) #3
Miranda Callahan
Nice patch, btw -- many things are much clearer.
10 years, 10 months ago (2010-02-16 22:16:24 UTC) #4
Bons
http://codereview.chromium.org/600133/diff/5001/5002 File base/scoped_vector.h (right): http://codereview.chromium.org/600133/diff/5001/5002#newcode1 base/scoped_vector.h:1: // Copyright (c) 2006-2008 The Chromium Authors. All rights ...
10 years, 10 months ago (2010-02-16 22:42:04 UTC) #5
Nico
on to andy's comments… http://codereview.chromium.org/600133/diff/5001/5004 File chrome/browser/cocoa/autocomplete_text_field.mm (right): http://codereview.chromium.org/600133/diff/5001/5004#newcode118 chrome/browser/cocoa/autocomplete_text_field.mm:118: // If the user clicked ...
10 years, 10 months ago (2010-02-16 22:45:37 UTC) #6
Nico
Thanks! http://codereview.chromium.org/600133/diff/5001/5002 File base/scoped_vector.h (right): http://codereview.chromium.org/600133/diff/5001/5002#newcode1 base/scoped_vector.h:1: // Copyright (c) 2006-2008 The Chromium Authors. All ...
10 years, 10 months ago (2010-02-16 23:04:11 UTC) #7
Bons
LGTM http://codereview.chromium.org/600133/diff/5001/5004 File chrome/browser/cocoa/autocomplete_text_field.mm (right): http://codereview.chromium.org/600133/diff/5001/5004#newcode121 chrome/browser/cocoa/autocomplete_text_field.mm:121: for (AutocompleteTextFieldIcon* icon in [cell layedOutIcons:bounds]) { On ...
10 years, 10 months ago (2010-02-16 23:23:02 UTC) #8
Miranda Callahan
10 years, 10 months ago (2010-02-16 23:25:23 UTC) #9
LGTM++

On 2010/02/16 23:23:02, Andrew Bonventre (Bons) wrote:
> LGTM
> 
> http://codereview.chromium.org/600133/diff/5001/5004
> File chrome/browser/cocoa/autocomplete_text_field.mm (right):
> 
> http://codereview.chromium.org/600133/diff/5001/5004#newcode121
> chrome/browser/cocoa/autocomplete_text_field.mm:121: for
> (AutocompleteTextFieldIcon* icon in [cell layedOutIcons:bounds]) {
> On 2010/02/16 23:04:11, Nico wrote:
> > On 2010/02/16 22:42:04, Andrew Bonventre (Bons) wrote:
> > > Cache the layedOutIcons so that the method isn't being called for each
one?
> > Your
> > > call since there are probably so little that it doesn't really matter.
> > 
> > Huh? I'm pretty sure that fast enumeration evaluates the "in" expression
only
> > once. Is that wrong? Am I missing something?
> 
> Ah. I'm not familiar enough with FE to know, so I'll trust your assumption.

Powered by Google App Engine
This is Rietveld 408576698