Chromium Code Reviews
Help | Chromium Project | Sign in
(1)

Issue 2805070: [Mac] First part of Omnibox decoration refactor. Enable ev bubble. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 11 months ago by Scott Hess
Modified:
3 years, 11 months ago
CC:
chromium-reviews, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Base URL:
git://codf21.jail/chromium.git
Visibility:
Public.

Description

[Mac] First part of Omnibox decoration refactor. Enable ev bubble. The views implementation of the little things floating around in the Omnibox uses nested views which are manually laid out by the location-bar code. The Mac code has a variety of different implementations for these items, with the layout distributed across many files. This change creates something called a "decoration" which is similar (different name because Mac has a strong sense of what a "view" is). Decorations are kind of like a C++ NSCell, which the AutocompleteTextFieldCell handles generically and the LocationBarViewMac::Layout() code will lay out. The overall goal is to loosely parallel the views code for decorations and Layout(), so that future coders can do the right thing more easily. This CL converts the left-hand items, namely: - the location icon - the search-keyword bubble - the ev security bubble (new) The Layout() function does not yet deal with trimming things to fit when space is tight. location_bar_view_mac_unittest.mm was always a sham, so I'm going to stop pretending. BUG=41998 TEST=EV bubble for secure sites. TEST=location icon can be clicked (page info panel) and dragged. TEST=EV bubble can be clicked (page info panel) and dragged. TEST=keyword-search mode shows appropriately. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52223

Patch Set 1 #

Total comments: 33

Patch Set 2 : Rohit's comments. #

Patch Set 3 : Egregious const uses make Trung sad. #

Total comments: 1

Patch Set 4 : comment clarification #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1194 lines, -877 lines) Patch
M chrome/browser/cocoa/location_bar/autocomplete_text_field.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/location_bar/autocomplete_text_field.mm View 1 2 3 2 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h View 1 6 chunks +21 lines, -28 lines 0 comments Download
M chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.mm View 1 2 3 25 chunks +189 lines, -226 lines 0 comments Download
M chrome/browser/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm View 1 2 10 chunks +85 lines, -161 lines 0 comments Download
M chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest.mm View 1 2 3 11 chunks +88 lines, -96 lines 0 comments Download
A chrome/browser/cocoa/location_bar/bubble_decoration.h View 1 2 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/location_bar/bubble_decoration.mm View 1 2 1 chunk +116 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/location_bar/ev_bubble_decoration.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/location_bar/ev_bubble_decoration.mm View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/location_bar/location_bar_decoration.h View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/location_bar/location_bar_decoration.mm View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar/location_bar_view_mac.h View 6 chunks +14 lines, -42 lines 0 comments Download
M chrome/browser/cocoa/location_bar/location_bar_view_mac.mm View 1 2 12 chunks +108 lines, -184 lines 0 comments Download
D chrome/browser/cocoa/location_bar/location_bar_view_mac_unittest.mm View 1 chunk +0 lines, -129 lines 0 comments Download
A chrome/browser/cocoa/location_bar/location_icon_decoration.h View 1 2 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/location_bar/location_icon_decoration.mm View 1 2 1 chunk +92 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/location_bar/selected_keyword_decoration.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/location_bar/selected_keyword_decoration.mm View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/location_bar/selected_keyword_decoration_unittest.mm View 1 chunk +64 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -1 line 0 comments Download
Trybot results:  mac 
Commit: CQ not working?

Messages

Total messages: 8 (0 generated)
Scott Hess
4 years, 11 months ago (2010-07-02 21:54:36 UTC) #1
rohitrao (OOO until 6-22)
So much code! I made it through half of it, will look at the autocomplete_* ...
4 years, 10 months ago (2010-07-08 13:38:06 UTC) #2
rohitrao (OOO until 6-22)
Nothing too exciting. http://codereview.chromium.org/2805070/diff/1/3 File chrome/browser/cocoa/location_bar/autocomplete_text_field.mm (right): http://codereview.chromium.org/2805070/diff/1/3#newcode210 chrome/browser/cocoa/location_bar/autocomplete_text_field.mm:210: // stuff? Sigh. Right now we're ...
4 years, 10 months ago (2010-07-09 01:32:01 UTC) #3
Scott Hess
Yeah, this was quite a chunk. I wished mightily to get a more approachable core, ...
4 years, 10 months ago (2010-07-09 07:40:12 UTC) #4
Scott Hess
ping? I can't deliver the other scary CLs without getting this one into the can!
4 years, 10 months ago (2010-07-12 19:36:10 UTC) #5
rohitrao (OOO until 6-22)
LGTM! http://codereview.chromium.org/2805070/diff/1/5 File chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.mm (right): http://codereview.chromium.org/2805070/diff/1/5#newcode106 chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.mm:106: // is included in their origins). Does the ...
4 years, 10 months ago (2010-07-12 19:50:38 UTC) #6
Scott Hess
Wow. Didn't expect that, I figured on a few more rounds of debate :-). I'm ...
4 years, 10 months ago (2010-07-12 20:31:16 UTC) #7
rohitrao (OOO until 6-22)
4 years, 10 months ago (2010-07-12 21:57:11 UTC) #8
Heh, but you made all the changes I asked you to!  I'll be more
critical once the RHS decoration code comes in.  Until then, it's hard
to separate the more-cls-are-coming ugly from the real ugly.

On Mon, Jul 12, 2010 at 1:30 PM, Scott Hess <shess@chromium.org> wrote:
> Wow.  Didn't expect that, I figured on a few more rounds of debate :-).
>
> I'm going to log bugs (and CC you) on a couple design points in this.
> If you think that I'm being overly sensitive, suggest WontFix and I'll
> move on.
>
> -scott
>
>
> On Mon, Jul 12, 2010 at 12:50 PM,  <rohitrao@chromium.org> wrote:
>> LGTM!
>>
>>
>> http://codereview.chromium.org/2805070/diff/1/5
>> File chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.mm
>> (right):
>>
>> http://codereview.chromium.org/2805070/diff/1/5#newcode106
>> chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.mm:106:
>> // is included in their origins).
>> Does the parenthetical comment just confuse the
>>>
>>> issue more?
>>
>> I think it confused me.  You already say that they are in the same
>> coordinate system as cell_frame.  Btw, s/|frame|/|cell_frame|/?
>>
>> http://codereview.chromium.org/2805070/diff/18001/19004#newcode108
>> chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.mm:108:
>> // An additional |NULL| decoration is pushed on to provide a spot for
>> The NULL comment no longer applies.
>>
>> http://codereview.chromium.org/2805070/show
>>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be