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

Issue 1525163004: First stab at MD text buttons (Closed)

Created:
5 years ago by Evan Stade
Modified:
4 years, 11 months ago
Reviewers:
sky, bruthig
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

First stab at MD text buttons These buttons are implemented as a new class separate from LabelButton, which we'll need to retain even when MD is default for certain use cases such as the bookmarks bar. This new class is used on MD infobars. This first rough cut doesn't support a) different button attributes that might affect rendering such as being a Call to Action or default in a dialog. TODO: estade b) hover or press effects. TODO: bruthig c) images on the button. I doubt we'll ever want to support images on material buttons, but it's possible we'll decide to add them later. BUG=520266, 571500 Committed: https://crrev.com/ae2205f5a4c1a0957c88f892776d26c37499b981 Cr-Commit-Position: refs/heads/master@{#367224}

Patch Set 1 #

Patch Set 2 : checkpoint #

Patch Set 3 : self review #

Total comments: 2

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -37 lines) Patch
M chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/infobars/confirm_infobar.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/infobars/confirm_infobar.cc View 1 2 3 1 chunk +11 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 2 3 2 chunks +32 lines, -25 lines 0 comments Download
M ui/native_theme/common_theme.cc View 1 2 3 3 chunks +17 lines, -4 lines 0 comments Download
M ui/native_theme/native_theme.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A ui/views/controls/button/md_text_button.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A ui/views/controls/button/md_text_button.cc View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
Evan Stade
5 years ago (2015-12-21 23:19:32 UTC) #4
bruthig
It's not clear to me why a new MdTextButton needs to be born instead of ...
4 years, 12 months ago (2015-12-22 15:56:19 UTC) #5
Evan Stade
On 2015/12/22 15:56:19, bruthig wrote: > It's not clear to me why a new MdTextButton ...
4 years, 11 months ago (2015-12-29 18:14:04 UTC) #6
sky
Beyond effects, what does MdTextButton do that is different than LabelButton? My naive assumption is ...
4 years, 11 months ago (2015-12-29 19:20:17 UTC) #7
Evan Stade
On 2015/12/29 19:20:17, sky wrote: > Beyond effects, what does MdTextButton do that is different ...
4 years, 11 months ago (2015-12-29 19:27:52 UTC) #8
sky
Won't we eventually need this functionality for material design buttons? On Tue, Dec 29, 2015 ...
4 years, 11 months ago (2015-12-29 19:39:53 UTC) #9
Evan Stade
I think the places that use that functionality will continue to use LabelButton. For example, ...
4 years, 11 months ago (2015-12-29 20:05:44 UTC) #10
Evan Stade
On 2015/12/29 20:05:44, Evan Stade wrote: > I think the places that use that functionality ...
4 years, 11 months ago (2015-12-29 20:11:19 UTC) #11
sky
Could we still put the md functionality in labelbutton but only enable the new functionality ...
4 years, 11 months ago (2015-12-29 22:07:52 UTC) #12
sky
Like bruthig I'm less than thrilled about two similar text related classes. I'm hoping we ...
4 years, 11 months ago (2015-12-30 01:19:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1525163004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1525163004/40001
4 years, 11 months ago (2015-12-31 01:33:09 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/112021)
4 years, 11 months ago (2015-12-31 01:34:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1525163004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1525163004/60001
4 years, 11 months ago (2015-12-31 02:16:21 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2015-12-31 03:19:45 UTC) #22
commit-bot: I haz the power
4 years, 11 months ago (2015-12-31 03:20:52 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ae2205f5a4c1a0957c88f892776d26c37499b981
Cr-Commit-Position: refs/heads/master@{#367224}

Powered by Google App Engine
This is Rietveld 408576698