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

Issue 93863002: Mac App Launcher is positioned on center of dock in certain cases. (Closed)

Created:
7 years ago by Matt Giuca
Modified:
7 years ago
Reviewers:
tapted
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Mac App Launcher is positioned on center of dock in certain cases. The app launcher will be positioned on the center of the dock if the cursor is not visible (previously would be in the lower-left corner) or too far away from the dock (previously would be aligned with the cursor). BUG=312851 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238528

Patch Set 1 #

Patch Set 2 : Position on center of the dock if the cursor is not visible. #

Patch Set 3 : Snap to center if cursor is more than 50 pixels away. #

Patch Set 4 : Line wrapping. #

Patch Set 5 : Fix crash when no dock. #

Patch Set 6 : Try to fix tests. #

Patch Set 7 : Fix tests. #

Patch Set 8 : Fix tests. #

Patch Set 9 : Goddamn Reitveld. #

Total comments: 9

Patch Set 10 : Various fixes. Base off 96053003 for bug fix. #

Patch Set 11 : Center in the work area, not screen. Updated all tests. #

Patch Set 12 : Fix mac unit tests (Y inverted). #

Patch Set 13 : Require the mouse to be within window range of the dock, not 50 pixels. #

Total comments: 6

Patch Set 14 : FindAnchorPointNoDock: Added extra case where there is no visible cursor. #

Patch Set 15 : Added a comment about when it is appropriate to animate the launcher. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -49 lines) Patch
M chrome/browser/ui/app_list/app_list_positioner.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_positioner.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_positioner_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +38 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +20 lines, -13 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +51 lines, -36 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Matt Giuca
7 years ago (2013-11-28 23:53:52 UTC) #1
tapted
https://codereview.chromium.org/93863002/diff/200001/chrome/browser/ui/app_list/app_list_positioner.cc File chrome/browser/ui/app_list/app_list_positioner.cc (right): https://codereview.chromium.org/93863002/diff/200001/chrome/browser/ui/app_list/app_list_positioner.cc#newcode92 chrome/browser/ui/app_list/app_list_positioner.cc:92: screen_rect.y() + screen_rect.height() / 2); Maybe s/screen_rect/work_area? My left ...
7 years ago (2013-11-29 02:12:51 UTC) #2
Matt Giuca
Note: I haven't run tests on Mac yet. Will have to do that on Monday, ...
7 years ago (2013-11-29 05:24:07 UTC) #3
tapted
https://codereview.chromium.org/93863002/diff/200001/chrome/browser/ui/app_list/app_list_positioner.cc File chrome/browser/ui/app_list/app_list_positioner.cc (right): https://codereview.chromium.org/93863002/diff/200001/chrome/browser/ui/app_list/app_list_positioner.cc#newcode98 chrome/browser/ui/app_list/app_list_positioner.cc:98: case SCREEN_EDGE_TOP: On 2013/11/29 05:24:08, Matt Giuca wrote: > ...
7 years ago (2013-11-29 06:05:58 UTC) #4
Matt Giuca
The new boundaries are working. Let me know if you want a demo. https://codereview.chromium.org/93863002/diff/200001/chrome/browser/ui/app_list/app_list_positioner.cc File ...
7 years ago (2013-12-02 05:02:02 UTC) #5
tapted
lgtm unless I just threw a spanner at it. CL description should probably mention the ...
7 years ago (2013-12-02 06:28:38 UTC) #6
Matt Giuca
https://codereview.chromium.org/93863002/diff/310001/chrome/browser/ui/app_list/app_list_service_mac.mm File chrome/browser/ui/app_list/app_list_service_mac.mm (right): https://codereview.chromium.org/93863002/diff/310001/chrome/browser/ui/app_list/app_list_service_mac.mm#newcode295 chrome/browser/ui/app_list/app_list_service_mac.mm:295: dock_location == AppListPositioner::SCREEN_EDGE_TOP ? I would prefer for this ...
7 years ago (2013-12-03 02:21:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/93863002/350001
7 years ago (2013-12-03 02:31:19 UTC) #8
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests, content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=195811
7 years ago (2013-12-03 04:17:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/93863002/350001
7 years ago (2013-12-04 00:14:12 UTC) #10
commit-bot: I haz the power
7 years ago (2013-12-04 02:11:05 UTC) #11
Message was sent while issue was closed.
Change committed as 238528

Powered by Google App Engine
This is Rietveld 408576698