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

Issue 10905311: Consolidate bubble border code. (Closed)

Created:
8 years, 3 months ago by xiyuan
Modified:
8 years, 3 months ago
Reviewers:
msw, oshima, sky
CC:
chromium-reviews, msw+watch_chromium.org, sadrul, ben+watch_chromium.org, tfarina, oshima+watch_chromium.org, alicet1, stevenjb, jennyz, varunjain
Visibility:
Public.

Description

Consolidate bubble border code. Per 135200, we should only use image based code. - Add two new sets of bubble border images; - Use the new bubble border images for app menu and launcher tooltip; - Get rid of BubbleBorder2 since it's no longer needed; BUG=135200 TEST=Verify app list, launcher bar tooltip bubbles use shadow based on image and no artifacts. R=msw@chromium.org,sky@chromium.org,oshima@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=158003

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : fix nit in #2 and arrow interior color #

Total comments: 65

Patch Set 4 : for comments in #3 #

Total comments: 22

Patch Set 5 : address comments in #4 and add tests #

Total comments: 17

Patch Set 6 : rebase + nits in #5 #

Patch Set 7 : make image assets common and fix win compile #

Patch Set 8 : use GetImageSkiaNamed #

Total comments: 2

Patch Set 9 : remove USE_AURA ifdef for kBigShadowImages and kSmalleShadowImages #

Unified diffs Side-by-side diffs Delta from patch set Stats (+875 lines, -938 lines) Patch
M ash/launcher/launcher_tooltip_manager.cc View 1 2 3 8 chunks +9 lines, -49 lines 0 comments Download
M ash/launcher/overflow_bubble.cc View 1 2 3 3 chunks +3 lines, -5 lines 0 comments Download
M ash/wm/app_list_controller.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M ash/wm/maximize_bubble_controller.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ui/app_list/app_list.gyp View 1 chunk +2 lines, -2 lines 0 comments Download
A ui/app_list/app_list_background.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A + ui/app_list/app_list_background.cc View 3 chunks +21 lines, -12 lines 0 comments Download
D ui/app_list/app_list_bubble_border.h View 1 chunk +0 lines, -37 lines 0 comments Download
D ui/app_list/app_list_bubble_border.cc View 1 chunk +0 lines, -71 lines 0 comments Download
M ui/app_list/app_list_view.h View 3 chunks +0 lines, -5 lines 0 comments Download
M ui/app_list/app_list_view.cc View 1 2 3 7 chunks +16 lines, -35 lines 0 comments Download
M ui/resources/default_100_percent/common/window_bubble_shadow_spike_big_left.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/resources/default_100_percent/common/window_bubble_shadow_spike_big_right.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/resources/default_100_percent/common/window_bubble_shadow_spike_small_left.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/resources/default_100_percent/common/window_bubble_shadow_spike_small_right.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/resources/default_200_percent/common/window_bubble_shadow_spike_big_left.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/resources/default_200_percent/common/window_bubble_shadow_spike_big_right.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/resources/default_200_percent/common/window_bubble_shadow_spike_small_left.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/resources/default_200_percent/common/window_bubble_shadow_spike_small_right.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/resources/ui_resources.grd View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_border.h View 1 2 3 4 5 6 8 chunks +53 lines, -25 lines 0 comments Download
M ui/views/bubble/bubble_border.cc View 1 2 3 4 5 6 7 8 13 chunks +290 lines, -172 lines 0 comments Download
D ui/views/bubble/bubble_border_2.h View 1 chunk +0 lines, -91 lines 0 comments Download
D ui/views/bubble/bubble_border_2.cc View 1 chunk +0 lines, -399 lines 0 comments Download
A ui/views/bubble/bubble_border_unittest.cc View 1 2 3 4 1 chunk +205 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_delegate.h View 1 2 3 4 chunks +11 lines, -7 lines 0 comments Download
M ui/views/bubble/bubble_delegate.cc View 1 2 3 4 5 4 chunks +6 lines, -6 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.h View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 2 3 4 2 chunks +49 lines, -6 lines 0 comments Download
M ui/views/bubble/bubble_frame_view_unittest.cc View 1 2 3 4 5 12 chunks +143 lines, -14 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
xiyuan
Suggested split: msw for ui/views/bubble/* sky for ash/*, app_list/* oshima for ui_resources.grd Thanks.
8 years, 3 months ago (2012-09-17 21:39:30 UTC) #1
sky
http://codereview.chromium.org/10905311/diff/1020/ui/app_list/app_list_background.h File ui/app_list/app_list_background.h (right): http://codereview.chromium.org/10905311/diff/1020/ui/app_list/app_list_background.h#newcode29 ui/app_list/app_list_background.h:29: int corner_radius_; const
8 years, 3 months ago (2012-09-17 22:44:04 UTC) #2
xiyuan
http://codereview.chromium.org/10905311/diff/1020/ui/app_list/app_list_background.h File ui/app_list/app_list_background.h (right): http://codereview.chromium.org/10905311/diff/1020/ui/app_list/app_list_background.h#newcode29 ui/app_list/app_list_background.h:29: int corner_radius_; On 2012/09/17 22:44:04, sky wrote: > const ...
8 years, 3 months ago (2012-09-18 16:19:06 UTC) #3
xiyuan
+jennyz, stevenjb
8 years, 3 months ago (2012-09-18 17:20:20 UTC) #4
msw
http://codereview.chromium.org/10905311/diff/10001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): http://codereview.chromium.org/10905311/diff/10001/ui/views/bubble/bubble_border.cc#newcode55 ui/views/bubble/bubble_border.cc:55: // Offsets of where arrow tip pixel is in ...
8 years, 3 months ago (2012-09-18 19:33:42 UTC) #5
msw
Also, why did we decide to go exclusively with image borders? The bug doesn't actually ...
8 years, 3 months ago (2012-09-18 19:36:13 UTC) #6
xiyuan
On 2012/09/18 19:36:13, msw wrote: > Also, why did we decide to go exclusively with ...
8 years, 3 months ago (2012-09-18 19:51:16 UTC) #7
msw
On 2012/09/18 19:51:16, xiyuan wrote: > On 2012/09/18 19:36:13, msw wrote: > > Also, why ...
8 years, 3 months ago (2012-09-18 19:57:31 UTC) #8
xiyuan
I have updated to address all comments. The arrow images are changed to be symmetric ...
8 years, 3 months ago (2012-09-19 18:20:09 UTC) #9
msw
Patch Set 4's bubble changes are significantly better; thank you for going the extra mile ...
8 years, 3 months ago (2012-09-19 20:12:31 UTC) #10
sky
LGTM for the non ui/views/bubble code. Wait for Mike on the ui/views/bubble part.
8 years, 3 months ago (2012-09-19 21:18:05 UTC) #11
xiyuan
Addressed comments in #4 and added tests for arrow types/helpers and offscreen adjustment. The tests ...
8 years, 3 months ago (2012-09-19 22:51:35 UTC) #12
msw
LGTM; very nice work! All my comments are nits/optional. http://codereview.chromium.org/10905311/diff/22002/ui/views/bubble/bubble_frame_view.cc File ui/views/bubble/bubble_frame_view.cc (right): http://codereview.chromium.org/10905311/diff/22002/ui/views/bubble/bubble_frame_view.cc#newcode160 ui/views/bubble/bubble_frame_view.cc:160: ...
8 years, 3 months ago (2012-09-20 00:07:23 UTC) #13
xiyuan
http://codereview.chromium.org/10905311/diff/22002/ui/views/bubble/bubble_frame_view.cc File ui/views/bubble/bubble_frame_view.cc (right): http://codereview.chromium.org/10905311/diff/22002/ui/views/bubble/bubble_frame_view.cc#newcode160 ui/views/bubble/bubble_frame_view.cc:160: if (BubbleBorder::is_arrow_at_center(arrow) || On 2012/09/20 00:07:23, msw wrote: > ...
8 years, 3 months ago (2012-09-20 16:56:51 UTC) #14
msw
One more nit. http://codereview.chromium.org/10905311/diff/24034/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): http://codereview.chromium.org/10905311/diff/24034/ui/views/bubble/bubble_border.cc#newcode98 ui/views/bubble/bubble_border.cc:98: left = *rb.GetImageNamed(image_ids[0]).ToImageSkia(); I know the ...
8 years, 3 months ago (2012-09-20 17:03:33 UTC) #15
oshima
ui_resources lgtm
8 years, 3 months ago (2012-09-20 17:17:47 UTC) #16
xiyuan
http://codereview.chromium.org/10905311/diff/24034/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): http://codereview.chromium.org/10905311/diff/24034/ui/views/bubble/bubble_border.cc#newcode98 ui/views/bubble/bubble_border.cc:98: left = *rb.GetImageNamed(image_ids[0]).ToImageSkia(); On 2012/09/20 17:03:34, msw wrote: > ...
8 years, 3 months ago (2012-09-20 17:30:56 UTC) #17
msw
http://codereview.chromium.org/10905311/diff/24034/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): http://codereview.chromium.org/10905311/diff/24034/ui/views/bubble/bubble_border.cc#newcode98 ui/views/bubble/bubble_border.cc:98: left = *rb.GetImageNamed(image_ids[0]).ToImageSkia(); On 2012/09/20 17:30:56, xiyuan wrote: > ...
8 years, 3 months ago (2012-09-20 17:40:09 UTC) #18
xiyuan
http://codereview.chromium.org/10905311/diff/38003/ui/views/bubble/bubble_border.h File ui/views/bubble/bubble_border.h (right): http://codereview.chromium.org/10905311/diff/38003/ui/views/bubble/bubble_border.h#newcode55 ui/views/bubble/bubble_border.h:55: BIG_SHADOW, On 2012/09/20 17:40:09, msw wrote: > Why did ...
8 years, 3 months ago (2012-09-20 17:58:29 UTC) #19
msw
8 years, 3 months ago (2012-09-20 18:05:33 UTC) #20
LGTM

Powered by Google App Engine
This is Rietveld 408576698