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

Issue 11416309: Fix constrained window position for inactive tab (Closed)

Created:
8 years ago by sail
Modified:
8 years ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, sail+watch_chromium.org
Visibility:
Public.

Description

Fix constrained window position for inactive tab If a constrained window was added to an inactive tab it would be incorrectly positioned. The problem was that an inactive tab view is removed from the browser window. This meant that the constrained window position coudln't be calculated. When the tab became activated again we weren't updating the sheet position. This CL changes the code to correclty update the sheet position when the tab is activated. BUG=163841 TEST=Verified that the bug can no longer be reproduced. Verified that ConstrainedWindowSheetControllerTest.AddToInactiveTab failed without my change and passes with it. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170782

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -15 lines) Patch
M chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm View 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller_unittest.mm View 5 chunks +12 lines, -11 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sail
8 years ago (2012-12-02 22:59:27 UTC) #1
Robert Sesek
lgtm
8 years ago (2012-12-03 16:25:23 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11416309/1
8 years ago (2012-12-03 16:28:08 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11416309/1
8 years ago (2012-12-03 18:53:10 UTC) #4
commit-bot: I haz the power
8 years ago (2012-12-03 19:15:23 UTC) #5
Message was sent while issue was closed.
Change committed as 170782

Powered by Google App Engine
This is Rietveld 408576698