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

Issue 573143002: Mac: Give bubble windows an initial position before showing them. (Closed)

Created:
6 years, 3 months ago by tapted
Modified:
6 years, 3 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Mac: Give bubble windows an initial position before showing them. Otherwise initialization that occurs offscreen can load incorrect screen metric information. E.g. a RenderView will assume it is on the primary display when loaded in a bubble, which results in it being created with an incorrect scale factor in some screen setups. This CL adds a call to -[BaseBubbleController setAnchorPosition] in the non-NIB initializer to give the window a good estimate of the position it will eventually be shown at. BUG=324748 Committed: https://crrev.com/41a9426745a734139f7d8442a83efe2153e63516 Cr-Commit-Position: refs/heads/master@{#295625}

Patch Set 1 #

Total comments: 2

Patch Set 2 : -comments #

Patch Set 3 : probably needs a rebase #

Patch Set 4 : setAnchorPoint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -1 line) Patch
M chrome/browser/ui/cocoa/base_bubble_controller.mm View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/base_bubble_controller_unittest.mm View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
tapted
Hi Robert, please take a look. I can think of a few alternative fixes (see ...
6 years, 3 months ago (2014-09-17 02:59:39 UTC) #2
Robert Sesek
Yes, I think it's reasonable to handle this here. https://codereview.chromium.org/573143002/diff/1/chrome/browser/ui/cocoa/base_bubble_controller.mm File chrome/browser/ui/cocoa/base_bubble_controller.mm (right): https://codereview.chromium.org/573143002/diff/1/chrome/browser/ui/cocoa/base_bubble_controller.mm#newcode89 chrome/browser/ui/cocoa/base_bubble_controller.mm:89: ...
6 years, 3 months ago (2014-09-17 16:52:48 UTC) #3
tapted
https://codereview.chromium.org/573143002/diff/1/chrome/browser/ui/cocoa/base_bubble_controller.mm File chrome/browser/ui/cocoa/base_bubble_controller.mm (right): https://codereview.chromium.org/573143002/diff/1/chrome/browser/ui/cocoa/base_bubble_controller.mm#newcode89 chrome/browser/ui/cocoa/base_bubble_controller.mm:89: [self updateOriginFromAnchor]; On 2014/09/17 16:52:48, rsesek wrote: > Why ...
6 years, 3 months ago (2014-09-18 02:58:22 UTC) #4
Robert Sesek
LGTM
6 years, 3 months ago (2014-09-18 14:45:31 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/573143002/60001
6 years, 3 months ago (2014-09-18 23:09:15 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001) as a169e1237ab2527043b09f68a3d001f2d39ac9f7
6 years, 3 months ago (2014-09-19 00:35:34 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 00:36:18 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/41a9426745a734139f7d8442a83efe2153e63516
Cr-Commit-Position: refs/heads/master@{#295625}

Powered by Google App Engine
This is Rietveld 408576698