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

Issue 2415633002: TabbedPane: refactor away manual layout and selected_tab_index_ (Closed)

Created:
4 years, 2 months ago by Elly Fong-Jones
Modified:
4 years, 2 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TabbedPane: refactor away manual layout and selected_tab_index_ This change: 1) Makes TabStrip use a LayoutManager and removes TabStrip::Layout; 2) Makes TabStrip use an EmptyBorder for insets and removes most of TabStrip::GetPreferredSize; 3) Replaces TabStrip and MdTabStrip's OnPaint overrides with OnPaintBorder overrides to paint their custom borders; 4) Removes the concept of a selected tab index from TabbedPane, replacing it with directly querying the TabStrip; 5) Renames TabbedPane::selected_tab_index() to TabbedPane::GetSelectedTabIndex() and changes all uses of it. BUG=635176 Committed: https://crrev.com/2941cbd2032c2cc48b610f7b529a1060bbe4f089 Cr-Commit-Position: refs/heads/master@{#424996}

Patch Set 1 #

Total comments: 10

Patch Set 2 : nits for msw #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -117 lines) Patch
M chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M ui/views/controls/tabbed_pane/tabbed_pane.h View 3 chunks +3 lines, -5 lines 0 comments Download
M ui/views/controls/tabbed_pane/tabbed_pane.cc View 1 13 chunks +80 lines, -98 lines 0 comments Download
M ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M ui/views/examples/tabbed_pane_example.cc View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (9 generated)
Elly Fong-Jones
sky: ptal? :)
4 years, 2 months ago (2016-10-12 17:12:06 UTC) #3
sky
sky->msw as msw did the most recent version.
4 years, 2 months ago (2016-10-12 19:25:57 UTC) #5
msw
lgtm with nits https://codereview.chromium.org/2415633002/diff/1/ui/views/controls/tabbed_pane/tabbed_pane.cc File ui/views/controls/tabbed_pane/tabbed_pane.cc (right): https://codereview.chromium.org/2415633002/diff/1/ui/views/controls/tabbed_pane/tabbed_pane.cc#newcode61 ui/views/controls/tabbed_pane/tabbed_pane.cc:61: gfx::Size GetPreferredSize() const override; nit: order ...
4 years, 2 months ago (2016-10-12 20:18:35 UTC) #6
Elly Fong-Jones
https://codereview.chromium.org/2415633002/diff/1/ui/views/controls/tabbed_pane/tabbed_pane.cc File ui/views/controls/tabbed_pane/tabbed_pane.cc (right): https://codereview.chromium.org/2415633002/diff/1/ui/views/controls/tabbed_pane/tabbed_pane.cc#newcode61 ui/views/controls/tabbed_pane/tabbed_pane.cc:61: gfx::Size GetPreferredSize() const override; On 2016/10/12 20:18:35, msw wrote: ...
4 years, 2 months ago (2016-10-12 21:23:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2415633002/20001
4 years, 2 months ago (2016-10-12 21:23:59 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/279717)
4 years, 2 months ago (2016-10-12 21:34:37 UTC) #12
Elly Fong-Jones
sky: ptal as views owner? :)
4 years, 2 months ago (2016-10-12 21:35:49 UTC) #13
sky
Rubber stamp LGTM
4 years, 2 months ago (2016-10-13 02:09:32 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2415633002/20001
4 years, 2 months ago (2016-10-13 10:15:26 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-13 10:21:26 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 10:23:44 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2941cbd2032c2cc48b610f7b529a1060bbe4f089
Cr-Commit-Position: refs/heads/master@{#424996}

Powered by Google App Engine
This is Rietveld 408576698