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

Issue 8621002: Reduce minimum size of Panels to allow 1-text-line tight autosize. (Closed)

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

Description

Reduce minimum size of Panels to allow 1-text-line tight autosize. BUG=102708 TEST=PanelBrowserTest.SizeClamping This patch does not attempt to calculate the actual size of titlebar and text line on a particular machine, just changes defaults to more accommodating. Instead of 100x100 we now have 100x20. Width of 100 seems to be a good arbitrary value that allows reasonable rendering of titlebar with close button, favicon and few characters of title text. Height of 20 allows auto-sizing to tightly wrap around small content (like a text line) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111480

Patch Set 1 #

Patch Set 2 : simplify test #

Total comments: 2

Patch Set 3 : feedback and a new test #

Patch Set 4 : merged and updated tests #

Total comments: 8

Patch Set 5 : patch for landing #

Patch Set 6 : fix win build #

Patch Set 7 : fixed AutoResize test #

Patch Set 8 : fix extension test #

Total comments: 2

Patch Set 9 : hopefully final #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -8 lines) Patch
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 4 5 6 2 chunks +62 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_manager.h View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/window_update/show_state/test.html View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/data/panels/update-preferred-size.html View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Dmitry Titov
more try runs: http://build.chromium.org/p/tryserver.chromium/builders/linux/builds/4051 http://build.chromium.org/p/tryserver.chromium/builders/win/builds/4340
9 years, 1 month ago (2011-11-22 00:08:29 UTC) #1
Dmitry Titov
9 years, 1 month ago (2011-11-22 00:17:40 UTC) #2
jennb
Hmmm...maybe we should leave min values in .h and move default ones there too so ...
9 years, 1 month ago (2011-11-22 00:25:26 UTC) #3
Dmitry Titov
Done all, and added one more test that verifies scenario I actually do this change ...
9 years, 1 month ago (2011-11-22 02:12:33 UTC) #4
Dmitry Titov
Merged, updated tests. PTAL.
9 years, 1 month ago (2011-11-23 04:26:43 UTC) #5
jennb
lgtm http://codereview.chromium.org/8621002/diff/9001/chrome/browser/ui/panels/panel_browsertest.cc File chrome/browser/ui/panels/panel_browsertest.cc (right): http://codereview.chromium.org/8621002/diff/9001/chrome/browser/ui/panels/panel_browsertest.cc#newcode1501 chrome/browser/ui/panels/panel_browsertest.cc:1501: CreatePanelParams params("Panel", gfx::Rect(0, 0, 0, 0), SHOW_AS_ACTIVE); gfx::Rect() ...
9 years, 1 month ago (2011-11-23 04:38:42 UTC) #6
Dmitry Titov
http://codereview.chromium.org/8621002/diff/9001/chrome/browser/ui/panels/panel_browsertest.cc File chrome/browser/ui/panels/panel_browsertest.cc (right): http://codereview.chromium.org/8621002/diff/9001/chrome/browser/ui/panels/panel_browsertest.cc#newcode1501 chrome/browser/ui/panels/panel_browsertest.cc:1501: CreatePanelParams params("Panel", gfx::Rect(0, 0, 0, 0), SHOW_AS_ACTIVE); On 2011/11/23 ...
9 years, 1 month ago (2011-11-23 18:47:49 UTC) #7
Dmitry Titov
Grrr Win failed compile with that usage of static int... Converting it to old-style.
9 years, 1 month ago (2011-11-23 19:39:16 UTC) #8
Dmitry Titov
On 2011/11/23 19:39:16, Dmitry Titov wrote: > Grrr > Win failed compile with that usage ...
9 years, 1 month ago (2011-11-23 20:38:16 UTC) #9
Dmitry Titov
Jenn, could you take a look at pateches 6 and 7?
9 years, 1 month ago (2011-11-24 00:38:04 UTC) #10
jennb
lgtm http://codereview.chromium.org/8621002/diff/17002/chrome/test/data/extensions/api_test/window_update/show_state/test.html File chrome/test/data/extensions/api_test/window_update/show_state/test.html (right): http://codereview.chromium.org/8621002/diff/17002/chrome/test/data/extensions/api_test/window_update/show_state/test.html#newcode61 chrome/test/data/extensions/api_test/window_update/show_state/test.html:61: // 'height' parameter prevents 'panel' windows form attempt ...
9 years, 1 month ago (2011-11-24 01:04:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dimich@chromium.org/8621002/20005
9 years, 1 month ago (2011-11-24 01:13:04 UTC) #12
commit-bot: I haz the power
9 years, 1 month ago (2011-11-24 02:27:02 UTC) #13
Change committed as 111480

Powered by Google App Engine
This is Rietveld 408576698