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

Issue 6881073: Cleanup popup related browser navigation code. (Closed)

Created:
9 years, 8 months ago by stevenjb
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, davemoore+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Cleanup popup related browser navigation code. This cleans up some code and fixes a related chromium-os issue: * Adds a user_gesture parameter to browser::NavigateParams * Adds AdjustNavigateParams to BrowserWindow and calls that from browser::NavigateParams to make browser window / view class specific changes * Eliminates Browser::CreateForPopup in favor of browser::Navigate, unifying code paths for spawning popups (thus fixing chromium-os:10978) BUG=chromium:78853, chromium-os:10978 TEST=Test opening popup windows with a range of sizes and parameters on all OSs (panels on ChromeOS) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83399

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Fix Popup tests for ChromeOS. #

Total comments: 2

Patch Set 4 : AdjustNavigateParams -> GetDispositionForPopupBounds #

Patch Set 5 : Rebase and merge with avi's popup block changes. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -68 lines) Patch
M chrome/browser/chromeos/frame/browser_view.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/frame/browser_view.cc View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 2 chunks +14 lines, -10 lines 1 comment Download
M chrome/browser/ui/browser.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 6 chunks +4 lines, -45 lines 0 comments Download
M chrome/browser/ui/browser_navigator.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 2 3 5 chunks +24 lines, -7 lines 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest.cc View 1 2 5 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/html_dialog_tab_contents_delegate.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/test_browser_window.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/test_browser_window.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
stevenjb
This is not for R13, so no rush, but I wanted to fix this while ...
9 years, 8 months ago (2011-04-20 18:51:46 UTC) #1
stevenjb
On 2011/04/20 18:51:46, Steven Bennetts wrote: > This is not for R13, so no rush, ...
9 years, 8 months ago (2011-04-20 18:52:16 UTC) #2
Ben Goodger (Google)
http://codereview.chromium.org/6881073/diff/1020/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): http://codereview.chromium.org/6881073/diff/1020/chrome/browser/ui/browser_navigator.cc#newcode379 chrome/browser/ui/browser_navigator.cc:379: source_browser->window()->AdjustNavigateParams(params); I worry that this connection couples the BrowserWindow ...
9 years, 8 months ago (2011-04-20 19:10:32 UTC) #3
stevenjb
PTAL http://codereview.chromium.org/6881073/diff/1020/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): http://codereview.chromium.org/6881073/diff/1020/chrome/browser/ui/browser_navigator.cc#newcode379 chrome/browser/ui/browser_navigator.cc:379: source_browser->window()->AdjustNavigateParams(params); Sounds reasonable to me. Done. On 2011/04/20 ...
9 years, 8 months ago (2011-04-20 20:43:40 UTC) #4
Ben Goodger (Google)
LGTM from a browser navigator/integration pov.
9 years, 8 months ago (2011-04-20 20:50:40 UTC) #5
jennb
LGTM
9 years, 8 months ago (2011-04-21 17:22:40 UTC) #6
stevenjb
Avi, I've merged this with the popup blocker changes you made, can you take a ...
9 years, 8 months ago (2011-04-28 19:07:11 UTC) #7
Avi (use Gerrit)
9 years, 8 months ago (2011-04-28 19:27:10 UTC) #8
Yay for unification! LGTM

http://codereview.chromium.org/6881073/diff/8001/chrome/browser/extensions/ex...
File chrome/browser/extensions/extension_host.cc (right):

http://codereview.chromium.org/6881073/diff/8001/chrome/browser/extensions/ex...
chrome/browser/extensions/extension_host.cc:600: // (If none is found, NULL
argument to NavigateParams is valid).
Period inside parens.

Powered by Google App Engine
This is Rietveld 408576698