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

Issue 9265018: Change grow box computation back to a method on BrowserWindow (Closed)

Created:
8 years, 11 months ago by Nico
Modified:
8 years, 11 months ago
Reviewers:
Avi (use Gerrit), jennb, sky
CC:
chromium-reviews, penghuang+watch_chromium.org, jennb, creis+watch_chromium.org, yusukes+watch_chromium.org, ajwong+watch_chromium.org, James Su, jam, Dmitry Titov, jianli, prasadt, joi+watch-content_chromium.org, darin-cc_chromium.org, dcheng, brettw-cc_chromium.org, Avi (use Gerrit), dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Change grow box computation back to a method on BrowserWindow This is a revert of http://codereview.chromium.org/3547008, which was added to implement sidebars. aa has reverted most of the sidebar code ( http://codereview.chromium.org/9006027/ ), so this is no longer needed. This not only makes the code simpler (look at all the red), but also fixes a long-standing regression on Mac that was caused by the CL this reverts. Parts of the windows part with help form sky@. This does not add back the code in rwhv_win that was added by mad@ for bug 458, since it has since then bitrotted, and it's not used anyway. If someone wants to attack 458 again, http://codereview.chromium.org/16488/diff/1101/chrome/browser/renderer_host/render_widget_host_view_win.cc should be fairly easy to add back. BUG=458, 70482, 107646 TEST=Not too much stuff breaks; resize box looks good again on 10.5/10.6 TBR=avi Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118700

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : thank you sky #

Patch Set 7 : mac tests #

Patch Set 8 : cros build #

Total comments: 1

Patch Set 9 : revert rwhvw #

Patch Set 10 : . #

Total comments: 8

Patch Set 11 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -409 lines) Patch
M chrome/browser/ui/browser.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 5 chunks +19 lines, -47 lines 0 comments Download
M chrome/browser/ui/cocoa/dev_tools_controller.h View 3 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/ui/cocoa/dev_tools_controller.mm View 4 chunks +10 lines, -26 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h View 1 2 2 chunks +2 lines, -20 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm View 1 2 3 4 5 6 4 chunks +14 lines, -130 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.h View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 2 4 chunks +4 lines, -12 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_window_controller_cocoa.mm View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 3 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +21 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.h View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 2 3 4 5 2 chunks +0 lines, -39 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/tab_contents_container.h View 1 2 3 4 5 3 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/tab_contents_container.cc View 1 2 3 4 5 4 chunks +0 lines, -18 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.h View 1 4 chunks +4 lines, -10 lines 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +19 lines, -37 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 chunk +3 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view.h View 3 chunks +0 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tab_contents/interstitial_page.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/tab_contents/interstitial_page.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/browser/render_view_host_delegate.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 3 chunks +0 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Nico
Hi Scott, thanks a lot for your help with this! It looks like the resize ...
8 years, 11 months ago (2012-01-20 18:42:08 UTC) #1
jennb
LGTM (Owners LGTM for chrome/browser/ui/panels.) http://codereview.chromium.org/9265018/diff/14001/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): http://codereview.chromium.org/9265018/diff/14001/chrome/browser/ui/panels/panel.cc#newcode396 chrome/browser/ui/panels/panel.cc:396: NOTIMPLEMENTED(); No need for ...
8 years, 11 months ago (2012-01-20 20:17:04 UTC) #2
sky
On Fri, Jan 20, 2012 at 10:42 AM, <thakis@chromium.org> wrote: > Reviewers: sky, > > ...
8 years, 11 months ago (2012-01-20 21:55:02 UTC) #3
Nico
Ok, I reverted the rwhv_win change – sounds like that's a safe thing to do. ...
8 years, 11 months ago (2012-01-21 02:29:40 UTC) #4
sky
http://codereview.chromium.org/9265018/diff/13047/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/9265018/diff/13047/chrome/browser/ui/views/frame/browser_view.cc#newcode1040 chrome/browser/ui/views/frame/browser_view.cc:1040: if (IsDownloadShelfVisible()) { nit: no {} http://codereview.chromium.org/9265018/diff/13047/content/browser/renderer_host/render_widget_host.cc File content/browser/renderer_host/render_widget_host.cc ...
8 years, 11 months ago (2012-01-23 15:45:34 UTC) #5
Nico
Thanks! http://codereview.chromium.org/9265018/diff/13047/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/9265018/diff/13047/chrome/browser/ui/views/frame/browser_view.cc#newcode1040 chrome/browser/ui/views/frame/browser_view.cc:1040: if (IsDownloadShelfVisible()) { On 2012/01/23 15:45:34, sky wrote: ...
8 years, 11 months ago (2012-01-23 15:54:14 UTC) #6
sky
LGTM
8 years, 11 months ago (2012-01-23 16:24:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/9265018/18002
8 years, 11 months ago (2012-01-23 16:25:38 UTC) #8
commit-bot: I haz the power
Presubmit check for 9265018-18002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 11 months ago (2012-01-23 16:25:54 UTC) #9
Nico
avi for OWNERS
8 years, 11 months ago (2012-01-23 16:47:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/9265018/18002
8 years, 11 months ago (2012-01-23 16:47:45 UTC) #11
commit-bot: I haz the power
8 years, 11 months ago (2012-01-23 18:08:22 UTC) #12
Change committed as 118700

Powered by Google App Engine
This is Rietveld 408576698