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

Issue 12545040: A couple of fixes to bubble view: (Closed)

Created:
7 years, 9 months ago by varunjain
Modified:
7 years, 9 months ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, alicet1, msw+watch_chromium.org
Visibility:
Public.

Description

A couple of fixes to bubble view: 1. Mirror arrow location even for centered arrows if the bubble is offscreen 2. Apply insets to |anchor_point|. This give the user the ability to specify a generic "anchor_rect" (as a combination of center point and insets) instead of either a |anchor_point| or an |anchor_view|. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188285

Patch Set 1 #

Patch Set 2 : patch #

Total comments: 7

Patch Set 3 : patch #

Total comments: 2

Patch Set 4 : patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -3 lines) Patch
M ui/views/bubble/bubble_delegate.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_frame_view_unittest.cc View 1 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
varunjain
7 years, 9 months ago (2013-03-14 19:26:56 UTC) #1
msw
Awesome, the test probably needs work, and just a couple other nits. https://codereview.chromium.org/12545040/diff/4001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc ...
7 years, 9 months ago (2013-03-14 20:17:58 UTC) #2
varunjain
https://codereview.chromium.org/12545040/diff/4001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/12545040/diff/4001/ui/views/bubble/bubble_delegate.cc#newcode234 ui/views/bubble/bubble_delegate.cc:234: gfx::Rect anchor_bounds = anchor_view()? anchor_view()->GetBoundsInScreen() : On 2013/03/14 20:17:58, ...
7 years, 9 months ago (2013-03-14 20:54:59 UTC) #3
msw
LGTM with a nit; thanks! https://codereview.chromium.org/12545040/diff/4001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/12545040/diff/4001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode231 ui/views/bubble/bubble_frame_view_unittest.cc:231: TEST_F(BubbleFrameViewTest, TestMirroringForCenteredArrow) { On ...
7 years, 9 months ago (2013-03-14 20:59:43 UTC) #4
varunjain
https://codereview.chromium.org/12545040/diff/10001/ui/views/bubble/bubble_frame_view.cc File ui/views/bubble/bubble_frame_view.cc (right): https://codereview.chromium.org/12545040/diff/10001/ui/views/bubble/bubble_frame_view.cc#newcode190 ui/views/bubble/bubble_frame_view.cc:190: anchor_rect, client_size); On 2013/03/14 20:59:44, msw wrote: > nit: ...
7 years, 9 months ago (2013-03-14 21:15:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varunjain@chromium.org/12545040/15001
7 years, 9 months ago (2013-03-14 21:19:30 UTC) #6
commit-bot: I haz the power
7 years, 9 months ago (2013-03-15 07:30:41 UTC) #7
Message was sent while issue was closed.
Change committed as 188285

Powered by Google App Engine
This is Rietveld 408576698