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

Issue 10174014: views: Add optional overlay image to ImageButton (Closed)

Created:
8 years, 8 months ago by James Cook
Modified:
8 years, 8 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

views: Add optional overlay image to ImageButton This allows us to build a single set of normal / hot / pushed images, then overlay a back arrow, forward arrow, etc. on top of them, which reduces the number of new assets we need for the toolbar. Also added unit tests for ImageButton and added ImageButton to the views examples window. BUG=124708 TEST=views_unittest, manually checked ash_shell "Views example widgets" for image and behavior Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133546

Patch Set 1 #

Total comments: 3

Patch Set 2 : remove debugging tweak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -29 lines) Patch
M ui/views/controls/button/image_button.h View 4 chunks +11 lines, -1 line 0 comments Download
M ui/views/controls/button/image_button.cc View 3 chunks +13 lines, -1 line 0 comments Download
A ui/views/controls/button/image_button_unittest.cc View 1 chunk +82 lines, -0 lines 0 comments Download
M ui/views/examples/button_example.h View 2 chunks +6 lines, -3 lines 0 comments Download
M ui/views/examples/button_example.cc View 1 4 chunks +44 lines, -24 lines 0 comments Download
M ui/views/views.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
James Cook
Sadrul, PTAL. Andre and Nicholas think it would be easier for them to make art ...
8 years, 8 months ago (2012-04-23 20:58:33 UTC) #1
sadrul
LGTM http://codereview.chromium.org/10174014/diff/1/ui/views/controls/button/image_button.h File ui/views/controls/button/image_button.h (right): http://codereview.chromium.org/10174014/diff/1/ui/views/controls/button/image_button.h#newcode104 ui/views/controls/button/image_button.h:104: I suppose there could eventually be a SetToggledOverlayImage. ...
8 years, 8 months ago (2012-04-23 21:06:26 UTC) #2
James Cook
Thanks for the quick review! http://codereview.chromium.org/10174014/diff/1/ui/views/examples/button_example.cc File ui/views/examples/button_example.cc (right): http://codereview.chromium.org/10174014/diff/1/ui/views/examples/button_example.cc#newcode122 ui/views/examples/button_example.cc:122: example_view()->GetLayoutManager()->Layout(example_view()); On 2012/04/23 21:06:26, ...
8 years, 8 months ago (2012-04-23 22:11:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/10174014/8001
8 years, 8 months ago (2012-04-23 22:11:40 UTC) #4
commit-bot: I haz the power
8 years, 8 months ago (2012-04-23 22:32:46 UTC) #5
Try job failure for 10174014-8001 (retry) on mac_rel for step "compile" (clobber
build).
It's a second try, previously, step "compile" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698