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

Issue 2818693002: Improve (ViewAnchored)TextBubble logic (Closed)

Created:
3 years, 8 months ago by David Trainor- moved to gerrit
Modified:
3 years, 8 months ago
Reviewers:
Ted C
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve (ViewAnchored)TextBubble logic Make the TextBubble more robust and fix a few bugs: - Make sure that moving the arrow actually triggers a drawable invalidation. - Make the ViewAnchoredTextBubble much more robust to View changes (translate positioning, removing from hierarchy, visibility changes, etc.). - Make the TextBubble try to maintain it's orientation (above vs. below) the anchor rect. - Make the TextBubble properly swap orientations if the anchor rect moves and requires it. - Fix ViewAnchoredTextBubble to properly detach listeners on all dismiss paths (instead of just an explicit call to dismiss() on the bubble). BUG=711168 Review-Url: https://codereview.chromium.org/2818693002 Cr-Commit-Position: refs/heads/master@{#464561} Committed: https://chromium.googlesource.com/chromium/src/+/da26a507e1367331f15769f75797fd70032a08b8

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments #

Messages

Total messages: 13 (4 generated)
David Trainor- moved to gerrit
ptal thanks! Lots of improvements to TextBubble. Have fun demo video if you want to ...
3 years, 8 months ago (2017-04-13 06:02:16 UTC) #2
Ted C
https://codereview.chromium.org/2818693002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java File chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java (right): https://codereview.chromium.org/2818693002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java#newcode124 chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java:124: invalidateSelf(); Drawable#setBounds (the only caller of onBoundsChange) calls invalidateSelf, ...
3 years, 8 months ago (2017-04-13 16:19:47 UTC) #3
David Trainor- moved to gerrit
https://codereview.chromium.org/2818693002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java File chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java (right): https://codereview.chromium.org/2818693002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java#newcode124 chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java:124: invalidateSelf(); On 2017/04/13 16:19:47, Ted C wrote: > Drawable#setBounds ...
3 years, 8 months ago (2017-04-13 17:29:29 UTC) #4
David Trainor- moved to gerrit
https://codereview.chromium.org/2818693002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java File chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java (right): https://codereview.chromium.org/2818693002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java#newcode124 chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java:124: invalidateSelf(); On 2017/04/13 17:29:29, David Trainor-ping if over 24h ...
3 years, 8 months ago (2017-04-13 17:30:26 UTC) #5
Ted C
https://codereview.chromium.org/2818693002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java File chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java (right): https://codereview.chromium.org/2818693002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java#newcode124 chrome/android/java/src/org/chromium/chrome/browser/widget/textbubble/ArrowBubbleDrawable.java:124: invalidateSelf(); On 2017/04/13 17:30:26, David Trainor-ping if over 24h ...
3 years, 8 months ago (2017-04-13 17:33:48 UTC) #6
David Trainor- moved to gerrit
Yeah you're right my bad! Uploaded the new CL with the Callback registered so the ...
3 years, 8 months ago (2017-04-13 20:48:15 UTC) #7
Ted C
lgtm
3 years, 8 months ago (2017-04-13 20:49:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2818693002/20001
3 years, 8 months ago (2017-04-13 21:00:48 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 21:56:11 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/da26a507e1367331f15769f75797...

Powered by Google App Engine
This is Rietveld 408576698