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

Issue 1205953002: Version 0 of TabLabel, Tab, and TabBar components (Closed)

Created:
5 years, 6 months ago by hansmuller1
Modified:
5 years, 5 months ago
CC:
gregsimon, jackson_old, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Version 0 of TabLabel, Tab, and TabBar components There's is no support for animating the selected tab indicator, there isn't a TabNavigator container yet, overflow layout (tabs don't fit) isn't supported yet, etc. R=abarth@chromium.org, ianh@google.com Committed: https://chromium.googlesource.com/external/mojo/+/c314cfbf8e8de2651d2b8bbad15cb01128d11791

Patch Set 1 #

Patch Set 2 : Added selection indcator #

Total comments: 55

Patch Set 3 : just the minor corrections #

Patch Set 4 : Remaining updates per Adam's feedback - except stateless TabBar #

Total comments: 24

Patch Set 5 : Updates per Ian's feedback #

Total comments: 2

Patch Set 6 : More updates; including making TabBar stateless #

Total comments: 20

Patch Set 7 : Fixed the constraint.minWidth problem Adam pointed out #

Patch Set 8 : Fix TabBar instrinsic width methods, refactor child walks #

Total comments: 1

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -4 lines) Patch
A sky/examples/widgets/tabs.dart View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
M sky/sdk/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M sky/sdk/lib/rendering/block.dart View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -4 lines 0 comments Download
M sky/sdk/lib/rendering/box.dart View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A sky/sdk/lib/widgets/tabs.dart View 1 2 3 4 5 6 7 8 1 chunk +262 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (3 generated)
hansmuller
PTAL
5 years, 6 months ago (2015-06-25 00:00:10 UTC) #3
abarth-chromium
https://codereview.chromium.org/1205953002/diff/20001/sky/sdk/lib/widgets/tabs.dart File sky/sdk/lib/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/20001/sky/sdk/lib/widgets/tabs.dart#newcode45 sky/sdk/lib/widgets/tabs.dart:45: } Should this be a function on |BoxConstraints| ? ...
5 years, 6 months ago (2015-06-25 00:19:38 UTC) #5
Hixie
https://codereview.chromium.org/1205953002/diff/20001/sky/examples/widgets/tabs.dart File sky/examples/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/20001/sky/examples/widgets/tabs.dart#newcode21 sky/examples/widgets/tabs.dart:21: .toList(); why toList()? https://codereview.chromium.org/1205953002/diff/20001/sky/sdk/lib/widgets/tabs.dart File sky/sdk/lib/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/20001/sky/sdk/lib/widgets/tabs.dart#newcode45 sky/sdk/lib/widgets/tabs.dart:45: ...
5 years, 5 months ago (2015-06-25 17:03:11 UTC) #6
hansmuller
Updates per Adam's feedback. I think I've addressed them all, except for the one about ...
5 years, 5 months ago (2015-06-25 17:32:26 UTC) #7
abarth-chromium
On 2015/06/25 at 17:32:26, hansmuller wrote: > https://codereview.chromium.org/1205953002/diff/20001/sky/sdk/lib/widgets/tabs.dart#newcode99 > sky/sdk/lib/widgets/tabs.dart:99: x += child.size.width; > On ...
5 years, 5 months ago (2015-06-25 17:38:50 UTC) #8
abarth-chromium
This is looking pretty good. We just need to make TabBar stateless. https://codereview.chromium.org/1205953002/diff/60001/sky/examples/widgets/tabs.dart File sky/examples/widgets/tabs.dart ...
5 years, 5 months ago (2015-06-25 17:59:21 UTC) #9
hansmuller
Updates per Hixie feedback. https://codereview.chromium.org/1205953002/diff/20001/sky/examples/widgets/tabs.dart File sky/examples/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/20001/sky/examples/widgets/tabs.dart#newcode21 sky/examples/widgets/tabs.dart:21: .toList(); On 2015/06/25 17:03:10, Hixie ...
5 years, 5 months ago (2015-06-25 18:07:39 UTC) #10
abarth-chromium
https://codereview.chromium.org/1205953002/diff/80001/sky/sdk/lib/widgets/tabs.dart File sky/sdk/lib/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/80001/sky/sdk/lib/widgets/tabs.dart#newcode97 sky/sdk/lib/widgets/tabs.dart:97: child.layout(tabConstraints, parentUsesSize: true); Rather than passing |parentUsesSize: true| here, ...
5 years, 5 months ago (2015-06-25 18:25:49 UTC) #11
hansmuller
https://codereview.chromium.org/1205953002/diff/60001/sky/examples/widgets/tabs.dart File sky/examples/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/60001/sky/examples/widgets/tabs.dart#newcode59 sky/examples/widgets/tabs.dart:59: }; On 2015/06/25 17:59:20, abarth wrote: > I'd just ...
5 years, 5 months ago (2015-06-25 19:45:51 UTC) #12
hansmuller
I think I've addressed all of the feedback. Please take another look.
5 years, 5 months ago (2015-06-25 19:48:11 UTC) #13
abarth-chromium
On 2015/06/25 at 19:45:51, hansmuller wrote: > Sorry, I wasn't disagreeing with this feedback; It's ...
5 years, 5 months ago (2015-06-25 19:49:13 UTC) #14
abarth-chromium
LGTM A thing of beauty is a joy forever.
5 years, 5 months ago (2015-06-25 19:53:30 UTC) #15
abarth-chromium
https://codereview.chromium.org/1205953002/diff/100001/sky/sdk/lib/widgets/tabs.dart File sky/sdk/lib/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/100001/sky/sdk/lib/widgets/tabs.dart#newcode47 sky/sdk/lib/widgets/tabs.dart:47: BoxConstraints widthConstraints = constraints.widthConstraints(); Sigh. There's actually a bug ...
5 years, 5 months ago (2015-06-25 19:58:00 UTC) #16
hansmuller
https://codereview.chromium.org/1205953002/diff/100001/sky/sdk/lib/widgets/tabs.dart File sky/sdk/lib/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/100001/sky/sdk/lib/widgets/tabs.dart#newcode47 sky/sdk/lib/widgets/tabs.dart:47: BoxConstraints widthConstraints = constraints.widthConstraints(); On 2015/06/25 19:58:00, abarth wrote: ...
5 years, 5 months ago (2015-06-25 20:08:16 UTC) #17
Hixie
https://codereview.chromium.org/1205953002/diff/100001/sky/sdk/lib/widgets/tabs.dart File sky/sdk/lib/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/100001/sky/sdk/lib/widgets/tabs.dart#newcode41 sky/sdk/lib/widgets/tabs.dart:41: if (child.parentData is! TabBarParentData) { remove the {}s, they ...
5 years, 5 months ago (2015-06-25 20:26:05 UTC) #18
hansmuller
https://codereview.chromium.org/1205953002/diff/100001/sky/sdk/lib/widgets/tabs.dart File sky/sdk/lib/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/100001/sky/sdk/lib/widgets/tabs.dart#newcode41 sky/sdk/lib/widgets/tabs.dart:41: if (child.parentData is! TabBarParentData) { On 2015/06/25 20:26:05, Hixie ...
5 years, 5 months ago (2015-06-25 20:51:06 UTC) #19
Hixie
lgtm https://codereview.chromium.org/1205953002/diff/140001/sky/sdk/lib/widgets/tabs.dart File sky/sdk/lib/widgets/tabs.dart (right): https://codereview.chromium.org/1205953002/diff/140001/sky/sdk/lib/widgets/tabs.dart#newcode81 sky/sdk/lib/widgets/tabs.dart:81: // TODO(hansmuller): track this value in ParentData rather ...
5 years, 5 months ago (2015-06-25 21:03:56 UTC) #20
hansmuller
On 2015/06/25 21:03:56, Hixie wrote: > lgtm > > https://codereview.chromium.org/1205953002/diff/140001/sky/sdk/lib/widgets/tabs.dart > File sky/sdk/lib/widgets/tabs.dart (right): > ...
5 years, 5 months ago (2015-06-25 21:21:02 UTC) #21
hansmuller1
5 years, 5 months ago (2015-06-25 21:25:43 UTC) #22
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as
c314cfbf8e8de2651d2b8bbad15cb01128d11791 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698