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

Issue 12330002: Add views::Button style enum for LabelButton [native] styling, etc. (Closed)

Created:
7 years, 10 months ago by msw
Modified:
7 years, 10 months ago
Reviewers:
sky
CC:
chromium-reviews, Raman Kakilate, sadrul, ben+watch_chromium.org, benquan, dhollowa+watch_chromium.org, ahutter, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, Ilya Sherman, tfarina
Visibility:
Public.

Description

Add views::Button style enum for LabelButton [native] styling, etc. Add Button::ButtonStyle enum for existing [native] LabelButton styles. Add ButtonStyle member and accessors (or ctor arg) to LabelButton[Border]. These replace LabelButton[Border] native_style flag, will support more later. Add LabelButton::kViewClassName, use for manual RTTI in a DCHECK. Move CustomButton::ButtonState to Button; update some usage. Other minor cleanup and refactoring. This should facilitate implementation and use of other LabelButton styles/types: TODO(followup): Add toggled state for checkboxes, radio buttons, etc. TODO(followup): Add Styles: "Chrome Style", Checkbox, Radio, Menu, ComboBox, etc. (each style probably just needs to set some IDRs/colors/insets/etc. on LabelButton) BUG=155363 TEST=No observable Views Button changes. R=sky@chromium.org NOTRY=true (added notry for weird concatenated linux_rel step "browser_testsnet_unittests") Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183797

Patch Set 1 : Add views::Button style enum for LabelButton [native] styling, etc. #

Total comments: 2

Patch Set 2 : Sync and merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -99 lines) Patch
M ash/system/logout_button/tray_logout_button.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M ash/system/tray/tray_views.cc View 2 chunks +10 lines, -9 lines 0 comments Download
M ash/system/user/tray_user.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/autofill/autocheckout_bubble_views.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/app_list/views/signin_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/button.h View 1 chunk +18 lines, -0 lines 0 comments Download
M ui/views/controls/button/custom_button.h View 2 chunks +1 line, -10 lines 0 comments Download
M ui/views/controls/button/label_button.h View 1 4 chunks +8 lines, -6 lines 0 comments Download
M ui/views/controls/button/label_button.cc View 1 9 chunks +20 lines, -18 lines 0 comments Download
M ui/views/controls/button/label_button_border.h View 3 chunks +8 lines, -9 lines 0 comments Download
M ui/views/controls/button/label_button_border.cc View 4 chunks +25 lines, -20 lines 0 comments Download
M ui/views/controls/button/label_button_unittest.cc View 1 4 chunks +11 lines, -11 lines 0 comments Download
M ui/views/examples/button_example.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
msw
Hey Scott, please take a look; thanks!
7 years, 10 months ago (2013-02-20 16:53:33 UTC) #1
tfarina
Mike, can you explain in simple terms in the commit message why you are doing ...
7 years, 10 months ago (2013-02-20 17:01:06 UTC) #2
msw
I added some reasoning and TODOs to the CL description. https://codereview.chromium.org/12330002/diff/6001/ui/views/controls/button/button.h File ui/views/controls/button/button.h (right): https://codereview.chromium.org/12330002/diff/6001/ui/views/controls/button/button.h#newcode33 ...
7 years, 10 months ago (2013-02-20 17:17:22 UTC) #3
sky
LGTM
7 years, 10 months ago (2013-02-20 18:16:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/12330002/6001
7 years, 10 months ago (2013-02-21 01:11:37 UTC) #5
commit-bot: I haz the power
Failed to apply patch for ui/views/controls/button/label_button.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-21 01:11:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/12330002/6002
7 years, 10 months ago (2013-02-21 04:16:40 UTC) #7
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) build http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=21398
7 years, 10 months ago (2013-02-21 07:53:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/12330002/6002
7 years, 10 months ago (2013-02-21 07:54:13 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_testsnet_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=100688
7 years, 10 months ago (2013-02-21 09:12:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/12330002/6002
7 years, 10 months ago (2013-02-21 12:05:00 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_testsnet_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=100763
7 years, 10 months ago (2013-02-21 12:56:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/12330002/6002
7 years, 10 months ago (2013-02-21 13:43:34 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-02-21 13:43:50 UTC) #14
Message was sent while issue was closed.
Change committed as 183797

Powered by Google App Engine
This is Rietveld 408576698