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

Issue 50074: Initial implemention of Mac Omnibox. (Closed)

Created:
11 years, 9 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Initial implemention of Mac Omnibox. AutocompletePopupViewMac implements AutocompletePopupView in terms of a bare NSWindow containing an NSTableView. AutocompleteTableTarget implements an Obj-C class to bridge from appkit callbacks back to the popup view (and from there to the model which contains the data it needs). AutocompleteEditViewMac implements AutocompleteEditView in terms of an NSTextField, which is passed down from a nib owner. It works with the popup view to make sure the popup is positioned correctly. AutocompleteFieldDelegate is an internal Obj-C class to bridge from appkit callbacks back to the edit view (and then the edit model). LocationBarViewMac implements LocationBar for interacting with the rest of the browser, and AutocompleteEditController for managing the edit and popup views. It is mostly placeholder code stolen from the gtk implementation. --- I've tried to implement an amount of code which worked and was useful, but which didn't drag on and on into the future. So no tab to search or hints or anything, sometimes ugly, selection may be funky, etc.

Patch Set 1 #

Patch Set 2 : Minor cleanup. #

Patch Set 3 : Describe classes in headers. #

Total comments: 78

Patch Set 4 : Address Dean's comments. #

Patch Set 5 : Address Mark's comments. #

Total comments: 28

Patch Set 6 : Changes in response to pink and mark. #

Patch Set 7 : Couple minor style tweaks. #

Patch Set 8 : Drop popup when switching tabs. #

Patch Set 9 : Fix destructor ordering. #

Patch Set 10 : Fix chrome.gyp merge thing, update to pink's toolbar changes. #

Patch Set 11 : Disable LocationBarViewMacTest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+967 lines, -42 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc View 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/autocomplete/autocomplete_edit_view_mac.h View 1 2 3 4 5 6 7 8 9 1 chunk +124 lines, -0 lines 0 comments Download
A chrome/browser/autocomplete/autocomplete_edit_view_mac.mm View 1 2 3 4 5 6 7 8 9 1 chunk +309 lines, -0 lines 0 comments Download
A chrome/browser/autocomplete/autocomplete_popup_view_mac.h View 1 2 3 4 5 6 7 8 9 1 chunk +97 lines, -0 lines 0 comments Download
A chrome/browser/autocomplete/autocomplete_popup_view_mac.mm View 1 2 3 4 5 6 7 8 9 1 chunk +250 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.h View 1 2 3 4 5 6 7 8 9 2 chunks +43 lines, -13 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.mm View 1 2 3 4 5 6 7 8 9 2 chunks +100 lines, -12 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac_unittest.mm View 2 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.mm View 2 chunks +15 lines, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Scott Hess - ex-Googler
Oops, I uploaded, entered the comments, and forgot to send it out.
11 years, 9 months ago (2009-03-21 00:14:55 UTC) #1
Dean McNamee
I don't know this obj-c business at all, so my review was pretty useless. http://codereview.chromium.org/50074/diff/1016/1021 ...
11 years, 9 months ago (2009-03-23 11:22:45 UTC) #2
Mark Mentovai
This is kind of a light first pass, but I can get away with that ...
11 years, 9 months ago (2009-03-23 14:54:59 UTC) #3
pink (ping after 24hrs)
a good start, though i agree with mark that there's a lot of spacing that ...
11 years, 9 months ago (2009-03-23 17:07:08 UTC) #4
Scott Hess - ex-Googler
Checkpointing what I have WRT Dean's comments before a meeting... http://codereview.chromium.org/50074/diff/1016/1021 File chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (right): http://codereview.chromium.org/50074/diff/1016/1021#newcode46 ...
11 years, 9 months ago (2009-03-23 21:49:59 UTC) #5
Scott Hess - ex-Googler
On 2009/03/23 14:54:59, Mark Mentovai wrote: > This is kind of a light first pass, ...
11 years, 9 months ago (2009-03-24 05:53:18 UTC) #6
Mark Mentovai
For an initial implementation of a huge chunk, I think this is ready for checkin. ...
11 years, 9 months ago (2009-03-24 13:56:42 UTC) #7
Scott Hess - ex-Googler
On 2009/03/24 13:56:42, Mark Mentovai wrote: > For an initial implementation of a huge chunk, ...
11 years, 9 months ago (2009-03-28 00:56:57 UTC) #8
Scott Hess - ex-Googler
This is essentially a checkpoint before digging in to look for remaining logic problems. http://codereview.chromium.org/50074/diff/1016/1020 ...
11 years, 8 months ago (2009-03-30 21:29:26 UTC) #9
pink (ping after 24hrs)
I just scanned over your comments, I didn't look at the updated patch thoroughly. LGTM ...
11 years, 8 months ago (2009-03-30 21:55:51 UTC) #10
Scott Hess - ex-Googler
I've hacked things to drop the popup when switching tabs. It is not pretty at ...
11 years, 8 months ago (2009-04-03 23:01:01 UTC) #11
Scott Hess - ex-Googler
On Mon, Apr 6, 2009 at 3:06 PM, Scott Hess <shess@chromium.org> wrote: > I've found ...
11 years, 8 months ago (2009-04-06 22:12:18 UTC) #12
Scott Hess - ex-Googler
After wasting a bunch of time trying to mind-meld with ui_tests, and finding it to ...
11 years, 8 months ago (2009-04-09 23:55:14 UTC) #13
Scott Hess - ex-Googler
11 years, 8 months ago (2009-04-10 17:41:15 UTC) #14
On 2009/04/09 23:55:14, shess wrote:
> After wasting a bunch of time trying to mind-meld with ui_tests, and finding
it
> to be too deep, I just sat down and started bisecting the changes to see which
> were different in ui_tests.  Even though the different behaviour on my machine
> doesn't match the difference on the try servers..  Turned out there was a
> non-change which had happened in a merge which landed at some point during
> development, so I was linking the _mac and _generic variant of
> autocomplete_provider_list.
> 
> That and now I've adapted to your new code.
> 
> Currently floating past the try servers.
> 
> [With Dog as my witness, I will land this change tomorrow.]

Update: Passed try servers with LocationBarViewMacTest disabled.  I'm turning
the test into a TODO and a tracking bug, because making it work in the new world
will be somewhat daunting, and I'm quite worried about spending another week
pending on this CL.

Powered by Google App Engine
This is Rietveld 408576698