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

Issue 9517010: Change panels to be able to turn off autoresize. (Closed)

Created:
8 years, 9 months ago by levin
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Dmitry Lomov (no reviews), Dmitry Titov, jianli, joi+watch-content_chromium.org, darin-cc_chromium.org, dcheng, Andrei
Visibility:
Public.

Description

Change panels to be able to turn off autoresize. BUG=109343 TEST=PanelBrowserTest.ResizePanel Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124664

Patch Set 1 #

Total comments: 10

Patch Set 2 : code review fixes #

Total comments: 3

Patch Set 3 : Added more tests and adjusted to different WebKit API. #

Patch Set 4 : Ensure that the latest version is uploaded. #

Total comments: 6

Patch Set 5 : Address feedback and fix issue with preferred size and auto resize having the same callback. #

Total comments: 2

Patch Set 6 : Redisable test. #

Total comments: 2

Patch Set 7 : do rename for panel method. #

Patch Set 8 : address feedback from Darin. #

Patch Set 9 : move dcheck #

Patch Set 10 : fix assert at the end of RenderWidget::Resize which fixes the tests on OSX. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -107 lines) Patch
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/base_panel_browser_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/detached_panel_strip.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/docked_panel_strip.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/overflow_panel_strip.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +30 lines, -13 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -11 lines 0 comments Download
M chrome/browser/ui/panels/panel_overflow_browsertest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +8 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_view_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -17 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -1 line 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 3 chunks +53 lines, -39 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
jennb
https://chromiumcodereview.appspot.com/9517010/diff/1/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): https://chromiumcodereview.appspot.com/9517010/diff/1/chrome/browser/ui/panels/panel.cc#newcode130 chrome/browser/ui/panels/panel.cc:130: WebContents* web_contents = browser()->GetSelectedWebContents(); This is repeated in the ...
8 years, 9 months ago (2012-02-28 23:45:15 UTC) #1
levin
All addressed. https://chromiumcodereview.appspot.com/9517010/diff/1/chrome/browser/ui/panels/panel.cc File chrome/browser/ui/panels/panel.cc (right): https://chromiumcodereview.appspot.com/9517010/diff/1/chrome/browser/ui/panels/panel.cc#newcode130 chrome/browser/ui/panels/panel.cc:130: WebContents* web_contents = browser()->GetSelectedWebContents(); On 2012/02/28 23:45:15, ...
8 years, 9 months ago (2012-02-29 00:04:42 UTC) #2
levin
Darin would you review the file not in the panel directory? (You're welcome to look ...
8 years, 9 months ago (2012-02-29 00:06:17 UTC) #3
jennb
https://chromiumcodereview.appspot.com/9517010/diff/4001/chrome/browser/ui/panels/docked_panel_strip.cc File chrome/browser/ui/panels/docked_panel_strip.cc (right): https://chromiumcodereview.appspot.com/9517010/diff/4001/chrome/browser/ui/panels/docked_panel_strip.cc#newcode475 chrome/browser/ui/panels/docked_panel_strip.cc:475: panel->SetAutoResizable(false, new_size); This works for now. We'll have to ...
8 years, 9 months ago (2012-02-29 00:11:50 UTC) #4
jennb
https://chromiumcodereview.appspot.com/9517010/diff/11001/chrome/browser/ui/panels/panel_browsertest.cc File chrome/browser/ui/panels/panel_browsertest.cc (right): https://chromiumcodereview.appspot.com/9517010/diff/11001/chrome/browser/ui/panels/panel_browsertest.cc#newcode803 chrome/browser/ui/panels/panel_browsertest.cc:803: IN_PROC_BROWSER_TEST_F(PanelBrowserTest, AutoResize) { Remember to leave this DISABLED before ...
8 years, 9 months ago (2012-02-29 19:46:00 UTC) #5
levin
All fixed up. https://chromiumcodereview.appspot.com/9517010/diff/11001/chrome/browser/ui/panels/panel_browsertest.cc File chrome/browser/ui/panels/panel_browsertest.cc (right): https://chromiumcodereview.appspot.com/9517010/diff/11001/chrome/browser/ui/panels/panel_browsertest.cc#newcode803 chrome/browser/ui/panels/panel_browsertest.cc:803: IN_PROC_BROWSER_TEST_F(PanelBrowserTest, AutoResize) { On 2012/02/29 19:46:00, ...
8 years, 9 months ago (2012-02-29 23:48:28 UTC) #6
jennb
Panel changes LGTM. I'm not sure it will be obvious to others the difference between ...
8 years, 9 months ago (2012-03-01 00:14:40 UTC) #7
levin
Ben would you look at the changes for chrome/browser/ui/browser.h chrome/browser/ui/browser.cc chrome/browser/ui/browser_window.h Jenn has covered the ...
8 years, 9 months ago (2012-03-01 00:19:11 UTC) #8
darin (slow to review)
https://chromiumcodereview.appspot.com/9517010/diff/13002/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/9517010/diff/13002/content/renderer/render_view_impl.cc#newcode4170 content/renderer/render_view_impl.cc:4170: webview()->resize(new_size); do you need to assign to size_? should ...
8 years, 9 months ago (2012-03-01 00:30:49 UTC) #9
levin
https://chromiumcodereview.appspot.com/9517010/diff/13001/chrome/browser/ui/panels/panel_manager.cc File chrome/browser/ui/panels/panel_manager.cc (right): https://chromiumcodereview.appspot.com/9517010/diff/13001/chrome/browser/ui/panels/panel_manager.cc#newcode175 chrome/browser/ui/panels/panel_manager.cc:175: void PanelManager::OnPreferredWindowSizeChanged( On 2012/03/01 00:14:40, jennb wrote: > Match ...
8 years, 9 months ago (2012-03-01 01:56:19 UTC) #10
Ben Goodger (Google)
What is this for?
8 years, 9 months ago (2012-03-01 02:35:33 UTC) #11
levin
On 2012/03/01 02:35:33, Ben Goodger (Google) wrote: > What is this for? To allow panels ...
8 years, 9 months ago (2012-03-01 02:50:25 UTC) #12
levin
On 2012/03/01 02:50:25, levin wrote: > On 2012/03/01 02:35:33, Ben Goodger (Google) wrote: > > ...
8 years, 9 months ago (2012-03-01 04:01:27 UTC) #13
Ben Goodger (Google)
Is autoresize a panel-specific feature?
8 years, 9 months ago (2012-03-01 19:15:47 UTC) #14
levin
On 2012/03/01 19:15:47, Ben Goodger (Google) wrote: > Is autoresize a panel-specific feature? Short answer: ...
8 years, 9 months ago (2012-03-01 19:19:44 UTC) #15
levin
On 2012/03/01 19:19:44, levin wrote: > On 2012/03/01 19:15:47, Ben Goodger (Google) wrote: > > ...
8 years, 9 months ago (2012-03-01 19:20:25 UTC) #16
Ben Goodger (Google)
So typically we don't have feature-specific IPC stuff run through all the render view delegates/web ...
8 years, 9 months ago (2012-03-01 19:24:09 UTC) #17
levin
On 2012/03/01 19:24:09, Ben Goodger (Google) wrote: > So typically we don't have feature-specific IPC ...
8 years, 9 months ago (2012-03-01 19:32:47 UTC) #18
levin
On 2012/03/01 19:24:09, Ben Goodger (Google) wrote: > So typically we don't have feature-specific IPC ...
8 years, 9 months ago (2012-03-01 19:45:25 UTC) #19
Ben Goodger (Google)
Talked with John about this a bit more, and we agree that your changes to ...
8 years, 9 months ago (2012-03-01 20:29:34 UTC) #20
jennb
On 2012/03/01 20:29:34, Ben Goodger (Google) wrote: > Talked with John about this a bit ...
8 years, 9 months ago (2012-03-01 20:58:01 UTC) #21
Ben Goodger (Google)
OK. We can tackle that in M20. I will follow up then. For now, this ...
8 years, 9 months ago (2012-03-01 20:59:08 UTC) #22
darin (slow to review)
LGTM for content/renderer/
8 years, 9 months ago (2012-03-01 22:46:50 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/levin@chromium.org/9517010/28002
8 years, 9 months ago (2012-03-02 02:10:22 UTC) #24
commit-bot: I haz the power
Presubmit check for 9517010-28002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-02 02:10:33 UTC) #25
jam
lgtm
8 years, 9 months ago (2012-03-02 02:17:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/levin@chromium.org/9517010/28002
8 years, 9 months ago (2012-03-02 02:20:24 UTC) #27
commit-bot: I haz the power
Try job failure for 9517010-28002 (retry) on win_rel for steps "check_deps, ui_tests". It's a second ...
8 years, 9 months ago (2012-03-02 05:39:38 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/levin@chromium.org/9517010/28002
8 years, 9 months ago (2012-03-02 05:47:46 UTC) #29
commit-bot: I haz the power
8 years, 9 months ago (2012-03-02 16:13:36 UTC) #30
Change committed as 124664

Powered by Google App Engine
This is Rietveld 408576698