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

Issue 173439: [Mac] The autocomplete popup now gets its position from the toolbar controlle... (Closed)

Created:
11 years, 4 months ago by rohitrao (ping after 24h)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, Ben Goodger (Google)
Visibility:
Public.

Description

[Mac] The autocomplete popup now gets its position from the toolbar controller, rather than simply growing its width by 2*height. BUG=None TEST=The autocomplete popup should continue to appear in the same location. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24586

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -23 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_mac.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_mac.mm View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_view.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_view_mac.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_view_mac.mm View 1 3 chunks +4 lines, -14 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.mm View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/toolbar_controller.h View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.mm View 1 2 3 5 chunks +39 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller_unittest.mm View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
rohitrao (ping after 24h)
11 years, 4 months ago (2009-08-26 17:22:39 UTC) #1
Scott Hess - ex-Googler
As we backfill the NOTIMPLEMENTED() routines in LocationBarViewMac, I bet it will come closer and ...
11 years, 4 months ago (2009-08-26 17:53:00 UTC) #2
rohitrao (ping after 24h)
http://codereview.chromium.org/173439/diff/1003/1011 File chrome/browser/cocoa/toolbar_controller.h (right): http://codereview.chromium.org/173439/diff/1003/1011#newcode60 Line 60: popupPositioner_; On 2009/08/26 17:53:00, shess wrote: > Style ...
11 years, 4 months ago (2009-08-26 20:23:42 UTC) #3
Scott Hess - ex-Googler
lgtm unless you want to argue about these comments. http://codereview.chromium.org/173439/diff/1003/1012 File chrome/browser/cocoa/toolbar_controller.mm (right): http://codereview.chromium.org/173439/diff/1003/1012#newcode406 Line ...
11 years, 4 months ago (2009-08-26 20:38:14 UTC) #4
rohitrao (ping after 24h)
http://codereview.chromium.org/173439/diff/1003/1012 File chrome/browser/cocoa/toolbar_controller.mm (right): http://codereview.chromium.org/173439/diff/1003/1012#newcode406 Line 406: NSMaxX([goButton_ frame]) - minX, 0); > OK. Then ...
11 years, 4 months ago (2009-08-26 21:47:20 UTC) #5
Scott Hess - ex-Googler
11 years, 4 months ago (2009-08-27 00:01:29 UTC) #6
lgtm

http://codereview.chromium.org/173439/diff/27/37
File chrome/browser/cocoa/toolbar_controller.mm (right):

http://codereview.chromium.org/173439/diff/27/37#newcode58
Line 58: }  // namespace
On 2009/08/26 21:47:20, rohitrao wrote:
> On 2009/08/26 20:38:14, shess wrote:
> > As I mentioned earlier, jrg's ghost would really appreciate a unit test for
> > this...
> > 
> > I'm completely open to busting it out of any namespaces and testing it, but
if
> > there's already a toolbar_controller_unittest.mm, then maybe it would be
> easier
> > to just ask the class for its positioner via a private objc method and probe
> it
> > that way, then you can keep the shiny namespace!
> 
> Forgot to mention it before -- I added a unittest for the ToolbarController
> method.  I'm not going to bother testing the C++ proxy class, since it doesn't
> do anything interesting.

Bravo on the unit test!

The C++ proxy class is code, thus testing it presumably matters to code
coverage.  Just sayin'.

Powered by Google App Engine
This is Rietveld 408576698