DescriptionAdd 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. #Messages
Total messages: 14 (0 generated)
|