DescriptionAdd new views::LabelButton and LabelButtonBorder.
(a simplified replacement for TextButton[Base], etc.)
Add the LabelButton class, based on TextButton.
(simplify, cleanup, re-use views controls, etc.)
Add a supporting LabelButtonBorder class.
Add unit tests and a views example in ButtonExample.
Add ImageView interactive flag for hit-testing.
Make Label::text() return a const string16 ref.
TODO(followup): Replace TextButton[Base] use, etc.
TODO(followup): Fix CanvasSkia multi-line label painting.
BUG=155363
TEST=views examples use of the new LabelButton, etc.
R=sky@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162245
Patch Set 1 #Patch Set 2 : Add WIP LabelButton and example; etc. #Patch Set 3 : Have LabelButton own its views; cleanup; support themes and colors. #Patch Set 4 : Cleanup, refine layout and sizing, add unit tests; etc. #Patch Set 5 : Sync and merge; fix build issues. #Patch Set 6 : Fix unit test build error; remove stray line. #
Total comments: 4
Patch Set 7 : Rename LabelButtonBorder, remove GetLabel, etc. #
Total comments: 10
Patch Set 8 : Address comments; use custom Layout/GetPreferredSize; fix linux focus border; add test; etc. #Patch Set 9 : Rebase and cleanup changes. #Patch Set 10 : Remove stray semicolon. #
Messages
Total messages: 12 (0 generated)
|