DescriptionMerge TextButton and LabelButton border images util structs, etc.
Consolidate new BorderImages files from TextButton and LabelButton.
Rewrite image painting as a struct member function; support arbitrary rects.
Add static IDR arrays for TextButton and LabelButton shared image assets
Use LabelButton views as implicit NativeThemeDelegates for LabelButtonBorder.
Nix LabelButtonBorder layer kClear_Mode as in http://crrev.com/160227.
Use macros to define ordered image asset IDR arrays; misc cleanup/refactoring.
TODO(followup): Merge "nine-box" code in BorderImages, BubbleBorder, ImagePainter, etc.
TODO(followup): Stitch border image assets together and use ImagePainter?
BUG=155363
TEST=No observable button changes or regressions.
R=pkasting@chromium.org
TBR=sky@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164557
Patch Set 1 #Patch Set 2 : Move ButtonBorderImages to its own file. #Patch Set 3 : Rewrite image painting; LabelButtonBorder cleanup. #Patch Set 4 : Considering a couple BORDER_IMAGES macros. #Patch Set 5 : Rename BorderImages and const image id arrays, etc. #
Total comments: 14
Patch Set 6 : Address comments. #Patch Set 7 : Add friend tests, remove unused variable. #
Messages
Total messages: 12 (0 generated)
|