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

Issue 8539025: Fix Panel to always detect when a tab is added. (Closed)

Created:
9 years, 1 month ago by jennb
Modified:
9 years, 1 month ago
CC:
chromium-reviews, jianli, prasadt, dcheng, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix Panel to always detect when a tab is added. This solves the problem when chrome.windows.create() is used to create a panel with a tabid. Panel was watching for NOTIFICATION_TAB_ADDED, which is only sent upon browser navigation. As there is no navigation when existing tab contents are used, the Panel does not set up auto-resize in this scenario. BUG=None TEST=PanelBrowserTest.CreateWithExistingContents Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110179

Patch Set 1 #

Total comments: 8

Patch Set 2 : feedback changes #

Total comments: 1

Patch Set 3 : Fix tests. #

Total comments: 3

Patch Set 4 : Test cleanup and fix Mac test hang #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -69 lines) Patch
M chrome/browser/ui/panels/panel.h View 5 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 6 chunks +46 lines, -47 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view_browsertest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 4 chunks +69 lines, -18 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
jennb
This solves the problem when chrome.windows.create() is used to create a panel with a tabid. ...
9 years, 1 month ago (2011-11-11 22:14:47 UTC) #1
Dmitry Titov
Drive-by: Could you please add a description of "why" in addition to "what". It's not ...
9 years, 1 month ago (2011-11-11 22:21:18 UTC) #2
jianli
http://codereview.chromium.org/8539025/diff/1/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): http://codereview.chromium.org/8539025/diff/1/chrome/browser/ui/panels/panel.cc#newcode48 chrome/browser/ui/panels/panel.cc:48: // Invoked by native panel so do not access ...
9 years, 1 month ago (2011-11-11 22:31:23 UTC) #3
jennb
Done. HTH. On Fri, Nov 11, 2011 at 2:21 PM, <dimich@chromium.org> wrote: > Drive-by: > ...
9 years, 1 month ago (2011-11-11 22:35:40 UTC) #4
Dmitry Titov
On 2011/11/11 22:35:40, jennb wrote: > Done. HTH. Thanks!
9 years, 1 month ago (2011-11-11 22:40:32 UTC) #5
jennb
http://codereview.chromium.org/8539025/diff/1/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): http://codereview.chromium.org/8539025/diff/1/chrome/browser/ui/panels/panel.cc#newcode48 chrome/browser/ui/panels/panel.cc:48: // Invoked by native panel so do not access ...
9 years, 1 month ago (2011-11-11 22:42:50 UTC) #6
prasadt
http://codereview.chromium.org/8539025/diff/4003/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (left): http://codereview.chromium.org/8539025/diff/4003/chrome/browser/ui/panels/panel.cc#oldcode178 chrome/browser/ui/panels/panel.cc:178: #endif I'm making this change to fix the bug ...
9 years, 1 month ago (2011-11-11 23:08:39 UTC) #7
jianli
lgtm
9 years, 1 month ago (2011-11-11 23:15:21 UTC) #8
Paweł Hajdan Jr.
Drive-by with testing comments. http://codereview.chromium.org/8539025/diff/10/chrome/browser/ui/panels/panel_browsertest.cc File chrome/browser/ui/panels/panel_browsertest.cc (right): http://codereview.chromium.org/8539025/diff/10/chrome/browser/ui/panels/panel_browsertest.cc#newcode860 chrome/browser/ui/panels/panel_browsertest.cc:860: while (panel->GetBounds() == initial_bounds) { ...
9 years, 1 month ago (2011-11-14 12:24:33 UTC) #9
jennb
Cleaned up. Thanks for catching that! On 2011/11/14 12:24:33, Paweł Hajdan Jr. wrote: > Drive-by ...
9 years, 1 month ago (2011-11-15 02:08:50 UTC) #10
Paweł Hajdan Jr.
9 years, 1 month ago (2011-11-15 08:54:04 UTC) #11
Excellent, code I commented in the drive-by LGTM. Thank you!

Powered by Google App Engine
This is Rietveld 408576698