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

Issue 1009613002: [Toolbar UI Mac] Fix omnibox minimum width (Closed)

Created:
5 years, 9 months ago by Devlin
Modified:
5 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Toolbar UI Mac] Fix omnibox minimum width The minimum width calculations weren't always taking effect with the omnibox and the browser actions container. Refactor it a bit to make it: a) more reliable (min width checked at every resize) b) clearer (less confusing back and forth with using observer methods) BUG=463905 Committed: https://crrev.com/027195d03b18a4724917ca51ffe323a1b4a52d68 Cr-Commit-Position: refs/heads/master@{#320784}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Avi's #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -46 lines) Patch
M chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h View 1 5 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_container_view.mm View 1 6 chunks +22 lines, -17 lines 1 comment Download
M chrome/browser/ui/cocoa/extensions/browser_actions_container_view_unittest.mm View 1 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm View 6 chunks +42 lines, -21 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Devlin
Avi, mind taking a look?
5 years, 9 months ago (2015-03-13 23:02:21 UTC) #2
Avi (use Gerrit)
https://codereview.chromium.org/1009613002/diff/1/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h File chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h (right): https://codereview.chromium.org/1009613002/diff/1/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h#newcode82 chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h:82: // The size delegate, if any. Document lifetime requirements ...
5 years, 9 months ago (2015-03-13 23:26:03 UTC) #3
Devlin
https://codereview.chromium.org/1009613002/diff/1/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h File chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h (right): https://codereview.chromium.org/1009613002/diff/1/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h#newcode82 chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h:82: // The size delegate, if any. On 2015/03/13 23:26:03, ...
5 years, 9 months ago (2015-03-14 00:03:15 UTC) #4
Avi (use Gerrit)
lgtm
5 years, 9 months ago (2015-03-14 01:05:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1009613002/20001
5 years, 9 months ago (2015-03-16 18:55:05 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-16 20:22:05 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/027195d03b18a4724917ca51ffe323a1b4a52d68 Cr-Commit-Position: refs/heads/master@{#320784}
5 years, 9 months ago (2015-03-16 20:23:03 UTC) #9
pfeldman
On 2015/03/16 20:23:03, I haz the power (commit-bot) wrote: > Patchset 2 (id:??) landed as ...
5 years, 9 months ago (2015-03-17 09:41:56 UTC) #10
Devlin
On 2015/03/17 09:41:56, pfeldman wrote: > On 2015/03/16 20:23:03, I haz the power (commit-bot) wrote: ...
5 years, 9 months ago (2015-03-18 16:22:33 UTC) #11
Scott Hess - ex-Googler
5 years, 9 months ago (2015-03-23 16:26:41 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1009613002/diff/20001/chrome/browser/ui/cocoa...
File chrome/browser/ui/cocoa/extensions/browser_actions_container_view.mm
(right):

https://codereview.chromium.org/1009613002/diff/20001/chrome/browser/ui/cocoa...
chrome/browser/ui/cocoa/extensions/browser_actions_container_view.mm:174:
grippyPinned_ = NSWidth(containerFrame) == maxAllowedWidth;
Since these are floats this pattern may come back to bite if someday someone
throws ratios in somewhere, and could also bite WRT hidpi.  I'm not sure if
fuzzy matching would be better, since I don't know what grippyPinned_ really
means, but probably >= or <= would be safer.

Likewise for the == in the if() above, and the == in -resizeToWidth:animate:

Powered by Google App Engine
This is Rietveld 408576698