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

Issue 2913933002: Move views::Label DisabledColor logic into views::LabelButtonLabel (Closed)

Created:
3 years, 6 months ago by tapted
Modified:
3 years, 6 months ago
Reviewers:
brettw, sky
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move views::Label DisabledColor logic into views::LabelButtonLabel Only views::LabelButton uses disabled colors on a views::Label in a meaningful way. Move the logic into a subclass. BUG=691891 Review-Url: https://codereview.chromium.org/2913933002 Cr-Commit-Position: refs/heads/master@{#481374} Committed: https://chromium.googlesource.com/chromium/src/+/e699d8e27d888b832000c598fa10e8788d1042ef

Patch Set 1 : NoSchedulePaintInOnPaint #

Patch Set 2 : missed-some #

Total comments: 5

Patch Set 3 : respond to comments, self review, fix DLLs? Also text is not black on non-MD Aura :o #

Patch Set 4 : source_set? Pretty sure that will not help #

Patch Set 5 : Maybe this is the magic incantation #

Patch Set 6 : OK.. I think I found a solution #

Total comments: 5

Patch Set 7 : reabse #

Patch Set 8 : Use public #

Patch Set 9 : public does not work that way #

Patch Set 10 : Fix win, linux. Nit. TODO. Fix vector icons #

Total comments: 3

Patch Set 11 : Rebase for r479616 #

Patch Set 12 : Simpler alternative? #

Patch Set 13 : Back to PatchSet 11 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+513 lines, -256 lines) Patch
M ui/views/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 12 9 chunks +254 lines, -219 lines 3 comments Download
M ui/views/controls/button/label_button.h View 3 chunks +3 lines, -2 lines 0 comments Download
M ui/views/controls/button/label_button.cc View 1 4 chunks +7 lines, -2 lines 0 comments Download
A ui/views/controls/button/label_button_label.h View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A ui/views/controls/button/label_button_label.cc View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A ui/views/controls/button/label_button_label_unittest.cc View 1 2 1 chunk +146 lines, -0 lines 0 comments Download
M ui/views/controls/label.h View 1 2 6 chunks +4 lines, -7 lines 0 comments Download
M ui/views/controls/label.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +2 lines, -26 lines 0 comments Download

Messages

Total messages: 126 (115 generated)
tapted
Hi sky, please take a look https://codereview.chromium.org/2913933002/diff/200001/ui/views/controls/label.cc File ui/views/controls/label.cc (left): https://codereview.chromium.org/2913933002/diff/200001/ui/views/controls/label.cc#oldcode437 ui/views/controls/label.cc:437: ApplyTextColors(); I tested ...
3 years, 6 months ago (2017-06-06 12:30:24 UTC) #48
sky
https://codereview.chromium.org/2913933002/diff/200001/ui/views/controls/button/label_button_label.h File ui/views/controls/button/label_button_label.h (right): https://codereview.chromium.org/2913933002/diff/200001/ui/views/controls/button/label_button_label.h#newcode16 ui/views/controls/button/label_button_label.h:16: class LabelButtonLabel : public Label { Please document this ...
3 years, 6 months ago (2017-06-06 17:12:25 UTC) #49
tapted
https://codereview.chromium.org/2913933002/diff/200001/ui/views/controls/button/label_button_label.h File ui/views/controls/button/label_button_label.h (right): https://codereview.chromium.org/2913933002/diff/200001/ui/views/controls/button/label_button_label.h#newcode16 ui/views/controls/button/label_button_label.h:16: class LabelButtonLabel : public Label { On 2017/06/06 17:12:24, ...
3 years, 6 months ago (2017-06-08 04:11:32 UTC) #73
sky
+brettw https://codereview.chromium.org/2913933002/diff/340001/ui/views/BUILD.gn File ui/views/BUILD.gn (right): https://codereview.chromium.org/2913933002/diff/340001/ui/views/BUILD.gn#newcode672 ui/views/BUILD.gn:672: static_library("views_internal") { This seems overly complex, but I ...
3 years, 6 months ago (2017-06-08 19:06:15 UTC) #75
tapted
brettw: ping?
3 years, 6 months ago (2017-06-13 21:08:24 UTC) #76
brettw
https://codereview.chromium.org/2913933002/diff/340001/ui/views/BUILD.gn File ui/views/BUILD.gn (right): https://codereview.chromium.org/2913933002/diff/340001/ui/views/BUILD.gn#newcode701 ui/views/BUILD.gn:701: "controls/button/label_button_label.h", What's the ever higher level goal here? You ...
3 years, 6 months ago (2017-06-13 22:33:58 UTC) #77
tapted
https://codereview.chromium.org/2913933002/diff/340001/ui/views/BUILD.gn File ui/views/BUILD.gn (right): https://codereview.chromium.org/2913933002/diff/340001/ui/views/BUILD.gn#newcode701 ui/views/BUILD.gn:701: "controls/button/label_button_label.h", On 2017/06/13 22:33:57, brettw wrote: > What's the ...
3 years, 6 months ago (2017-06-14 09:14:09 UTC) #98
tapted
sky: wdyt? I've rebased and copied the comments from patchset 10 for the approach using ...
3 years, 6 months ago (2017-06-21 10:33:18 UTC) #120
sky
LGTM
3 years, 6 months ago (2017-06-21 15:00:12 UTC) #121
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/2913933002/540001
3 years, 6 months ago (2017-06-22 00:23:37 UTC) #123
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 00:28:35 UTC) #126
Message was sent while issue was closed.
Committed patchset #13 (id:540001) as
https://chromium.googlesource.com/chromium/src/+/e699d8e27d888b832000c598fa10...

Powered by Google App Engine
This is Rietveld 408576698