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

Issue 8776035: Add PanelOverflowStrip to handle panel overflow. (Closed)

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

Description

Add PanelOverflowStrip to handle panel overflow. BUG=none TEST=overflow test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112833

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix #

Total comments: 84

Patch Set 3 : Fix #

Total comments: 1

Patch Set 4 : Fix linux build on trybot #

Total comments: 1

Patch Set 5 : Prepare for final landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -107 lines) Patch
M chrome/browser/ui/panels/panel.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 chunks +29 lines, -26 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_frame_view.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browser_frame_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.cc View 1 2 6 chunks +49 lines, -7 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 chunks +27 lines, -14 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.h View 1 2 6 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.cc View 1 2 9 chunks +16 lines, -15 lines 0 comments Download
A chrome/browser/ui/panels/panel_overflow_strip.h View 1 2 3 4 1 chunk +101 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/panel_overflow_strip.cc View 1 2 3 4 1 chunk +220 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_strip.h View 1 2 5 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/panels/panel_strip.cc View 1 2 3 8 chunks +46 lines, -22 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jianli
9 years ago (2011-12-02 01:44:26 UTC) #1
Dmitry Titov
lgtm from me with a nit, you mostly need a nod from Jenn. http://codereview.chromium.org/8776035/diff/1/chrome/browser/ui/panels/panel_browser_frame_view.cc File ...
9 years ago (2011-12-02 01:56:20 UTC) #2
jennb
Sending this half first for the platform-independent layer so you can get started. Nothing major. ...
9 years ago (2011-12-02 19:15:00 UTC) #3
jennb
And the rest of it... http://codereview.chromium.org/8776035/diff/3002/chrome/browser/ui/panels/base_panel_browser_test.cc File chrome/browser/ui/panels/base_panel_browser_test.cc (right): http://codereview.chromium.org/8776035/diff/3002/chrome/browser/ui/panels/base_panel_browser_test.cc#newcode318 chrome/browser/ui/panels/base_panel_browser_test.cc:318: // Note that overflow ...
9 years ago (2011-12-02 21:16:58 UTC) #4
jennb
http://codereview.chromium.org/8776035/diff/3002/chrome/browser/ui/panels/panel_browsertest.cc File chrome/browser/ui/panels/panel_browsertest.cc (right): http://codereview.chromium.org/8776035/diff/3002/chrome/browser/ui/panels/panel_browsertest.cc#newcode118 chrome/browser/ui/panels/panel_browsertest.cc:118: Panel* panel4 = CreatePanelWithBounds( Looks like we shouldn't watch ...
9 years ago (2011-12-02 22:28:57 UTC) #5
jianli
http://codereview.chromium.org/8776035/diff/3002/chrome/browser/ui/panels/base_panel_browser_test.cc File chrome/browser/ui/panels/base_panel_browser_test.cc (right): http://codereview.chromium.org/8776035/diff/3002/chrome/browser/ui/panels/base_panel_browser_test.cc#newcode318 chrome/browser/ui/panels/base_panel_browser_test.cc:318: // Note that overflow panel will not be shown ...
9 years ago (2011-12-02 23:23:46 UTC) #6
jennb
9 years ago (2011-12-03 00:06:53 UTC) #7
LGTM

plus fixing the includes in panel_overflow_strip.h that were put in the wrong
file or left out.

http://codereview.chromium.org/8776035/diff/12001/chrome/browser/ui/panels/pa...
File chrome/browser/ui/panels/panel_overflow_strip.cc (right):

http://codereview.chromium.org/8776035/diff/12001/chrome/browser/ui/panels/pa...
chrome/browser/ui/panels/panel_overflow_strip.cc:94: Panel* panel,
Panel::ExpansionState old_state) {
DCHECK state is IN_OVERFLOW?

http://codereview.chromium.org/8776035/diff/3006/chrome/browser/ui/panels/pan...
File chrome/browser/ui/panels/panel_strip.cc (right):

http://codereview.chromium.org/8776035/diff/3006/chrome/browser/ui/panels/pan...
chrome/browser/ui/panels/panel_strip.cc:603: new_bounds.set_x(x);
Leave this line the way it was, but move the guard to be above 'int x' line.
That way we only need to remove the guard later and not miss fixing this line.

Powered by Google App Engine
This is Rietveld 408576698